Last active
December 18, 2015 13:59
-
-
Save uri/5794350 to your computer and use it in GitHub Desktop.
Android LTE feather script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
iptables -A bw_FORWARD -i !lo+ | |
iptables -A natctrl_FORWARD -j RETURN -i rmnet+ -o wlan0 -m state --state RELATED,ESTABLISHED | |
iptables -A natctrl_FORWARD -j DROP -i wlan0 -o rmnet+ -m state --state INVALID | |
iptables -A natctrl_FORWARD -j RETURN -i wlan0 -o rmnet+ | |
iptables -A natctrl_FORWARD -j DROP | |
iptables -A natctrl_nat_POSTROUTING -t nat -o rmnet+ -j MASQUERADE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using this script to enable LTE Wifi tether on my Nexus 4.