What I did in a similar problem was to create more than one routing table and then choose the routing table on the mangle: # Adicionando a rota de saída da embratel na tabela 4 ip route add table 4 default via 5.5.5.1 dev eth0 ip rule add fwmark 4 table 4 iptables -t mangle -A PREROUTING -p tcp --dport msnp -j MARK --set-mark 4 Regards, Victor On 12/1/06, ArcosCom Linux User <linux@xxxxxxxxxxxx> wrote:
Hi, I'm using: iptables 1.3.5 (FC5 distro with ROUTE target enabled) kernel 2.6.19 pom-ng 20061129 My box is a dual xeon machine (SMP kernel). I'm using 2 uplinks to connect my network to internet and its working fine, but some disconnection isues using messenger (amsn, gaim, m$msn, msn-messenger, etc...) needs I route all -p tcp --dport msnp over one uplink. To solve this problem, I want to try -j ROUTE target, to route all msnp traffic only for one uplink (I don't know if this will solve the problem, but I want to try). For this purpose, I wrote: iptables -t mangle -A PREROUTING -p tcp --dport msnp -j ROUTE --gw <uplink> --continue The error is: iptables: Unknown error 4294967295 In dmesg: ipt_ROUTE: targinfosize 0 != 40 Any help about this? Thanks