这里有人在我的服务器上做了几天的暴力攻击,每次都通过一个不同的外部IP地址(到目前为止有几百个),但总是通过相同的方式,我假定本地IP地址为:192.168.2.33
问题是,有没有办法创build一个iptable规则来阻止该特定的内部IP地址,无论其外部IP地址使用? 我试图直接在CSF中阻止该IP,但无济于事。
2014-08-07 11:44:05 dovecot_login authenticator failed for ([192.168.2.33]) [109.233.105.3]:54006: 535 Incorrect authentication data (set_id=david) 2014-08-07 11:44:15 dovecot_login authenticator failed for ([192.168.2.33]) [109.233.105.3]:54006: 535 Incorrect authentication data (set_id=david) 2014-08-07 11:44:32 dovecot_login authenticator failed for ([192.168.2.33]) [109.233.105.3]:54006: 535 Incorrect authentication data (set_id=david) 2014-08-07 15:52:11 dovecot_login authenticator failed for ([192.168.2.33]) [211.147.18.84]:64810: 535 Incorrect authentication data (set_id=josh) 2014-08-07 15:52:17 dovecot_login authenticator failed for ([192.168.2.33]) [211.147.18.84]:64810: 535 Incorrect authentication data (set_id=josh)
我只是有这个相同的问题。 iptables是一个好主意,但是你也可以使用主机。[allow | deny],我发现它更容易一些。
例
特别严格的例子 – 只有白名单。 首先否认一切:
# cat /etc/hosts.deny ALL: ALL
和允许规则:
# cat /etc/hosts.allow sshd: 192.168.0.100
另外,这是一篇很好的文章:
http://www.debian-administration.org/article/87/Keeping_SSH_access_secure