fwmark help
Hi all,
I' new with advanced routing so I need some help.
I'm trying to force incoming/outgoing traffic of my ftp server through my 2nd provider, and leave all traffic going through my 1st provider.
|eth0----192.168.29.1 (1st provider router)
|
--my.ftp.server-------linuxbox
|
|eth3----192.168.1.1 (2nd provider router)I'm trying with iptables's mangling rules:
/sbin/iptables -t mangle -A PREROUTING -p tcp -i eth2 -s my.server.ftp --sport 21 -j MARK --set-mark 10
and then forcing routing to my 2nd provider:
ip rule add fwmark 10 table ftp prio 50
ip route add table ftp default via 192.168.1.1 dev eth3
After this I expect to see (with tcpdump) packet passing through eth3, but if I try connecting from internet to my 2nd provider, packets still came out from eth0 (my 1st provider).
I've rebuild my kernel with specific mark features. Any ideas?
Best regards
Domenico Gargano
-------------------------------------------------------------
Domenico Gargano : tel:+39 080 5343750
Planetek Italia s.r.l. : fax:+39 080 5340280
Via Massaua, 12 : email: [email protected]
I-70123 BARI : http://www.planetek.it
-------------------------------------------------------------
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/