D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] send out from internal mail server!



> Hi All,
>

Heres the culpirt;


> iptables -t nat -A PREROUTING -p tcp --dport 25 -j DNAT --to 10.0.x.x:25

I tried it with  -i eth0 (MY external interface).

iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 25 -j DNAT --to
10.0.x.x:25

also

iptables -t nat -A PREROUTING -p tcp -s 196.168.x.x --dport 25 -j DNAT
--to 10.0.x.x:25

Still no good. This is somehow causing a loop, so if flush out the above
mail can then be sent.

So i now need a good forward rule, that is not going to send the outgoing
into circles.

Luke



------------------------------------------------------------------
PGPmail - "Free encrypted secure offshore webmail" https://pgp.bz/

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly