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!

[Case 59895] Host Access Control for FTP

Discussion in 'Security' started by planetcaravan, Feb 6, 2014.

  1. planetcaravan

    planetcaravan Member

    Joined:
    Feb 6, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I'm using: CentOS release 6.5 (Final) (64bit) with WHM 11.40.1 (build 11)
    I've set a rule on » Security Center » Host Access Control for an IP. There is an image in the attachment.

    After I put in the rule, I'm getting again this event on /var/log/messages.

    Feb 6 22:40:19 myhost pure-ftpd: (?@xx.37.xxx.163) [INFO] New connection from xx.37.xxx.163
    Feb 6 22:40:25 myhost pure-ftpd: (?@xx.37.xxx.163) [WARNING] Authentication failed for user [user@user.tld]

    What's my fault?
     

    Attached Files:

    • zxc.png
      zxc.png
      File size:
      4.3 KB
      Views:
      6
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    829
    Likes Received:
    26
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    If I understand correctly, your intention is to block this IP from accessing FTP. If so, you may wish to know that the feature you used is for cPanel services only (Ie cPanel, WHM) and does not apply to FTP, mail, or web services:

    Host Access Control

    If you don't have a firewall like CSF or APF installed (which will block these easily), just dump it directly to iptables:

    Code:
    iptables -I INPUT -s $ip -j DROP
    service iptables save
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,617
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    The ability to block IP addresses for ProFTPd and Pure-Ftpd is not currently supported in the Host Access Control option of WHM. There is an internal case (59895) open to address this issue. I suggest blocking the IP address with a firewall management tool such as CSF as a workaround.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. planetcaravan

    planetcaravan Member

    Joined:
    Feb 6, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks! I will try as soon as possibile CSF.
     
Loading...

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