SysSachin

Well-Known Member
Aug 23, 2015
604
48
28
India
cPanel Access Level
Root Administrator
Twitter
Hello,

You have to set allow/deny WHM access through Host Access Control area

Login to WHM >> Host Access Control area

whostmgrd YourIP allow
whostmgrd all deny


The allow line(s) must be above the deny ones or else you will block yourself out of WHM on the machine and need to edit /etc/hosts.allow in root SSH to unlock WHM

Please refer documents for more information.
Host Access Control - Documentation - cPanel Documentation
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello,

If you prefer to use the Host Access Control option in Web Host Manager, then you could add a netmask to allow from specific IP ranges. For example, 192.168.0.0/255.255.255.0, where 255.255.255.0 is the desired network mask you want to use. This is documented at:

Host Access Control - Documentation - cPanel Documentation

Thank you.
 

Harlequin

Well-Known Member
Sep 4, 2011
47
1
58
Santa Cruz de Tenerife, Spain
cPanel Access Level
Root Administrator
Twitter
I've added 2 step authentication and it's working perfectly fine. However, I still get the LFD failures. For example:

Time: Tue Apr 11 18:46:34 2017 +0100
IP: 81.199.16.113 (UG/Uganda/81.199.16.113.satcom-systems.net)
Failures: 5 (sshd)
Interval: 3600 seconds
Blocked: Permanent Block

Log entries:

Apr 11 18:46:23 serv sshd[23741]: Invalid user admin from 81.199.16.113
Apr 11 18:46:23 serv sshd[23741]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=81.199.16.113
Apr 11 18:46:25 serv sshd[23741]: Failed password for invalid user admin from 81.199.16.113 port 3561 ssh2
Apr 11 18:46:28 serv sshd[23741]: Failed password for invalid user admin from 81.199.16.113 port 3561 ssh2
Apr 11 18:46:30 serv sshd[23741]: Failed password for invalid user admin from 81.199.16.113 port 3561 ssh2
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463