IT运维工程师、律师 IT相关技术支持、法律咨询
分类: LINUX
2009-02-05 16:28:26
#!/bin/bash ##It's can diaplsy current IPTABLES status ## write by victor chang 2009-2-15 comm1=`/bin/netstat -nl` comm2=`/sbin/iptables -vnL` select var in "iptable" "netstat" "quit";do if [ "$var" = "iptable" ];then echo "$comm2" elif [ "$var" = "netstat" ];then echo "$comm1" elif [ "$var" = "quit" ];then echo done exit else echo "bad operation" fi done ~ |