How to Change ProFTPD Passive Ports and Make the Configuration Persistent

ProFTPD is a highly configurable FTP server with a focus on efficiency and ease of use. One of its features is the ability to change passive ports, which can be useful for managing remote connections. This guide will walk you through the process of changing the ProFTPD passive ports and ensuring that the configuration remains persistent during updates and reboots.

Configure ProFTPD Passive Ports

Connect to your server and check for any already configured passive ports.

The default configuration file is located at /etc/proftpd.conf.

It should look something like this PassivePorts: 49185 65200

If there are no passive ports configured, you can do it by creating a local config file in the ProFTPD folder. Use the following command:

Open the file and add "PassivePorts 49152 65535" or use the following command on terminal.

Restart ProFTPD Service

After making these changes, restart the ProFTPD service for the changes to take effect. Use the following command:

Change ProFTPD Passive Ports on cPanel and Make the Configuration Persistent

When you change the passive ports on the default configuration file, the passive ports change during the current boot only. You may notice that during cPanel updates and system reboots the passive ports revert to the default range. To avoid this change from happening, you need to make sure that the configuration is persistent during cPanel updates and reboots. Use the following command on terminal to create a passive ports persistent configuration file.

After making these changes, restart the ProFTPD service for the changes to take effect. Use the following command:

Congratulations, you have changed the ProFTPD passive ports and made the configuration persistent during updates and reboots.

Was this article helpful?

0 out of 0 liked this article

Still need help? Message Us