Denys Vlasenko | 6cf7f01 | 2009-11-06 04:04:19 +0100 | [diff] [blame^] | 1 | #!/bin/sh |
2 | |||||
3 | echo; echo "* Firewall:" | ||||
4 | { | ||||
5 | echo '---FILTER--'; | ||||
6 | iptables -v -L -x -n; | ||||
7 | echo '---NAT-----'; | ||||
8 | iptables -t nat -v -L -x -n; | ||||
9 | echo '---MANGLE--'; | ||||
10 | iptables -t mangle -v -L -x -n; | ||||
11 | } \ | ||||
12 | | grep -v '^$' | grep -Fv 'bytes target' | $PAGER |