Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save autovalue/e9e92323dec620e42f8d to your computer and use it in GitHub Desktop.
Save autovalue/e9e92323dec620e42f8d to your computer and use it in GitHub Desktop.
Fix for older Android 4.x tethering problems
su
settings get global tethering_dun_required
settings get global tether_dun_required
# or
#settings put global tether_dun_required 0
#settings put global tethering_dun_required 0
netcfg
#(now search for the iface) e.g. ccmni0
iptables -tnat -A natctrl_nat_POSTROUTING -s 192.168.0.0/16 -o ccmni0 -j MASQUERADE
ccmni0 -j MASQUERADE
# Now you can surf the web!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment