Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Oct 2006
    Posts
    168

    Default Setting FTP port to something else

    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?

  2. #2
    Member
    Join Date
    Dec 2001
    Posts
    746

    Default

    If you are using pure-ftpd, you need to edit /etc/pure-ftpd.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
    If you are using protftpd, you need to edit/etc/proftpd.conf and change the port below to something other than 21:

    Code:
    Port                            21
    After making the change, you need to restart the FTP server to make the change live:

    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

  3. #3
    Member
    Join Date
    Dec 2001
    Posts
    746

    Default

    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.

  4. #4
    Member
    Join Date
    May 2003
    Posts
    208

    Default

    Is it possible to add an additional port for FTP ?

    Thanks

  5. #5
    Member
    Join Date
    Dec 2001
    Posts
    746

    Default

    Quote Originally Posted by djblamire View Post
    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):

    Code:
    Port <portnumber>
    where <portnumber> is the secondary port number, i.e.

    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

Similar Threads & Tags
Similar threads

  1. Setting up PHP for FTP
    By cybercrypt13 in forum New User Questions
    Replies: 3
    Last Post: 04-23-2009, 10:42 PM
  2. FTP Port
    By Kaveyhosting in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-28-2005, 04:20 PM
  3. Setting up FTP connectin
    By Beverly in forum New User Questions
    Replies: 0
    Last Post: 02-14-2005, 12:08 PM
  4. setting up a Cpanel Ftp un and pw
    By MsKaren in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-23-2004, 04:01 AM
  5. Setting up Server Trust using Port 8888
    By Lamar in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-06-2003, 09:18 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube