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.

WHM -- Host Access Control

Discussion in 'General Discussion' started by starscapes, Dec 19, 2009.

  1. starscapes

    starscapes Registered

    Joined:
    Jul 8, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I have the script service that sends me a security text to my phone
    .
    Just got one that said:
    Large Number of Failed Login Attempts from IP xx.xxxx.xx.xx .

    I want to block it.
    I already know about the CPanel Security IP blocking for domains, however....

    Should I be using the Host Access Control to block the particular IP?

    I couldn't find any FAQs on Host Access Control, and don't quite understand it.

    Is HAC used to block server logins? If so...

    Should I deny everyone, except my IP?
    (I need to let the world access my commerce websites, but don't want people hacking into my server.)

    Joe
     
  2. derfuhrer2007

    derfuhrer2007 Member

    Joined:
    Dec 15, 2009
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    You should block it in iptables and on your apf/csf/hardware firewall (if any)
     
  3. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    starscapes, you can install CSF firewall which will do these task for you and will send you regular emails. You can seek help from anyone to configure the firewall as per your needs.

    OR

    you can manually block such IPs using the following two methods:

    iptables -A INPUT -s IPADDRESS -j DROP

    or

    route add IPADDRESS reject

    where, IPADDRESS is the one you wish to block.

    Both of these commands has to be executed from the command prompt of your server.
     
Loading...

Share This Page