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:
- Unser "Daemon" add:
- Unser "Access List" add:
- Unser "Action" add:
- Unser "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 : 22.214.171.124 , 126.96.36.199 , 188.8.131.52 , 184.108.40.206 , 220.127.116.11 , 18.104.22.168 : allow\n#cPanel Support IPs\n/' /etc/hosts.allow && systemctl restart sshd