Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 4 down vote accepted

the feature you are looking for is named Policy Routing. Have a look at (second example)

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.