Always use full path i.e /sbin/iptables for setting iptables in crontab

0 * * * * /bin/sh /bum/

#Check if firewall is up
ISUP=`/sbin/iptables -L -n | grep DROP`
if [ -z “$ISUP” ]
echo “Firewall is down on `hostname`” | mail -s “Firewall Status” [email protected]

chmod 700

Leave a Reply

Your email address will not be published. Required fields are marked *

To Resolve this issue at just 5$ from ServerExpert

For Hosting please visit

You have Successfully Subscribed!

Open chat