* [LARTC] Re: route mail through different gateway
@ 2006-08-10 13:14 Jarek Poplawski
0 siblings, 0 replies; only message in thread
From: Jarek Poplawski @ 2006-08-10 13:14 UTC (permalink / raw)
To: lartc
On 04-08-2006 04:36, Michael wrote:
> Hi All,
>
> I've got server with one LAN card eth0 ip\x10.0.0.5 <http://10.0.0.5>
>
> default access t ointernety done through ADSL router gw 10.0.0.1
> <http://10.0.0.1>
> we got second internet access through another ADSL router gw 10.0.0.2
> <http://10.0.0.2>
>
> I want to send all e-mail out through gw 10.0.0.2 <http://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 <http://10.0.0.2> lookup mail.out
You mean:
ip ro add default via 10.0.0.2 table mail.out
Try this also:
echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
Jarek P.
PS: I hope you have this mail.out properly added (or replace this
with a number e.g.: 100) and fwmark enabled in kernel config.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-08-10 13:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-10 13:14 [LARTC] Re: route mail through different gateway Jarek Poplawski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox