USB Internet

From postmarketOS
Revision as of 17:01, 22 September 2017 by MartijnBraam (talk | contribs) (Added syntax highlighting)
Jump to: navigation, search

USB Internet Enable Internet on your device by using a usb cable (when wifi does not work).

On your phone:

X are your pc usb ip address last numbers you will find in your pc's network manager.

$ sudo route add default gw 172.16.42.x 
$ sudo nano /etc/resolv.conf

Delete and write instead your router ip address (nameserver or dns server address (nameserver

On your pc:

$ echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward > /dev/null
$ sudo iptables -P FORWARD ACCEPT
$ sudo iptables -A POSTROUTING -t nat -j MASQUERADE -s

You are done! Now try to ping someone!