Linux router with diffent gateways for incomming and outgoing connections
- by nkout
I have the following topology:
LAN Users:192.168.1.2 - 254 (192.168.1.0/24)
gateway1: 192.168.2.2/24 used for all outgoing connections of LAN users (default gateway)
gateway2: 192.168.3.2/24 used for incoming services (destination NAT, ports 80,443 are forwarded to 192.168.2.1)
linux router-server R
eth0 192.168.1.1/24: LAN
eth1 192.168.2.1/24:…