Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Run pure-ftpd on other port?

Discussion in 'General Discussion' started by bsasninja, Oct 15, 2009.

  1. bsasninja

    bsasninja Well-Known Member

    Sep 2, 2004
    Likes Received:
    Trophy Points:
    Is there a way to run pure-ftpd in other port than 21?? For example port 2283?

    I saw that the is an option in pure-ftpd config to bind an ipaddress and a port, cause by default is listening to all interfaces.


    I tried the main ip of the server and worked and the other interfaces no longer listen to the 21 port. That´s fine.
    But later I have a server alerts that ftpd failed: Could not connect to port 21

    But I was able to connect to the port, why the whm status page is showing failed when it´s working???

    #1 bsasninja, Oct 15, 2009
    Last edited: Oct 15, 2009
  2. cPanelKenneth

    cPanelKenneth cPanel Development Staff Member

    Apr 7, 2006
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    While it is possible to run system services on other ports, usually by manual modification, the service monitor system is not aware of these changes. The service monitor in cPanel is chkservd. It will need modified to be aware of the port change. Configuration files are in /etc/chkserv.d Please note that modifying these files may not cause chkservd to check the service on the custom port.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Drake

    Drake Well-Known Member

    Nov 9, 2001
    Likes Received:
    Trophy Points:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Ftp On Another PORT : Band-Aid Fix

    To: bsasninja

    Think about adding your additional port for the outside world to access it. (now FTP is listening on standard port and your non-standard port)

    Then set up a rule in iptables INPUT chain to block the standard FTP port from the outside world and only allow connection from localhost, local IP's and any trusted IP's you may desire.

    This way you won't need to alter Chkservd configs.

    I hope this suggestion is helpful.

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice