git://git.jankratochvil.net
/
nethome.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Subst $Id:...$ -> $Id$ (as in cvs ... -kk) in all the subdirectories.
[nethome.git]
/
bin
/
iptables-isp-list
1
#! /bin/sh
2
if [ $# = 0 ];then
3
echo "Available chains:"
4
/sbin/iptables -L -n|sed -n 's/^Chain isp_\([^ ]*\)_output .*$/ \1/p'
5
exit 0
6
fi
7
while [ $# -gt 0 ];do
8
for suffix in `/sbin/iptables -L -n|sed -n 's/^Chain isp_week_\([^ ]*\) .*$/\1/p'`;do
9
/sbin/iptables -v -n -L isp_$1_$suffix
10
echo
11
done
12
shift
13
done