Re: [CentOS] port based routing

2009-03-12 Thread Marcus Moeller
Good Evening, There seems to be a bug in iproute caused by nla policy introduction to the kernel: http://mailman.ds9a.nl/pipermail/lartc/2007q1/020493.html So I was not able to set ip rules using e.g.: ip rule add from all fwmark 3 table TONLINE1 which lead to an error: RTNETL

[CentOS] port based routing

2009-03-09 Thread Marcus Moeller
Good Evening, I am trying to set up port based routing on a CentOS 5.2 box as described here: http://www.linuxhorizon.ro/iproute2.html (second example) Therefor I have set up the following mangle and routing rules: $IPTABLES -A OUTPUT -t mangle -p tcp --dport 1100 -j MARK --set-mark 1 $IPTABLES