Displaying 1 result from an estimated 1 matches for "tonline1".
2009 Mar 09
1
port based routing
...j MARK --set-mark 1
$IPTABLES -A OUTPUT -t mangle -p tcp --dport 1101 -j MARK --set-mark 2
$IPTABLES -A OUTPUT -t mangle -p tcp --dport 1102 -j MARK --set-mark 3
$IP route add default dev ppp100 table SOESTCOM1
$IP route add default dev ppp101 table VERSATEL1
$IP route add default dev ppp102 table TONLINE1
$IP rule add from all fwmark 1 table SOESTCOM1
$IP rule add from all fwmark 2 table VERSATEL1
$IP rule add from all fwmark 3 table TONLINE1
iptables -t mangle -L -vn output:
http://pastebin.centos.org/24626
shows that the packages are marked correctly.
Here is an example ip route show table ou...