| Re: how to send smtp traffic via gateway 2? |
|
 |
|
 |
|
 |
|
 |
Group: alt.comp.os.linux · Group Profile
Author: Tim GreerTim Greer Date: Sep 19, 2008 11:12
jerzu wrote:
> Hi,
>
> I have two ISP with two interfeace:
> WAN1 & WAN2
>
> I would like to send smtpp traffic via WAN2
> and get pop3 traffic via WAN1
>
> how to do it?
>
> regards
> Jerry
>
> p.s.
> I tried:
>
> wan1 =83.12.12.226
> wan2 =78.131.144.101
>
>
> iptables -t nat -I POSTROUTING -s 192.168.1.0/24 -p tcp --dport 25 \
> -j SNAT --to $wan2 -o eth1
>
> iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to $wan2
> iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to $wan1
>
>
> but it doesn't works
What MTA are you using? There may be better or additional methods of
doing those other than NAT forwarding. Also, what is it doing at this
time that is expected or unexpected, has anything changed and how/what
is it errorring, etc.?
--
Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting. 24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!
|