How does one change the FTP port to something else to try and increase security? Where abouts is that setting? Also, which ports # can we change it to?
How does one change the FTP port to something else to try and increase security? Where abouts is that setting? Also, which ports # can we change it to?
If you are using pure-ftpd, you need to edit /etc/pure-ftpd.conf and change the port below to something other than 21.
If you are using protftpd, you need to edit/etc/proftpd.conf and change the port below to something other than 21:Code:# IP address/port to listen to (default=all IP and port 21). # Bind 127.0.0.1,21
After making the change, you need to restart the FTP server to make the change live:Code:Port 21
Code:/scripts/restartsrv_ftpserver
You can change to any open port on the system. To see what ports are currently in use use the following command:
Code:netstat -an
As a follow up. You should use FTP w/ TLS/SSL if you are worried about security. Make sure a SSL certificate is installed under Service Configuration >> Manage Service SSL Certificates in WebHost Manager. Installing this certificate will add the appropriate configuration file changes however, your users will have to choose FTP with SSL/TLS when connecting from their FTP client.
Is it possible to add an additional port for FTP ?
Thanks
With proftpd, you will need to add the following directive to any virtualhost in /etc/protftpd.conf that you wish to listen on the second port (it will always listen on the main port as well):
where <portnumber> is the secondary port number, i.e.Code:Port <portnumber>
Code:Port 478
With pure-ftp, there is a patch that allows you to listen on multiple ports but since it's not part of the pure-ftp distribution, we consider it not supported. You can find more information at:
http://sourceforge.net/tracker/index...17&atid=318317