Take the 2-minute tour ×

I have two different WAN interfaces in a Linux (iptables) router. How could I achieve a situation where different traffic is routed over different interfaces, depending on the protocol (destination TCP port)? Is it even possible?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

the feature you are looking for is named Policy Routing. Have a look at http://www.linuxhorizon.ro/iproute2.html (second example)

share|improve this answer
Excellent, thank you for the tip! –  Ville Mattila Sep 12 '12 at 22:03
add comment

Your Answer


