Ports to open in UFW for FTP

Discussion in 'Installation/Configuration' started by Dennis_sp, Nov 8, 2021.

  1. Dennis_sp

    Dennis_sp Member

    Hi,

    I use UFW to secure my server. When i want to open up FTP for the world and i have this rule:
    21/tcp ALLOW IN Anywhere

    People are still not able to connect unless i whitelist their IP. When only port 21 is open they can make a connection but not list the FTP contents. Which ports do i need to open for them to be able to do so?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    It depends on which ports you have set as passive port range. Which FTP server application do you use?
     
  3. Dennis_sp

    Dennis_sp Member

  4. till

    till Super Moderator Staff Member ISPConfig Developer

  5. Dennis_sp

    Dennis_sp Member

    I checked
    nano /etc/pure-ftpd/pure-ftpd.conf

    but this part is commented out:

    # Port range for passive connections - keep it as broad as possible.

    # PassivePortRange 30000 50000
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    The file /etc/pure-ftpd/pure-ftpd.conf is not used on Ubuntu for this configuration. See link in my post above on how to set the passive port range.
     
  7. Dennis_sp

    Dennis_sp Member

    till likes this.

Share This Page