Browse Source

Added an example of cron script to daily reload iptables

Signed-off-by: Gregory Colpart <reg@evolix.fr>
systemd
Colin Darie 9 years ago
committed by Gregory Colpart
parent
commit
44739ce82a
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      cron_minifirewall

+ 14
- 0
cron_minifirewall View File

@@ -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


Loading…
Cancel
Save