If you are using ProFTPd on your server or want to configure ProFTPd on a new server and need to enable passive mode, follow these steps to set it up correctly:
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!