How To Whitelist cPanel Support's IP Addresses In "Host Access Control" Setting?
- Visit WHM >> Security Center >> Host Access Control to add a new rule.
- In the Rule section add the following entries:
- Under "Daemon" add:
- Under "Access List" add:
- Under "Action" add:
- 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 : 220.127.116.11 , 18.104.22.168 , 22.214.171.124 , 126.96.36.199 , 188.8.131.52 , 184.108.40.206 : allow\n#cPanel Support IPs\n/' /etc/hosts.allow && systemctl restart sshd