I'm in Honduras with 2 laptops. My email server is in Texas and requires
authentication. The local ISP is intercepting all outbound SMTP traffic and
routing it to one of his mail servers.
Laptop1 = Fedora9, “shorewall version” yields 4.0.15
eth0=192.168.168.x (Used by Laptop2 (Windows) to hit the net via cross over
cable)
ppp0=10.x.x.x via DHCP (Goes to ISP via HSDPA modem)
masq file contains : “ppp0 eth0”
Everything was working fine till the ISP started intercepting all SMTP
traffic and returning successful status codes thus routing all our outbound
emails into the bit bucket.
I want to rewrite SMTP packets headed for my server in Texas (registered
static IP) to use port 26 instead of 25, so I can bypass the ISP's rules.
Then in Texas, I want to accept all inbound port 26 traffic and rewrite it
to port 25 so the qmail on the box is happy.
I've read the FAQ's, and scoured the DNAT archives and tried every
combination I can think of and can't get this accomplished on my end, never
mind in Texas. Here's a sample of what I tried on laptop1:
DNAT net net:206.123.231.123:26 TCP 25
and several dozen variations.
I test using laptop1 via
telnet 206.123.231.123 25
and always end up on the ISP's box. I run a terminal session with
tcpdump -i ppp0 dst host 206.123.231.123
and always see it going to :smtp instead of :26 .
Where am I going wrong?
BTW - I wrote this using a webmail interface on my server as I can't send
any email normally. 8-)
--
Bill Gradwohl
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users