This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DNAT and FTP

I've setup a DNAT rule for FTP so that I can use port 2100 for FTP. I'm accessing FTP on a Windows server which is also port 2100.

So it works for making the connection but when I use dir I get;

500 'EPSV' comand not understood.

It has to be something through the firewall because if I make the same connection from inside the network it doesn't have a problem.

Can anyone help?


This thread was automatically locked due to age.
Parents
  • You know FTP needs at least 2 ports, right?

    Barry
  • I can't say i have a clear understanding of FTP. I see that FTP seems to use 20 and 21 but in all the software I use, either the Windows FTP server or the Windows or Unix clients on the outside, I can specify a change for only port 21 it seems. 

    I tried creating a rule to pass port 20 as well (assuming that I hadn't changed it anywhere) but this did not work so I'm quite sure what to do.
  • And are you using passive or active FTP clients?
    Passive is unlikely to work if you are doing NAT and you change the ports.
    I'm not sure about active.

    Barry
  • A status shows that passive mode is off but when I try a dir I get;

    500 'EPSV' command not understood
    227 Entering Passive Mode

    As a guess I tried changing the service to 2120:2121 but I got the same results.
  • If you're using passive mode (most command-line ftp clients do), and you're doing NAT, then you NEED the FTP Connection Tracker to be turned on on the firewall.
    Unfortunately, I don't think it works if you change the ports.

    Barry
Reply
  • If you're using passive mode (most command-line ftp clients do), and you're doing NAT, then you NEED the FTP Connection Tracker to be turned on on the firewall.
    Unfortunately, I don't think it works if you change the ports.

    Barry
Children
No Data