From 44739ce82a82bcbe7663716c4bb15da74050d04e Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Fri, 25 Mar 2011 19:08:45 +0100 Subject: [PATCH] Added an example of cron script to daily reload iptables Signed-off-by: Gregory Colpart --- cron_minifirewall | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 cron_minifirewall diff --git a/cron_minifirewall b/cron_minifirewall new file mode 100755 index 0000000..88e3d9d --- /dev/null +++ b/cron_minifirewall @@ -0,0 +1,14 @@ +#!/bin/sh + +# Put this file in /etc/cron.daily/ to reload the firewall +# to refresh ips resolutions +# Make sure this file is executable ! + +FIREWALL=/etc/init.d/minifirewall + +if [ -x "$FIREWALL" ] ; then + $FIREWALL restart >/dev/null +fi + +exit 0 +