Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member grayloon's Avatar
    Join Date
    Oct 2007
    Posts
    54

    Exclamation WHM Restrict Access

    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. #2
    Member
    Join Date
    Jul 2008
    Location
    localhost
    Posts
    101

    Default

    Yes, you can add the Ip in the allow list from the command line.

    Open the file

    root@server [~]# vi /etc/hosts.allow
    At the bottom of the file you will have a entry

    sshd : ALL : deny
    Above the quoted entry add the line so that WHM can be accessed from the home IP

    whostmgrd : 10.10.10.1 : allow
    Which will look like

    whostmgrd : 10.10.10.1 : allow
    sshd : ALL : deny
    Hope this helps

    Note :: Replace the IP 10.10.10.1 with your original machine's Ip

  3. #3
    Member grayloon's Avatar
    Join Date
    Oct 2007
    Posts
    54

    Default

    I don't have a 'sshd : ALL : deny' line.

  4. #4
    Member
    Join Date
    Jul 2008
    Location
    localhost
    Posts
    101

    Default

    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. #5
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Question

    Quote Originally Posted by grayloon View Post
    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?
    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. #6
    Member grayloon's Avatar
    Join Date
    Oct 2007
    Posts
    54

    Cool

    My firewall was allowing my IP for SSH but blocking for WHM ports. Doh!

Similar Threads & Tags
Similar threads

  1. Restrict WHM Access by IP
    By LGRCompEnt in forum cPanel and WHM Discussions
    Replies: 18
    Last Post: 03-01-2012, 06:15 AM
  2. .htaccess to restrict Cpanel/WHM access
    By bwwt in forum Security
    Replies: 2
    Last Post: 12-30-2010, 07:58 AM
  3. Restrict WHM access
    By vajjra in forum Security
    Replies: 0
    Last Post: 01-26-2010, 01:32 PM
  4. Restrict access to WHM
    By kardukov in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-03-2003, 12:56 PM
  5. restrict WHM access by IP
    By jamesbond in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-13-2003, 11:38 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube