Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Latest commit

 

History

History
22 lines (18 loc) · 468 Bytes

UBPORTS.md

File metadata and controls

22 lines (18 loc) · 468 Bytes

rootfs is read-only

Remount the rootfs:

# mount -o rw,remount /

USB Internet

Once you're booted to the rootfs, you can access the internet via USB by running these commands:

On Phone/Tablet:

# route add default gw 10.15.19.100
# echo nameserver 80.80.80.80 | sudo tee /etc/resolv.conf

On host machine:

# sysctl net.ipv4.ip_forward=1
# iptables -P FORWARD ACCEPT
# iptables -A POSTROUTING -t nat -j MASQUERADE -s 10.15.19.0/24