Skip to content

Instantly share code, notes, and snippets.

@uri
Last active December 18, 2015 13:59
Show Gist options
  • Save uri/5794350 to your computer and use it in GitHub Desktop.
Save uri/5794350 to your computer and use it in GitHub Desktop.
Android LTE feather script
#!/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
@uri
Copy link
Author

uri commented Jun 17, 2013

Using this script to enable LTE Wifi tether on my Nexus 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment