1

Looking for elegant iproute2 solution for host w/ 2 interfaces on 2 networks and 3 gateways

view story
linux-howto

http://unix.stackexchange.com – I've got a Linux webserver with 192.168.0.2/24 assigned to eth0 and 172.16.0.2/24 assigned to eth1. I must not change this. Here's the routing so far: 172.16.0.0/24 dev eth1 proto kernel scope link src 172.16.0.2 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.2 172.16.0.0/16 via 172.16.0.1 dev eth1 default via 192.168.0.1 dev eth0 The default route leads to the Internet which the machine needs access to for downloading stuff. Now there are also packets (requests) coming in from the Internet via 172.16.0.254. How do I have to set up routing tables and rules in order to answer (HowTos)