In our Pre-installed Magento Image, the "ProFTPd" FTP server has been pre-installed so that you can establish a remote connection and transfer files without complications. In this article, we will show you how to configure passive mode so that the FTP server has a range of ports passively listening, allowing access and improving connection speed between the server and the user.
Configuring Passive Mode in ProFTPd
Edit the main configuration file of ProFTPd:
nano /etc/proftpd/proftpd.conf
Look for the following line (it may be commented with #):
PassivePorts 49152 65534
If it does not exist, add it anywhere in the file. This port range defines the passive ports used by the server.
Note
You can use a different port range if you prefer (e.g., 30000 35000), but make sure to open them in the firewall.
Save the changes (Ctrl + X, then Y and Enter).
Opening the Ports in the Firewall
Now, allow traffic on the passive ports in the firewall.
In the Clouding user panel, go to Servers>My Firewalls and edit the firewall profile currently assigned to the server:
Then, add a rule to open the previously mentioned ports to enable passive FTP.
Restarting ProFTPd
After configuring the file and opening the ports in the firewall, restart the ProFTPd service:
systemctl restart proftpd
Check that the service is running without errors:
systemctl status proftpd
Configuring the FTP Client in Passive Mode
In FileZilla or any FTP client:
Go to Edit → Settings → Connection → FTP.
Select the transfer mode as "Passive Mode".
Save and test the connection.
If you still have issues, check the ProFTPd logs:
sudo tail -f /var/log/proftpd/proftpd.log
We hope this article has helped you! 🙂 Remember, if you have any questions about this or any other issue related to your servers on Clouding, feel free to contact us at soporte@clouding.io We are here to help you with anything you need!