Skip to content

Instantly share code, notes, and snippets.

@djeraseit
Forked from medvid/android-reverse-tether.sh
Created September 7, 2024 23:40
Show Gist options
  • Save djeraseit/827ddf193212173ee8b13392e4c17a20 to your computer and use it in GitHub Desktop.
Save djeraseit/827ddf193212173ee8b13392e4c17a20 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