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.

Country Blocks

Discussion in 'Security' started by Hines, Aug 9, 2011.

  1. Hines

    Hines Active Member

    Joined:
    Apr 23, 2010
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    I need help with a country block. I have a VPS:

    WHM 11.30.2 (build 1)
    CENTOS 5.5 i686 virtuozzo

    I did search the forums and found great posts here:

    http://forums.cpanel.net/f5/cphulk-...arge-number-failed-login-attempts-102097.html

    http://forums.cpanel.net/f185/china-russian-federation-reports-164994.htmlI

    I found a great piece of advice here:

    "You can block the IP's using country code. The issue is that all the valid and invalid IP's of the countries specified in CSF will be blocked.

    In Firewall configuration (CSF), scroll down to CC_DENY and add the country code which you needs to block.

    Eg : Add CN for China in CC_DENY, that should block all IPs from China."



    I am an amateur and do not use SSH. I handle all server needs from WHM in my web browser. In my "Security Center" I see nothing as regards firewalls or "Firewall configuration (CSF)."

    Can I just add some IP Range in my blacklists in CP Hulk? If so, where can I find all of the ranges to block for China?
     
    #1 Hines, Aug 9, 2011
    Last edited: Aug 9, 2011
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You could install CSF in order to see ConfigServer Security & Firewall in WHM to manage it:

    ConfigServer Security & Firewall

    It's pretty easy to get it to work. You only have to do:

    Code:
    cd /root
    wget http://configserver.com/free/csf.tgz
    tar xzf csf.tgz
    cd csf && ./install.cpanel.sh
    At that point, you can then log into WHM and see under Plugins at the bottom the option for ConfigServer Security & Firewall

    Otherwise, to get the list of IPs by country, a site like Country IP Blocks will work where you'd select the country on the left and the format type, then it will generate a list for you.
     
  3. Hines

    Hines Active Member

    Joined:
    Apr 23, 2010
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    wow! what a cool answer. fast, professional........I really appreciate it my friend!!!!!!!!!!!!!!!!
     
  4. keddie

    keddie Well-Known Member

    Joined:
    Nov 17, 2007
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    +1 for CSF, fantastic piece of software and the geo IP blocking is a real help.
     
Loading...

Share This Page