]> git.pld-linux.org Git - packages/iptables.git/commitdiff
- (somewhat) unified order
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 27 Jan 2011 22:26:20 +0000 (22:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ip6tables.init -> 1.16
    iptables.init -> 1.13

ip6tables.init
iptables.init

index cf0193fd0518505685910900c45569478be593d5..aac850f05749bab75638cc3d17b2691b3a7d7e5a 100644 (file)
@@ -111,7 +111,7 @@ case "$1" in
        start
        ;;
 
-  stop)
+  stop|clear)
        stop
        ;;
 
@@ -122,14 +122,6 @@ case "$1" in
        start
        ;;
 
-  status)
-       tables=`cat /proc/net/ip6_tables_names 2>/dev/null`
-       for table in $tables; do
-               echo "Table: $table"
-               ip6tables -t $table -n --list
-       done
-       ;;
-
   panic)
        show "Changing target policies to DROP"
        iftable filter -P INPUT DROP && \
@@ -168,8 +160,16 @@ case "$1" in
        /usr/sbin/ip6tables-save -c > $IPTABLES_CONFIG  2>/dev/null && ok || fail
        ;;
 
+  status)
+       tables=`cat /proc/net/ip6_tables_names 2>/dev/null`
+       for table in $tables; do
+               echo "Table: $table"
+               ip6tables -t $table -n --list
+       done
+       ;;
+
   *)
-       msg_usage "$0 {start|stop|restart|force-reload|panic|load|save|status}"
+       msg_usage "$0 {start|stop|restart|force-reload|panic|load|save|clear|status}"
        exit 3
 esac
 
index 62f3b48a81ecac6be137324f0ec1f2395e54b6d2..304a3b7d81d5e55cd9fd2edae4d63a5150de6c27 100644 (file)
@@ -122,14 +122,6 @@ case "$1" in
        start
        ;;
 
-  status)
-       tables=`cat /proc/net/ip_tables_names 2>/dev/null`
-       for table in $tables; do
-               echo "Table: $table"
-               iptables -t $table -n --list
-       done
-       ;;
-
   panic)
        show "Changing target policies to DROP"
        iftable filter -P INPUT DROP && \
@@ -168,6 +160,14 @@ case "$1" in
        /usr/sbin/iptables-save -c > $IPTABLES_CONFIG  2>/dev/null && ok || fail
        ;;
 
+  status)
+       tables=`cat /proc/net/ip_tables_names 2>/dev/null`
+       for table in $tables; do
+               echo "Table: $table"
+               iptables -t $table -n --list
+       done
+       ;;
+
   *)
        msg_usage "$0 {start|stop|restart|force-reload|panic|load|save|clear|status}"
        exit 3
This page took 0.093923 seconds and 4 git commands to generate.