diff syslog2iptables.rc @ 27:28fec0c67646

make add/remove commands configureable
author carl
date Sun, 12 Feb 2006 10:54:03 -0800
parents 0d65c3de34fd
children
line wrap: on
line diff
--- a/syslog2iptables.rc	Wed Feb 01 10:58:23 2006 -0800
+++ b/syslog2iptables.rc	Sun Feb 12 10:54:03 2006 -0800
@@ -51,15 +51,19 @@
         ;;
     restart|reload)
         $0 stop
+        $0 flush
         $0 start
         RETVAL=$?
         ;;
+    flush)
+        /sbin/iptables -F INPUT
+        ;;
     status)
         status syslog2iptables
         RETVAL=$?
         ;;
     *)
-        echo "Usage: syslog2iptables {start|stop|restart|status}"
+        echo "Usage: syslog2iptables {start|stop|restart|status|flush}"
         exit 1
 esac
 exit $RETVAL