问题原文
原帖链接 · Stephen Cioffi · CC BY-SA 3.0
I am getting bombarded with attempted hacks from China all with similar IPs.
How would I block the IP range with something like 116.10.191.* etc.
I am running Ubuntu Server 13.10.
The current line I am using is:
sudo /sbin/iptables -A INPUT -s 116.10.191.207 -j DROP
This only lets me block each one at a time but the hackers are changing the IPs at every attempt.
社区高分解答
原帖链接 · temet · CC BY-SA 3.0
As an alternative approach you could use something as simple as fail2ban. It institutes a timeout for successive failed login attempts and makes bruteforcing infeasible since they only get a few chances per timeout. I set my time out length to 30 minutes. By the time they're an hour or two in, they realize they won't be able to make any headway and give up.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
