hosts.allow and hosts.deny WHM Host Access Control - what if my IP changes?

Posted by beingalex on Server Fault See other posts from Server Fault or by beingalex
Published on 2012-07-06T10:54:40Z Indexed on 2012/07/06 15:17 UTC
Read the original article Hit count: 290

Filed under:
|
|

I want to use WHM/Cpanel's Host Access Control interface to change some settings in hosts.allow and hosts.deny. I want to block all access to our SSH exept from the IP we have from our office.

Daemon  Access List             Action      Comment
sshd      ALL EXCEPT x.x.x.x        deny          Deny access from all other IPs apart from ours

But I am worried about what happens if our IP changes, which it does about twice a week. How would I get back in to edit the hosts.allow / hosts.deny files?

© Server Fault or respective owner

Related posts about security

Related posts about whm