I'm using a Raspberry Pi with Raspbian GNU/Linux 9.6 (stretch) as a firewall.
I would like to:
- route all traffic to 192.168.1.1 through eth0 (192.168.1.144), where 192.168.1.1 is the router that connects to the internet
- route all traffic to the rest of the home network 192.168.1.0/24 through eth1 (192.168.1.196)
- route all traffic coming from the various access points (dd-wrt routers, 192.168.1.2, 192.168.1.36 and 192.168.1.72 respectively) to 192.168.1.196
- and from there to 192.168.1.144 and out to the internet via 192.168.1.1
How should I set this up?
These two questions seem to give conflicting answers, at least to networking-rookie-me:
- Forwarding all incoming traffic on eth0 to go to eth1
- Is it possible to configure a NAT routing device to have the same subnet on both WAN and LAN interfaces?