-
-
Save djeraseit/827ddf193212173ee8b13392e4c17a20 to your computer and use it in GitHub Desktop.
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
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