| Bounce-O-Matic |
| Index : |
|
About Requirements Install Download Problems |
| about : |
|
Bounce-O-Matic reads through the system log files at a specified time interval (via cron) and finds unwanted attempted logons, it writes these attempts out to an iptables drop file and emits a drop command to iptables. Bounce-O-Matic is one solution to a common problem, namely, those hammering attacks that occur, at least occasionally, everywhere. The script tries to be as simple and as easy to use as possible while being versatile and extensible.The script was developed with the idea in mind of getting some immediate results from a basic setup of iptables, ssh, and Snort. This way attackus-interruptus can be achieved as soon as possible and the fancy rule development and firewall tweaking can be done at your leisure, or not at all if this script suits the bill.
At the moment the script only checks two log files, but it could do more, and it handles
the following cases, but it could do more :
Once installed, the script needs very little attention, allowing you to go about your business and stop worrying about attackers. The script aims to be a fire-and-forget type of solution as well as a good solid first line of defense. |
| requirements : |
|
Bounce-O-Matic uses commonly available
awk, grep, sort, uniq, date, cat
and makes use of the following otherutilities :
iptables :
sshd :
Snort :
output alert_syslog: LOG_AUTH LOG_ALERT
where the above line turns on the output directive in the snort config file.
|
| install : |
|
Bounce-O-Matic needs to be run as root. This is because it needs to access the /var/log/syslog and /var/log/messages files to begin with, and it needs to access iptables at the end. Install script? Not yet. Install is a three step process :
cron set-up :
* * * * * /usr/bin/run-parts /etc/cron.constant 1> /dev/null
where the line above is for Dillon's Cron. Note that the directory /etc/cron.constant is myname, change it to suit your system or else create that directory and place the Bounce-O-Matic program in there. A more generic crontab line might look like this :
* * * * * root /var/log/bounce-o-matic/Bounce-O-Matic.sh 1> /dev/null
I am not 100% sure of this line, so double check it please.
|
| download : |
|
The archieve of Bounce-O-Matic is here. The changelog of Bounce-O-Matic is here. The latest version of Bounce-O-Matic is bounce_o_matic-0.9a.tar.bz2 |
| problems : |
|
What could possibly go wrong? ;-)
A note about remote root login : |
|
|
|
| Bounce-O-Matic ©2005,2006 Kevin Clarke |