• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Firewall problem with ProFTPd

SlimDeluxe

New Pleskian
Hi everyone.

I have enabled the plesk firewall component on my Plesk 12 / Ubuntu 14.04 machine.

Everything works except FTP. Upon connecting, it fails on the MLSD command.

Code:
Response:    200 Type set to I
Command:    PASV
Response:    227 Entering Passive Mode (x,x,x,x,174,229).
Command:    MLSD
Error:    Connection timed out
Error:    Failed to retrieve directory listing

If I release the "System policy for incoming traffic" to "Allow from everyone" it works. I have tried both secure and standard FTP connections, it does not make a difference.

Here's a screenshot of the rules.
screenshot-from-2015-05-.png


The very same Firewall rules work just fine on my other Plesk 11 / Ubuntu machine.

I guess Plesk is not generating the correct rules. How can I determine which port should I open to make it work?

Regards,
Omer
 
Hi,
following that article I added a rule with following:
Allow incoming from all on ports 20/tcp, 990/tcp

Nothing changed, still times out
 
When using passive ftp, the ftp server will change to another port then the usual and 20, 21, etc...

To allow passive connections in ftp you must do 2 things if you use a firewall:

- tell proftpd what ports to use for passive ftp
- open these ports in the firewall

To tell proftpd what ports to use you must add the following to /etc/proftpd.conf

PassivePorts 10000 10250

in the <Global> </Global> part of the configuration. I place mine just above </Global>, but that is up to you.

Then open these ports in the firewall.

What ports you use is up to you but be sure to use enough so there is room for everyone to connect.

Regards
Jan
 
Back
Top