#!/bin/bash

/sbin/iptables -I INPUT -i eth0 -p tcp --dport 3306 -j REJECT
echo "Detected problem with MySQL on `hostname`. Currently blocking traffic" | mail -s "mylbhelper alert" root

