permacomputing

Source repository for the main permacomputing wiki site
git clone http://git.permacomputing.net/repos/permacomputing.git # read-only access
Log | Files | Refs

commit 0d4ed4cf2bbba50b5c12d0147cecac5eece00d21
parent 5d52d1342e46c08d3aa2ab963bc54c0bafd0bdd1
Author: smeeb <smeeb@web>
Date:   Tue,  5 May 2026 09:44:18 +0200


Diffstat:
Munbrick01.mdwn | 18++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)

diff --git a/unbrick01.mdwn b/unbrick01.mdwn @@ -80,3 +80,21 @@ Usually the phone has a random string like this `enx9ad89e8d8f22`. This is a USB Now you can SSH into the phone with the username and password set during `pmbootstrap install`. `ssh user@172.16.42.1` + +## Share internet connection + +To share your internet connection to the phone run the following commands on your computer: + +```bash +sudo sysctl net.ipv4.ip_forward=1 +sudo iptables -t nat -A POSTROUTING -o <your-internet-interface> -j MASQUERADE +``` + +You can find your internet interface with `ip a`. On the phone run the following commands: + +``` +sudo ip route add default via 172.16.42.2 +echo "nameserver 9.9.9.9" | sudo tee /etc/resolv.conf +``` + +and you should share a connection now,