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.

WHM Restrict Access

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

  1. grayloon

    grayloon Well-Known Member

    Joined:
    Oct 31, 2007
    Messages:
    98
    Likes Received:
    2
    Trophy Points:
    8
    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:
    16
    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
     
  3. grayloon

    grayloon Well-Known Member

    Joined:
    Oct 31, 2007
    Messages:
    98
    Likes Received:
    2
    Trophy Points:
    8
    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:
    16
    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 ?
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,481
    Likes Received:
    203
    Trophy Points:
    63
    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.
     
  6. grayloon

    grayloon Well-Known Member

    Joined:
    Oct 31, 2007
    Messages:
    98
    Likes Received:
    2
    Trophy Points:
    8
    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