Firewall issue

Discussion in 'General' started by madness85, Oct 4, 2019.

  1. madness85

    madness85 New Member

    Hi guys,

    Not sure what the issue is here but if the firewall is active in ISPConfig i cant connect to ftp port 21

    Open TCP ports 20,21,25,53,80,110,143,443,465,587,993,995,3306,8080,8081,10000

    As you can see the port is open but i get:

    Status: Connection established, waiting for welcome message...
    Status: Initializing TLS...
    Status: Verifying certificate...
    Status: TLS connection established.
    Status: Logged in
    Status: Retrieving directory listing...
    Error: Connection timed out after 20 seconds of inactivity
    Error: Failed to retrieve directory listing

    Disable the firewall and it works.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    madness85 likes this.
  3. madness85

    madness85 New Member

    Thank for replying. I actually did all that before asking the question, but i was manually adding a port between
    40110 40210 to connect to server.

    How does setting passive port range 40110 to 40210 allow me to connect on port 21 i dont get :)
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Your problem is not the connection to port 21, which is clearly shown in the connect log you posted. Your problem is that the passive port range of the FTP server does not match the one of the firewall which then causes FTP to fail on 'Retrieving directory listing' when the ftp server switches the connection to one of the passive ports to free port 21. Follow the instructions in the link I posted to correct that in the pure-ftpd config AND in the firewall port settings. Btw, this exact same question has been answered many times here in the forum already, so you could have just used the search function to solve your problem.
    madness85 likes this.

Share This Page