Enabling NAT forwarding using a second WAN interface and a second gateway on ubuntu
- by nixnotwin
I have 3 interfaces:
eth0 192.168.0.50/24
eth1 10.0.0.200/24
eth2 225.228.123.211
The default gateway is 192.168.0.1 which I want to keep as it is in the changes I want to make.
I want to masquerade eth1 10.0.0.200/24 and enable NAT forwarding to eth2. So I have done this:
ip route add 225.228.123.208/29 dev eth2 src 225.228.123.211 table t1…