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.
Connect to your server and check for any already configured passive ports.
It should look something like this PassivePorts: 49185 65200
Open the file and add "PassivePorts 49152 65535" or use the following command on terminal.
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.