Skip to main content

Can't change pureFTP passive port range

Comments

8 comments

  • cPanelMichael
    Hello :) Are you using a third-party firewall management utility such as CSF? If so, does the issue persist when temporarily disabling CSF? You must ensure the passive port range is not blocked in your firewall. Thank you.
    0
  • Ioan Sameli
    Hi Michael, Thanks for your reply. The passive range is definitively blocked by my firewall, and I don't want to leave the ports <1024 open (except the obvious ones). My problem is that I can't change the PassivePortRange for pureFTP - the directive seems to be ignored. Any idea why? Thanks.
    0
  • cPanelMichael
    ]My problem is that I can't change the PassivePortRange for pureFTP - the directive seems to be ignored. Any idea why?.

    Please ensure you follow the instructions exactly as they are presented here: How to enable Passive mode for Pure-FTPd Thank you.
    0
  • Ioan Sameli
    That's exactly the tutorial I originally followed, but pureFTP still redirects me to the wrong ports when I try to connect:
    Command: PASV Response: 227 Entering Passive Mode (54,65,160,149,218,239)
    As you can see, even though I've set the PassivePortRange to "30000 50000", it tries so use ports 218 and 239 for some reasons - and those are blocked by the firewall. Other settings that I modify in the same /etc/pure-ftpd.conf configuration file are taken into account, but it seems the PassivePortRange setting is either ignored or overridden by something. Any idea what could cause this? I did a fair amount of googling but couldn't find any answer.
    0
  • cPanelMichael
    Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.
    0
  • Ioan Sameli
    Thanks a lot for your help Michael. I've tried again on a fresh cPanel install and got exactly the same problem, still not sure if it's a bug or me who does something wrong. I've submitted the ticket 6029505, looking forward to get this resolved.
    0
  • Ioan Sameli
    Ticket resolved (that was effective). If anyone runs into this issue in the future, here's the solution: - My port number was actually right - the port number is not plain, it's a 16bit digit encoded as two 8bit digits: [url=http://stackoverflow.com/questions/9966993/how-to-get-port-in-ftp-protocol-from-passive-mode]How to get port in FTP protocol from passive mode? - Stack Overflow - My connection was refused because iptable was blocking the ports in the passive range - so double check your iptable configuration.
    0
  • cPanelMichael
    I am happy to see the issue has been resolved. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.