1

iptables - route through two external interfaces?

view story
linux-howto

http://unix.stackexchange.com – Scenario: eth0 = LAN eth1 = Internet eth2 = Internet I would like to force all traffic from eth0 between ports 1-443 through eth1 and the rest on eth2. How to go about it? I've managed to get it working so that my client on eth0 can access the internet on eth1 without a problem using standard two line POSTROUTING: iptables --table nat --append POSTROUTING --out-interface eth1 -j MASQUERADE iptables --append FORWARD --in-interface eth0 -j ACCEPT My question is how i add port control to it and if it's as simple as adding another POSTROUTING on another out interface or will tha (HowTos)