The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

changing the default port for PureFTPd

Discussion in 'General Discussion' started by cornishman33, Oct 29, 2015.

  1. cornishman33

    cornishman33 Registered

    Joined:
    Jun 25, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I am having trouble changing the default port for PureFTPd from 21 to **** (another port)
    I went through the procedure I have followed for the past five years, which has always worked perfectly, but for some reason this time it simply refuses to allow connections.

    The procedure I follow is to initially run netstat -an and find an unused port, then change the "bind" in both /var/cpanel/conf/pureftpd/main AND /etc/pure_ftp.conf, then allow the new port in the iptables then reboot the service pureftpd. I am NOT running a firewall.

    But as I say, with the new port nobody can connect using ftp. Revert to default port (21) and everything works fine.
    Anybody have any ideas what I am doing wrong? All suggestions will be greatly appreciated.

     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    Do you notice any specific error messages in /var/log/messages when attempting to access FTP?
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you verify if the FTP process is running? EX:

    Code:
    ps aux|grep ftp
    Have you tried an alternate port other than the one you are using to rule out any issues with that particular port number?

    Thank you.
     
  4. cornishman33

    cornishman33 Registered

    Joined:
    Jun 25, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Yes, been experimenting for the last hour. Same result across the board.


    No, I did a test at precisely 0700 Zulu and the results showed nothing:
    Oct 30 06:59:12 cornish*** nscd: 1344 monitoring file `/etc/passwd` (13)
    Oct 30 06:59:12 cornish*** nscd: 1344 monitoring directory `/etc` (2)
    Oct 30 06:59:13 cornish*** nscd: 1344 monitoring file `/etc/group` (14)
    Oct 30 06:59:13 cornish*** nscd: 1344 monitoring directory `/etc` (2)
    Oct 30 06:59:13 cornish*** nscd: 1344 monitoring file `/etc/passwd` (13)
    Oct 30 06:59:13 cornish*** nscd: 1344 monitoring directory `/etc` (2)
    Oct 30 06:59:19 cornish*** nscd: 1344 monitored file `/etc/group` changed (mtime)
    Oct 30 07:03:03 cornish*** nscd: 1344 monitoring file `/etc/group` (14)
    Oct 30 07:03:03 cornish*** nscd: 1344 monitoring directory `/etc` (2)
    Oct 30 07:03:03 cornish*** nscd: 1344 monitoring file `/etc/passwd` (13)
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
Loading...

Share This Page