denyhosts keeps adding back my IP

前端 未结 9 1235
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 12:10

    If instructions above didn't help maybe denyhosts added IP to iptables firewall.

    iptables -L -n -v | grep xxx.xxx.xxx.xxx

    If you see something like that:

    0 0 DROP all -- * * xxx.xxx.xxx.xxx 0.0.0.0/0

    Remove required IP from firewall:

    iptables -D INPUT -s xxx.xxx.xxx.xxx -j DROP

    And restart networking to apply changes:

    /etc/init.d/networking restart

提交回复
热议问题