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.
Configure Passive Mode in ProFTPd
Edit the main ProFTPd configuration file:
nano /etc/proftpd/proftpd.conf
Look for the following line (it might be commented out with #):
PassivePorts 50000 50100
If it doesn’t exist, add it anywhere in the file. This port range defines the passive ports used by the server. Save the changes (Ctrl + X, then Y, and Enter).
Now, allow traffic on the passive ports in the firewall.
After configuring the file and opening the ports in the firewall, restart the ProFTPd service:
systemctl restart proftpd
Verify that the service is running without errors:
systemctl status proftpd
Note
You can use a different port range if you prefer (e.g., 30000 35000), but make sure to open them in the firewall.
Configure the FTP Client in Passive Mode
To configure Passive Mode in an FTP client like Filezilla, we have created a specific step-by-step article to make this configuration easier for the user:
Connect to FTP in passive mode with Filezilla
If you still encounter issues after the configuration, check the ProFTPd logs:
sudo tail -f /var/log/proftpd/proftpd.log
We hope this article has been helpful! 🙂 Remember, if you have any questions about this or any other issue related to your servers at Clouding, don’t hesitate to contact us at soporte@clouding.io We’re here to support you with whatever you need!