[quoted text, click to view] "Joe Wong" <joewong@mango.cc> wrote in message
news:exdk3WH0EHA.2572@tk2msftngp13.phx.gbl...
> Thanks for the info. By the way, I tried other FTP server like win_ftp,
> guildftp and titan.. they all give the option to configure the IP address
> in
> PASV response.
That a feature is provided, does not make it the best way to achieve a goal.
Your NAT router is not just translating network addresses - it is also
translating ports (it should really be called a NAPT router). While you may
be able to state accurately what network address externally represents your
internal FTP server, it's not always clear how the ports will be translated.
At best, a mismatch in ports will lead to transfers timing out and not
succeeding - at worst, such a mismatch would be able to cause file transfers
to the wrong party, perhaps even one that has not authenticated.
In addition, there are other advantages to asking the NAPT device to do the
translation for you - for instance, it will allow you to test your server
internally as well as externally, without having to disable (and then
remember to re-enable) the IP address translation, and hope that the change
of setting didn't interfere with the results of your test.
All NAPT devices are supposed to monitor traffic on port 21 for FTP commands
and responses, and to change the IP address and port noted in those
responses. If your NAPT router is not doing this, you should contact the
manufacturer for an upgrade to its firmware.
Alun.
~~~~