Various Linux Scripts in Ruby, Bash and Perl
Ruby Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
munin
README.textile
check_syn_flood.rb
etc_excludes.txt
etc_lzma_backup.sh
etc_rsync_backup.sh
firewall.sh
iptables_rsyslog.conf
linode-excludes.txt
linux-excludes.txt
login_alert.sh
mobile.txt
motd.sh
mysql_backup.sh
mysql_backup_S3.rb
mysql_hotcopy_backup.sh
reboot_alert.sh
recover_ram.sh
recover_space.sh
recover_space_extreme.sh
rsync-excludes.txt
rsync-includes.txt

README.textile

Collection of Linux Scripts for firewall, security, alerts, monitoring, etc…

1. check_syn_flood.rb

Will check if there are more than 40 SYN_REC TCP streams from the same IP.

Then it will block with iptables, inserting at top of chain the offending IP. such as:

/sbin/iptables -I INPUT -s 123.1.1.1 -j DROP

Works on Linux and OSX