> But I have problem with NAT to FTP from external to internal IP
> I have two FTP server no.1 192.168.1.100 and no.2 192.168.1.60
> I use NAT for FTP no.1 from port 21 to port 21 - active OK, pasive
> When I use NAT for FTP no.2 from port 2121 to port 21 - active,
> passive wrong
>  Connecting to Vortex
>  Connecting to 80.188.xx.xx:2121
>  220 ProFTPD 1.2.10 Server (Starless FTP server) [192.168.1.60]
>  USER trus
>  331 Password required for xxxx.
>  PASS (hidden)
>  230-Welcome, archive user trus at 194 dot 213 dot xx dot xx, time: Fri Oct 15 20:21:17 2004
>  this is Starless FTP server...
>  230 User trus logged in.
>  SYST
>  215 UNIX Type: L8
>  REST 1
>  350 Restarting at 1. Send STORE or RETRIEVE to initiate transfer
>  REST 0
>  350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer
>  TYPE A
>  200 Type set to A
>  PWD
>  257 "/" is current directory.
>  Listening at IP: 194.213.xx.xx PORT: 3937 for data connecting
>  PORT 194,213,xx,xx,15,97
>  200 PORT command successful
>  LIST -al
>  425 Unable to build data connection: Connection refused
>  Vortex disconnected
> lease help me with this problem. THX
> I use m0n0Wall 1.2b1.
First of all, to understand why this is failing, you have to
understand how PASV FTP works. But, just from the output above, it
even looks like your active conneciton isn't working.
For active connections, your client has to be directly connected to
the internet (no NAT on client side), and your m0n0 must forward both
port 2121 and 2120 to the FTP server. Your client has to allow the
connection (make sure the client firewall doesn't block it, just like
XP SP2 default) from the FTP server back to the client (the active
On the other hand, for passive connections, depending on your FTP
software, you may be able to set a range of high number ports 1024+ on
the server software. Those you have to forward to the FTP server as
well. The client connects to those ports and they must map 1:1 to the
ports on the server. This means, if your passive port range on the
FTP server is 3000-3010, your m0n0 MUST forward ports 3000-3010 to the
FTP server. This setting is server dependent as it differs from
software to software.
Doing one FTP server through NAT is always a challenge, much less
trying to do more than one. Give that a shot, and if you have more
problems, post your internal configuration along with server software
+ IP addresses of your internal servers and maybe the situation could
be clearer (it's quite abstract to me right now).