Question
How can I change the passive FTP port range for PureFTPd or ProFTPd?
Answer
Edit the appropriate configuration file and run the FTP setup script included with cPanel:
- Connect to your server through SSH as the root user
- Add your preferred range to the local FTP configuration. The ranges presented below are the defaults:
For PureFTPd:
echo "PassivePortRange: 49152 65534" >> /var/cpanel/conf/pureftpd/local
For ProFTPd:
echo "PassivePorts: 49152 65534" >> /var/cpanel/conf/proftpd/local
- Run the FTP setup script for your FTP software:
For PureFTPd:/usr/local/cpanel/scripts/setupftpserver pure-ftpd --force
For ProFTPd:/usr/local/cpanel/scripts/setupftpserver proftpd --force
Comments
0 comments
Article is closed for comments.