Luser friendly script to list chains from /usr/local/sbin/iptables-init
authorshort <>
Sun, 27 Jan 2002 16:54:24 +0000 (16:54 +0000)
committershort <>
Sun, 27 Jan 2002 16:54:24 +0000 (16:54 +0000)
[cs_CZ] Uzivatelsky privetivy skript pro listing dat od /usr/local/sbin/iptables-init

bin/iptables-isp-list [new file with mode: 0755]

diff --git a/bin/iptables-isp-list b/bin/iptables-isp-list
new file mode 100755 (executable)
index 0000000..de52bc7
--- /dev/null
@@ -0,0 +1,13 @@
+#! /bin/sh
+if [ $# = 0 ];then
+       echo "Available chains:"
+       iptables  -L -n|sed -n 's/^Chain isp_\([^ ]*\)_output .*$/      \1/p'
+       exit 0
+       fi
+while [ $# -gt 0 ];do
+       for suffix in `iptables  -L -n|sed -n 's/^Chain isp_week_\([^ ]*\) .*$/\1/p'`;do
+               iptables -v -n -L isp_$1_$suffix
+               echo
+               done
+       shift
+       done