Enabling Passive FTP (Linux)

To enable users to connect to your Plesk for Linux server via FTP in the passive mode, you need to manually edit the ProFTPD configuration file and make changes to your firewall policy to let the passive FTP connections through.

First, log in to your server via SSH as the root user. Open the /etc/proftpd.conf file for editing and add the following line anywhere in the <Global> section:

PassivePorts 49152 65534

The file may look like this after you add the line:

Save the changes and restart the xinetd service for the changes to take effect:

/etc/init.d/xinetd restart

To make sure that the passive FTP connections are allowed through your firewall, add a custom firewall rule with the following parameters:

  • Direction: Incoming
  • Action: Allow
  • Ports: TCP 49152-65534
  • Sources: (any host)

The configured rule should like this:

Add the rule to your ruleset to complete the procedure.