From: Michael Date: Fri, 04 Aug 2006 02:36:18 +0000 Subject: [LARTC] route mail through different gateway Message-Id: <35207fdf0608031936y2fe970d6pb855fc2f7557d5de@mail.gmail.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============0142965059==" List-Id: To: lartc@vger.kernel.org --===============0142965059== Content-Type: multipart/alternative; boundary="----=_Part_2039_30480905.1154658978672" ------=_Part_2039_30480905.1154658978672 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All, I've got server with one LAN card eth0 ip=10.0.0.5 default access t ointernety done through ADSL router gw 10.0.0.1 we got second internet access through another ADSL router gw 10.0.0.2 I want to send all e-mail out through gw 10.0.0.2 How it can be done? I've tried to mark packets: iptables -t mangle -A OUTPUT -p tcp --dport 25 -j MARK --set-mark 0x1 and ip ru add fwmark 0x1 table mail.out ip ro add default via 10.0.0.2 lookup mail.out But it is dosen't work Any help? -- -- Michael ------=_Part_2039_30480905.1154658978672 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All,

I've got server with one LAN card eth0 ip=10.0.0.5

default access t ointernety done through ADSL router gw 10.0.0.1
we got second internet access through another ADSL router gw 10.0.0.2

I want to send all e-mail out through gw 10.0.0.2
How it can be done?
I've tried to mark packets:
iptables -t mangle -A OUTPUT -p tcp --dport 25 -j MARK --set-mark 0x1
and
ip ru add fwmark 0x1 table mail.out
ip ro add default via 10.0.0.2 lookup mail.out

But it is dosen't work
Any help?

--
--
Michael ------=_Part_2039_30480905.1154658978672-- --===============0142965059== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============0142965059==--