Forum Discussion

sysadmin_209494's avatar
sysadmin_209494
Icon for Nimbostratus rankNimbostratus
Jul 06, 2015

Passive FTP Port Range

We have an FTP application that is using Port 9021 for the incoming FTP Port. Once this is established with the backend FTP Application, the application then opens up a random FTP Passive Port from the range 10022 through 10032. I have these configured as VIPs on the F5 and they are also opened on the firewall. When we attempt to connect via Filezilla, we see the initial connection, and the application sends back what Passive FTP port should be used, but its always sending it back to the IP Address of the F5 itself as the application believes that is the initial source IP. How can we have the client source IP be sent through the F5 so the application send back to it with the correct Port for it to connect to?

 

Thanks. Dave

 

4 Replies

  • That looks like it would work with one Passive port, but I have a range of 11 ports from 10022 to 10032. I can't see how to have it use that range of ports.

     

    Dave

     

  • The below should work for both FTP or FTPS. If your server does not support Active transfer mode you can ignore the SNAT configuration section. If you have only one server behind the F5 you may not need the source address based configuration. Finally as the virtual server is listening in all ports you may want to add irule to drop packets destined to ports that your FTP server is not listening to both control and the passive data range.

     

    https://support.f5.com/kb/en-us/solutions/public/9000/300/sol9347.html

     

    • syedimam_147051's avatar
      syedimam_147051
      Icon for Nimbostratus rankNimbostratus
      Can you please advise if it works? I have same problem and it works with TCP profile but failed after receiving PASV entrance from server.