Forum Moderators: phranque
Am paying my sysad to block ranges at the moment after each wave of attack, so I'm desperate to find a script that auto-blocks IP's that either:
1. We don't recognise, or
2. IP after a failed set of successive attacks.
Does anyone know of such a application or script?
[edited by: StupidScript at 10:00 pm (utc) on Sep. 12, 2006]
You can define the number of attempts and its worked very well for my company. We've gone from hundreds, sometimes thousands, of attempts per day to 2-3 tops.
Each firewall rule is commented with the date/time so you can periodically clean out old rules. You can even define allowed IPs so you won't accidentially blacklist yourself!
An intruder is defined by anyone who enters more than X wrong passwords within a specified amount of time. The script has decreased brute force SSH and FTP attacks to my servers to almost zero.
Best to use a script to shut down ftp service for an hour when more than X login attempts hit.
If you can just set ftp / ssh to only allow
a) authorised IP address
b) authorised accounts only
And never allow root access.
Best to use a script to shut down ftp service for an hour
Then the hackers get what they want, a server initiated denial of service. :) I am sure hackers would love to know the IP address of your FTP server. Just 24 small attacks per day keeps that server totally unreachable.
Also, blocking FTP access is not possible in all situations. For many companies FTP access is just as vital as HTTP access (hosting facilities, large file downloads, etc)