1. Ftp problems caused by NAT
We recently had to switch ISPs (from PSInet to Verio). With PSInet,
we were using PSInet's addresses on our internal network as this was
set up before NAT was available. I decided to switch to using the
network 192.168.2.0/24 for our internal address and NAT them to
our external network of 184.108.40.206/24. I am using Red Hat Linux
7.1 with a Sangoma T1 card to connect to our ISP. I am using iptables
to implement our firewall and to set up NAT.
For each machine, I set up a pair of rules such as the following
iptables -t nat -A POSTROUTING -s 192.168.2.137 -j SNAT --to-source
iptables -t nat -A PREROUTING -d 220.127.116.11 -j DNAT --to-destination
This worked fine for everything but ftp. For outgoing ftp, I can not
transfer data with the port command, but can with the passive mode.
For incomming ftp, the situation is reversed with the port command
working and passive mode broken. The problem appears to be that
the machine at our end of the connection likes to give out it's address
as 192.168.2.137 (the internal address) which is useless to the machine
at the other end of the connection.
The problem is that some ftp programs (such as SUN's) do not know how
to do passive mode, and browsers such as Netscape don't like to use
the port command.
To work arround this for incomming ftp, I removed the PREROUTING NAT
entry, added an alias interface of 18.104.22.168 to our router, and
added an alias interface of 22.214.171.124 to our ftp machine. This
avoids the use of NAT for incomming ftp connections, but somewhat
defeats the purpose of using NAT.
Is there a correct way to fix this? It would seem that for NAT to work
for ftp, the command channel would have to be intercepted and the internal
addresses changed to the external address. Can this be done? What
should I be doing?
2. HELP! .htaccess disaster
3. Specific nat problem - GURUS HELP (bug in pf/nat?)
4. compressed .tgz files
5. NAT'ing twice causes slowdowns?
6. cron job and e-mail confirmation to users
7. ip nat or ip masq, ttl exceeded (but its not), what causes this?
8. Tape busy, won't come back
9. Nat to Nat?
10. NAT-T (NAT Traversal) support for Linux
11. Is NAT in Linux the same as NAT in FreeBSD ?
12. NAT with 2 public interfaces and 1 privat nat interface
13. Double NAT! Or is that NAT squared?