On FTP servers, there are two modes for data transfer: active and passive. In active mode, the server itself initiates the data transfer, whereas in passive mode, the client requests an open port on the server to establish and initiate the data transfer. Connecting to an FTP in passive mode can resolve connection issues if there is a firewall on the client side.
To configure Plesk's FTP in passive mode, you must connect via SSH to your server with the "root" user.
Check if the following file exists: "55-passive-ports.conf":
# ls -l /etc/proftpd.d/
If it does not exist, create the file:
# vi /etc/proftpd.d/55-passive-ports.conf
Add the following content:
PassivePorts 50000 50100
If it exists, verify that the content is as shown above with the command:
# cat /etc/proftpd.d/55-passive-ports.conf
Restart the service:
# systemctl restart xinetd
Add rules to the Plesk Firewall
Information
If you do not have the Plesk Firewall installed, you can skip this step.
If you have the Plesk firewall enabled, you will need to create a rule in the Plesk firewall to open the passive FTP ports (50000 to 50100). The rule should be configured as shown in the following screenshot:
Add rules to the Clouding Firewall
For your server to accept traffic through the passive FTP ports of Plesk, you will need to open ports 50000 to 50100 in the firewall linked to the server. Configure a custom rule to allow TCP traffic from port 50000 to port 50100 and with a source IP of 0.0.0.0/0 to allow connections from any IP address:
Once you have created this custom rule, your server will be able to accept connections for the passive FTP configured earlier in Plesk.
Connect to FTP in passive mode with FileZilla
Everything is now set up to connect to your server via FTP using passive ports. In this guide, we explain in detail how to do it from FileZilla.
If you have questions about the configuration of your cloud server or any other issue, write to us at soporte@clouding.io. Our Technical Support team will be happy to assist you with anything you need.