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.

Firewall Country Code Lists and Settings

Discussion in 'Security' started by hookie, Jan 19, 2015.

  1. hookie

    hookie Member

    Joined:
    May 12, 2014
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi all,
    There are too many attempts everyday on server, trying to brake security and use our resources, like:
    "x" failed login attempts to account user@domain.com (smtp) -- Large number of attempts from this IP: 85.152.209.216

    Since most of the severs clients are logging from a specific only country, is it possible to apply restricted use on an account from a specific country?

    e.g website "xyz" owner is declared as a "UK" resident, so pop, smtp, webmail, ftp, ssh, allowed only from a UK IP.

    Is this possible?

    Thank you very much!
     
  2. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    765
    Likes Received:
    20
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    i'm not sure, but i think CSF allows something similar.
     
  3. hookie

    hookie Member

    Joined:
    May 12, 2014
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Yes, it does, but for the whole server.

    I wish restrictions for each one /home/user separately...
    So if I don't travel, why should I be exposed to login attempts from China or Ukraine?
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,470
    Likes Received:
    199
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You can block China if you like, but China will find another IP in another country to use and come poke your server from there, next.

    There is no way to block a country for one account and not the other websites on the server.
     
  5. hookie

    hookie Member

    Joined:
    May 12, 2014
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,
    I didn't mean that..
    I am looking to find a way to this:

    Suppose /home/abc user, is a Peru resident. He never travels and uses every time his website services from Peru.
    Why he should be exposed to the attacks from all other countries of the planet?
    If POP/SMTP/SSH/Webmail etc access is allowed only from Peru (for this Peruvian user), this is security!
    So would be better if a specific country could be defined for access, on a specific /home/user in the server.
    In other words: "If you wish to attack my website's services, you better use an IP of my country"

    Is this possible?
     
    #5 hookie, Jan 21, 2015
    Last edited: Jan 21, 2015
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    There are no native features in cPanel/WHM that will allow you to restrict access to services from specific countries on a per-account basis. You may want to submit this as a feature request to ConfigServer.

    Thank you.
     
Loading...

Share This Page