Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Sep 2004
    Posts
    523

    Default Run pure-ftpd on other port?

    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.

    Bind 111.111.111.111,21

    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???

    Thanks!
    Last edited by bsasninja; 10-15-2009 at 07:10 PM.

  2. #2
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by bsasninja View Post
    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.

    Bind 111.111.111.111,21

    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???

    Thanks!
    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.
    Kenneth
    Product Manager
    cPanel, Inc.

  3. #3
    Member
    Join Date
    Nov 2001
    Location
    New Jersey
    Posts
    80
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default 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.

    ~Drake
    www.DuraServer.net
    Web Hosting ~ Networtking
    Shared & Dedicated Servers
    Connectivity, On-Site-Service

Similar Threads & Tags
Similar threads

  1. Pure-Ftpd
    By mickalo in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-10-2006, 05:46 AM
  2. Changing pure-ftpd port
    By sh4ka in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-08-2006, 02:47 PM
  3. pure-ftpd
    By WilliamE in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-21-2005, 02:36 PM
  4. Site to Site Transfer Failed! Pure-ftpd/Pro-ftpd
    By yeahbaby in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-08-2005, 12:31 PM
  5. Pure FTPD
    By Seal in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-17-2004, 10:25 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube