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!

WHM Restrict Access

Discussion in 'General Discussion' started by grayloon, May 30, 2009.

  1. grayloon

    grayloon Well-Known Member

    Joined:
    Oct 31, 2007
    Messages:
    113
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Evansville, IN
    cPanel Access Level:
    Root Administrator
    Twitter:
    I need to access WHM from home, but I don't have my home IP in list of allowed IP's. I can SSH into my server. Is there a way I can update my list of allowed IP's from the command line?
     
  2. chinmay

    chinmay Well-Known Member

    Joined:
    Jul 22, 2008
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    localhost
    Yes, you can add the Ip in the allow list from the command line.

    Open the file

    At the bottom of the file you will have a entry

    Above the quoted entry add the line so that WHM can be accessed from the home IP

    Which will look like

    Hope this helps ;)

    Note :: Replace the IP 10.10.10.1 with your original machine's Ip
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. grayloon

    grayloon Well-Known Member

    Joined:
    Oct 31, 2007
    Messages:
    113
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Evansville, IN
    cPanel Access Level:
    Root Administrator
    Twitter:
    I don't have a 'sshd : ALL : deny' line.
     
  4. chinmay

    chinmay Well-Known Member

    Joined:
    Jul 22, 2008
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    localhost
    Can you let me know the entry at the bottom in the /etc/hosts.allow file on the server ? Or do you want to add the Ip in the csf firewall's allow list ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,585
    Likes Received:
    439
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I'm curious. You can SSH to the server but not get into WHM, why? Your IP shouldn't be blocked. If it was SSH wouldn't be reachable either.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. grayloon

    grayloon Well-Known Member

    Joined:
    Oct 31, 2007
    Messages:
    113
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Evansville, IN
    cPanel Access Level:
    Root Administrator
    Twitter:
    My firewall was allowing my IP for SSH but blocking for WHM ports. Doh!
     
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