how to send smtp traffic via gateway 2?
  Home FAQ Contact Sign in
alt.comp.os.linux only
 
Advanced search
POPULAR GROUPS

more...

alt.comp.os.linux Profile…
 Up
how to send smtp traffic via gateway 2?         


Author: jerzu
Date: Sep 19, 2008 03:18

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
1 Comment
Re: how to send smtp traffic via gateway 2?         


Author: Tim Greer
Date: Sep 19, 2008 11:12

jerzu wrote:
Show full article (1.03Kb)
no comments