Just a quick question... Is there a way to do content based routing (i.e. routing based on a TCP or UDP port) without using iptables, i.e. using the ip command? Thanks Andrew _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Nope. You can use ipchains/iptables to fwmark a packet and then route based on fwmark (which needs to be supported by your kernel). -Martin : Just a quick question... : Is there a way to do content based routing (i.e. routing based on a TCP : or UDP port) without using iptables, i.e. using the ip command? : : Thanks : Andrew : _______________________________________________ : LARTC mailing list / LARTC@mailman.ds9a.nl : http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ : -- Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Thursday, 12 September 2002, at 23:07:46 +0800, Andrew J. Barbara wrote:> Just a quick question... > Is there a way to do content based routing (i.e. routing based on a TCP > or UDP port) without using iptables, i.e. using the ip command? >It doesn''t seem to be possible with just "ip", as neither "ip rule" nor "ip route" have "selectors" for transport-level port. But you have ipchains/iptables to mark packets and "ip" to route them based on the mark put on them. -- Jose Luis Domingo Lopez Linux Registered User #189436 Debian Linux Woody (Linux 2.4.19-pre6aa1) _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/