denyhosts keeps adding back my IP

前端 未结 9 1294
Happy的楠姐
Happy的楠姐 2021-01-30 11:39

I am trying to unblock an IP from which I was doing some tests. I have followed the tutorials on the net:

$ sudo /etc/init.d/denyhosts stop
$ sudo vim /etc/deny.         


        
9条回答
  •  情话喂你
    2021-01-30 11:55

    Just add the IP that should always have access to the file:

    /etc/hosts.allow
    

    That entry could look like:

    ALL: 30.20.10.0/24
    

    That way, even if it ends up in /etc/hosts.deny as well, the IP will still have access.

    Mind the ALL before the IP, I see you forgot that with your echo statement.

    References:

    • http://its.virginia.edu/unixsys/sec/hosts.html
    • http://linux.die.net/man/5/hosts.allow

提交回复
热议问题