[K12OSN] [OT] forcing mail traffic to mailgate
Christopher K. Johnson
ckjohnson at gwi.net
Fri Mar 12 11:15:02 UTC 2004
Julius Szelagiewicz wrote:
> I was thinking in terms of an iptables rule that would move all
>the port 25 traffic from eth0 to the mailgate_address:25, thusly:
>
>iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 25 -j DNAT
>--to-destination 216.216.171.236:25
>
>Is this feasible, is this enough? tia, julius
>
>
That should do it as long as eth0 is on the inside network, the gateway
is configured to relay for that network, and return traffic from the
mail gateway has to pass back through the same machine you added this
DNAT to in order to reach the mail clients.
Chris
--
-----------------------------------------------------------
"Spend less! Do more! Go Open Source..." -- Dirigo.net
Chris Johnson, RHCE #807000448202021
More information about the K12OSN
mailing list