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.

The server was configured to not permit you access to the specified resource.

Discussion in 'Security' started by nerod, Feb 4, 2011.

  1. nerod

    nerod Member

    Joined:
    Feb 4, 2011
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Is it possible to change the wordage of this page?

    When I have whostmgrd locked down, any visitor not in the whitelist sees this message:

    This leaves an idea to an intruder that I am running Cpanel & what version. Can I simply block this page to make it a 404 or something?
     
  2. CookieMonster

    CookieMonster Member

    Joined:
    Oct 25, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Re: The server was configured to not permit you access to the specified res

    I searched for a solution for this, but have not found if it's possible to edit this
     
  3. 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
    Re: The server was configured to not permit you access to the specified res

    Why not just block the WHM ports for any IPs that aren't yours? Anyone blocked in iptables or CSF won't even be able to reach a page to see that the port works.
     
  4. CookieMonster

    CookieMonster Member

    Joined:
    Oct 25, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Re: The server was configured to not permit you access to the specified res

    You mean it's possible to allow only my home IP in CSF for my WHM only?
    I have not find that configuration possibility in the CSF settings, please explain where to find.
    For me i need to allow my home IP to WHM, but only my WHM.

    I don't want this to applies to my customers cpanel
    I appreciate some advice
     
  5. 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
    Re: The server was configured to not permit you access to the specified res

    You'd probably have to put the line into iptables directly:

    Code:
    /sbin/iptables -I INPUT \! --src 1.2.3.4 -m tcp -p tcp --dport 2087 -j DROP
    Replace 1.2.3.4 with your actual IP address. This will only allow 1 IP address to WHM port 2087 not multiple IP addresses.

    If you want to save the configuration on reload, then do:

    Code:
    service iptables save
     
  6. CookieMonster

    CookieMonster Member

    Joined:
    Oct 25, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Re: The server was configured to not permit you access to the specified res

    Oh thanks, i will give it a try :)
    I confirm later if it works or not
     
  7. CookieMonster

    CookieMonster Member

    Joined:
    Oct 25, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Re: The server was configured to not permit you access to the specified res

    Hi
    It blocks the IP but redirects me to myhost.example.com
    so it won't really work for me
     
    #7 CookieMonster, Oct 25, 2011
    Last edited: Oct 25, 2011
Loading...

Share This Page