1
0
Fork 0
espelhamento de http://git.busybox.net/busybox/ sincronizado 2025-01-18 15:44:40 +00:00
busybox/examples/var_service/fw/stat
Denys Vlasenko 6cf7f01256 adding example runit-style service directory
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-11-06 04:04:19 +01:00

12 linhas
235 B
Bash
Arquivo executável

#!/bin/sh
echo; echo "* Firewall:"
{
echo '---FILTER--';
iptables -v -L -x -n;
echo '---NAT-----';
iptables -t nat -v -L -x -n;
echo '---MANGLE--';
iptables -t mangle -v -L -x -n;
} \
| grep -v '^$' | grep -Fv 'bytes target' | $PAGER