Good Evening,<br><br>I am trying to set up port based routing on a CentOS 5.2 box as described here:<br><br><a href="http://www.linuxhorizon.ro/iproute2.html">http://www.linuxhorizon.ro/iproute2.html</a> (second example)<br>
<br>Therefor I have set up the following mangle and routing rules:<br><br>$IPTABLES -A OUTPUT -t mangle -p tcp --dport 1100 -j MARK --set-mark 1<br>$IPTABLES -A OUTPUT -t mangle -p tcp --dport 1101 -j MARK --set-mark 2<br>
$IPTABLES -A OUTPUT -t mangle -p tcp --dport 1102 -j MARK --set-mark 3<br><br>$IP route add default dev ppp100 table SOESTCOM1<br>$IP route add default dev ppp101 table VERSATEL1<br>$IP route add default dev ppp102 table TONLINE1<br>
<br>$IP rule add from all fwmark 1 table SOESTCOM1<br>$IP rule add from all fwmark 2 table VERSATEL1<br>$IP rule add from all fwmark 3 table TONLINE1<br><br>
    iptables -t mangle -L -vn output:<br><br><a href="http://pastebin.centos.org/24626">http://pastebin.centos.org/24626</a><br><br>shows that the packages are marked correctly.<br><br>Here is an example ip route show table output:<br>
<br>default dev ppp102  scope link<br><br>But it seems (and tcpdump indicates) that packages are still routed via default route, instead.<br><br>Do I need to set some proc flags to activate port based routing?<br><br>Best Regards<br>
Marcus<br>