[SOLVED] Ftp Passive mode and firewall

hi,

If I enable firewall with that rules the ftp connect, but not in pasive mode
passive FTP mode opens a random port on the server side for the data connection [0] so you'll have to allow a range of ports i guess

From the server-side firewall's standpoint, to support passive mode FTP the following communication channels need to be opened:

  • FTP server's port 21 from anywhere (Client initiates connection)
  • FTP server's port 21 to ports > 1023 (Server responds to client's control port)
  • FTP server's ports > 1023 from anywhere (Client initiates data connection to random port specified by server)
  • FTP server's ports > 1023 to remote ports > 1023 (Server sends ACKs (and data) to client's data port)

[0]: https://slacksite.com/other/ftp.html
 
Last edited:
  • Like
Reactions: virmix