2 # Firewall Script by Bernhard Tittelbach
6 # Required-Start: $syslog $local_fs $network
7 # Required-Stop: $syslog $local_fs $network
10 # Default-Start: 2 3 4 5
12 # Short-Description: Firewall
13 # Description: see above
16 PATH=/bin:/sbin:/bin:/usr/sbin:/usr/bin
18 . /lib/lsb/init-functions
25 FIREWALL_CONFIG=/flash/etc/firewall.conf
31 if [ $(($2)) -eq 6 ]; then
39 if [ $rc -ne 0 ] ; then
41 logger -s -i -p daemon.err "Error running ipv${ipv} rule: $rule, error was $(cat $OUTPUT)"
64 start) log_daemon_msg "Starting " "firewall"
69 stop) log_daemon_msg "Stopping " "firewall"
74 restart) log_daemon_msg "Restarting " "firewall"
80 *) log_action_msg "Usage: /etc/init.d/cron {start|stop|restart}"