USB Internet Sharing with PostmarketOS (and others)

I’m playing with a PostmarketOS device as a tiny server attached to my GL router. I want it to receive internet through USB since it does not have reliable wifi (yeah it’s OP6). I will post my own research here, and try to make things as clean as possible.

The official guide about USB internet from PostmarketOS wiki is here. While my PmOS device has “USB Internet” enabled by default, it won’t work by default under a GL router due to the router expects a phone providing internet, not demanding internet.

Currently, I’m worried about playing with the iptables rules would conflict with GL’s tethering packages. I should either just uninstall tethering packages, or inspect it’s contents to see how it handles devices…?

I’m currently looking at ‘gl-sdk4-tethering’ since it’s definitely the one that do the job.

[UPDATE] Not easy though, I cannot find the source, and the package itself is not quite easy to locate.

Hi

Once the router detects the USB network interface from PostmarketOS (typically usb0), add it to the LAN bridge in LuCI under Network > Interfaces > Devices > br-lan.

After adding it to br-lan, the router-side configuration should be complete. Firewall rules, IP forwarding, and the DHCP server will be handled automatically.