This is an automated archive.

The original was posted on /r/homenetworking by /u/A_Degenerate_Idiot on 2023-08-07 17:30:22+00:00.


Maybe create a virtual device? I mean, I tried using tons of laptops. But I want something smaller than a Pinebook 14".

So I kinda of put the Pinebook on the fridge as a libre friendly Debian router. Thing is, I’m only using one interface currently connected via USB2.

So well, I have bridged the *modem* and the network interface connected to the Pinebook via NetworkManager’s nmcli and nm-applet. And then I get a bridged connection straight to the modem from other machines.

Thing is, one of my machines need a VPN, which is tun0 on the Pinebook. And so I did the normal iptables/ufw forwarding to masquerade some devices to the tun0 connection. But then, that device is connected via the same interface.

So I have 2 IP ranges 192.168.122.0/24 for the bridged connections, and 192.168.90.0/24 for the tun0 device. How do I make it so Debian bridges 192.168.122.0/24 IPs and masquerades 192.168.90.0/24 IPs?