3
# chkconfig: 2345 11 89
4
# description: init.d script for Arno's iptables firewall
7
# Provides: arno-iptables-firewall
8
# Required-Start: $local_fs $remote_fs $network
9
# Required-Stop: $local_fs $remote_fs $network
12
# Short-Description: Setup iptables firewall configuration
15
############################################################################################
16
# You should put this script in eg. "/etc/init.d/" . #
17
# Furthermore make sure it's executable! -> "chmod 700" or "chmod +x" it #
18
# If you want to run it upon boot, either add an entry in your "/etc/rc.d/rc.local" or #
19
# (for eg. Debian) in "/etc/rcS.d/" create a symlink to the arno-iptables-firewall script #
20
# ("ln -s /etc/init.d/arno-iptables-firewall script S99-arno-iptables-firewall script"). #
21
############################################################################################
23
PATH=/bin:/usr/bin:/sbin:/usr/sbin
24
PROGRAM="/usr/local/sbin/arno-iptables-firewall"
25
NAME="arno-iptables-firewall"
30
test -x $PROGRAM || exit 0
32
. /lib/lsb/init-functions
34
if [ "$VERBOSE" = "0" ]; then
37
log_daemon_msg "Starting Arno's Iptables Firewall..."
41
log_daemon_msg "Stopping Arno's Iptables Firewall..."
45
log_daemon_msg "Restarting Arno's Iptables Firewall..."
49
log_daemon_msg "(Forced) reloading Arno's Iptables Firewall..."
63
# Call firewall script: