NAT changing IP.
Hi,
I have used a firewall m/c with the 2 interfaces, 1 Static Public IP (eth0) & Internal ip (192.168.0.1, eth1) & route the packets to mail server with internal ip 192.168.0.254 for mail receiving with the following rule.
$IPT -A PREROUTING -t nat -p tcp -i eth1 --dport 25 -j DNAT --to 192.168.0.254:25
No problems in receiving mails. Problem faced by me is the IP Address of the originating mail is changed to 192.168.0.1 after the PREROUTING, due to which the SPAM filter is not happening & am receiving around 1000 Junk mails.
Looking for a solution of just moving the packets with original IP to my mail server.
Thanks for the help in advance.
Rgds...Anand
Thanx & RegardsAnand Kumar91-80-25003664 (DiD), 98455 79062 (M)Delivery Services - IBM Global AccountEGL Bangalore
__________________________________
Discover Yahoo!
Use Yahoo! to plan a weekend, have fun online and more. Check it out!
http://discover.yahoo.com/
Quoted 10 lines · Anand Kumar
Hi,
I have used a firewall m/c with the 2 interfaces, 1 Static Public IP (eth0) & Internal ip (192.168.0.1, eth1) & route the packets to mail server with internal ip 192.168.0.254 for mail receiving with the following rule.
$IPT -A PREROUTING -t nat -p tcp -i eth1 --dport 25 -j DNAT --to 192.168.0.254:25
Quoted 8 lines
No problems in receiving mails. Problem faced by me is the IP Address of the originating mail is changed to 192.168.0.1 after the PREROUTING, due to which the SPAM filter is not happening & am receiving around 1000 Junk mails.
Looking for a solution of just moving the packets with original IP to my mail server.
fix your nat:POSTROUTING SNAT/MASQ rule so that it only specifies "-o $EXT_IF." and next time, post all your rules (iptables-save) so that the folks that are trying to help don't have to divine answers from the tea leaves.
-j
--
"Stewie: Careful! You're washing a baby's scalp, not scrubbing
the vomit out of a Christmas dress, you stupid holiday drunk."
--Family Guy