Skip to content

Instantly share code, notes, and snippets.

@medvid
Created March 8, 2013 15:38
Show Gist options
  • Save medvid/5117292 to your computer and use it in GitHub Desktop.
Save medvid/5117292 to your computer and use it in GitHub Desktop.
sudo iptables -A POSTROUTING -t nat -j MASQUERADE
sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
sudo ifconfig enp0s29f7u7 12.12.10.1
adb shell su -c "ifconfig ccmni0 0.0.0.0"
adb shell su -c "ifconfig rndis0 12.12.10.2"
adb shell su -c "route add default gw 12.12.10.1 dev rndis0"
adb shell su -c "setprop net.dns1 8.8.8.8"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment