I have a server on two separate LANs: enp3s0
(10.0.0.5/24
) and tun0
(10.8.0.5/24
, openvpn client). I've configured the gateways on both networks to forward packets addressed to the other network to this server. How can I get this server to relay those packet to the other (correct) interface? I've tried all of the iptables
stuff I can find.
The server is running Ubuntu Server 20.04.
Did you activate kernel forwarding?
or
Your box will act as a router, not as a workstation, and this behaviour is disabled by default, for security reasons! Be sure to permit forward for only legit network ranges from both of your nets using iptables.