minifirewall/cron_minifirewall
Colin Darie 44739ce82a Added an example of cron script to daily reload iptables
Signed-off-by: Gregory Colpart <reg@evolix.fr>
2011-04-02 12:01:58 +02:00

15 lignes
244 B
Bash
Fichiers exécutables

#!/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