start
;;
- stop)
+ stop|clear)
stop
;;
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 && \
/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
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 && \
/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