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!

cPhulk Countries / Regions management

Discussion in 'Security' started by krembo99, Jun 14, 2019 at 2:45 AM.

Tags:
  1. krembo99

    krembo99 Active Member

    Joined:
    May 30, 2013
    Messages:
    33
    Likes Received:
    2
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    I have 2 Questions regarding CpHullk :

    1 - How does the Regions VS. Countries priority work ?

    I have AP (AP) Listed as a Country in the CpHulk countries list. I assume this is AP = ASIA PACIFIC as a region. The second region would be EU.

    So my question is : If I blacklist ( or Whitelist ) China / Korea / Taiwan / Japan for example, and AP is unspecified / The opposite - what would the priority be then ?

    CN, KR, TW, JP - Blacklist
    AP - white list / Unspecified

    What would be the outcome / How should I treat the regions VS Countries in Combination ?

    2- During some tests - I Had GB ( United Kingdom ) Specifically blacklisted ( AND EU ) , however, when testing I can login through a VPN with a server IP in London. Is there some Bug in CpHulk or am I configuring something wrong ?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,272
    Likes Received:
    2,154
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @krembo99,

    Information about the GeoIP database utilized with cPHulk is found at the top the following file:

    /usr/local/cpanel/3rdparty/share/geoipfree/IpToCountry.dat

    Here's the particular section that pertains to the AP country code:

    AP in the context of country codes used with cPHulk is for non-specific Asia-Pacific locations.

    Here are the links to the GeoIP FAQ and IP address database that cPHulk utilizes if you want to check which country cPHulk will detect for an IP address:

    GEO IP Database FAQ
    IP to Country Database (IPV4 and IPV6)

    Let me know if this helps.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. krembo99

    krembo99 Active Member

    Joined:
    May 30, 2013
    Messages:
    33
    Likes Received:
    2
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Thank you for your reply .
    I will do some test myself regarding said region VS Countries, but think that I get the priorities regarding non-specific locations.

    But point 2 in my question still remains.
    Shouldn't CpHulk prevent such logins ?
    Since I have wrote this questions I have confirmed this behavior with 3 other servers in 3 different countries ( Usiing OpenVpn, StrongSwan/WireGuard, Custom IpSec )
    All 3 ( actually 4 with London ) were specifically blacklisted - and yet - I was able to login to WHM through the web interface.
     
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