Routing based on source port
Hello,
I have two ISPs connected to my router. Using "ip rule" I can easily divert traffic to the diffrent uplinks. However, "ip rule" only seems to be able to send packets according to their source or destination adress. What I want is to be able to route based on protocol and source port. Is this possible, and how?
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 7 lines · Daniel Ahlberg
Hello,
I have two ISPs connected to my router. Using "ip rule" I can easily divert traffic to the diffrent uplinks. However, "ip rule" only seems to be able to send packets according to their source or destination adress. What I want is to be able to route based on protocol and source port. Is this possible, and how?
I think ip rule has a syntax for that; if it doesn't, use iptables or ipchains to attach a mark to packets with certain source or destination port and create a rule that works on that mark.
Regards,
bert
Signature · 6 lines
http://www.PowerDNS.com Versatile DNS Software & Services http://www.tk the dot in .tk http://lartc.org Linux Advanced Routing & Traffic Control HOWTO _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/