Introduction
How To Whitelist cPanel Support's IP Addresses In "Host Access Control" Setting?
Procedure:
- Visit WHM >> Security Center >> Host Access Control to add a new rule.
- In the Rule section add the following entries:
- Under "Daemon" add:
SSHD - Under "Access List" add:
184.94.197.2,184.94.197.3,184.94.197.4,184.94.197.5,184.94.197.6,208.74.123.98 - Under "Action" add:
ALLOW - Under "Comment" add:
Whatever comment you wish
- After that scroll to the bottom of the page and hit "Save Host Access List"
Alternatively, you can run the following command which should perform the same actions:
sed -i '1s/^/sshd : 184.94.197.2 , 184.94.197.3 , 184.94.197.4 , 184.94.197.5 , 184.94.197.6 , 208.74.123.98 : allow\n#cPanel Support IPs\n/' /etc/hosts.allow && systemctl restart sshd