[LARTC] src routing and fwmark
the sew
sewlist at gmail.com
Thu Nov 2 08:13:04 CET 2006
Hi,
I've got 2 lines from two diffrent ISP's, one is a leased line and another a
DSL line,
I route certain ips over the DSL line for faster access and would like
email to go over the leased line as it has a static ip and is our sending
mailserver ip
I would like to send mail to the same ips that is routed over DSL via the
leased line, otherwise my server gets blacklisted with the DSL ip
my routing table
164.148.0.0/14 dev ppp0 scope link
196.0.0.0/8 dev ppp0 scope link
default via 196.34.17.1 dev eth0 proto zebra equalize
If I send mail to a ip on 196.0.0.0/8 on port 25 it must go via 196.34.17.1
my other routing tables:
200 dmz
201 ppp
ip rule add fwmark 25 table dmz
ip route add default via 196.34.17.1 table dmz
iptables -t mangle -A OUTPUT -p tcp --dport 25 -j MARk --set-mark 25
I can see the packets get matched but still goes via ppp0, is there anyway
to overcome this?
Thanks
Sew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ds9a.nl/pipermail/lartc/attachments/20061102/0de4eb7c/attachment-0001.html
More information about the LARTC
mailing list