[root@media bin]# /etc/init.d/iptables stop
Flushing firewall rules:                                   [  OK  ]
Setting chains to policy ACCEPT: filter                    [  OK  ]
Unloading iptables modules:                                [  OK  ]
[root@media bin]# ./iptables_status.sh    
192.168.5.15 is dangerous!
[root@media bin]# /etc/init.d/iptables start
Flushing firewall rules:                                   [  OK  ]
Setting chains to policy ACCEPT: filter                    [  OK  ]
Unloading iptables modules:                                [  OK  ]
Applying iptables firewall rules:                          [  OK  ]
Loading additional iptables modules: ip_conntrack_netbios_n[  OK  ]_ftp
[root@media bin]# ./iptables_status.sh     
192.168.5.15 is ok!
[root@media bin]# cat iptables_status.sh
#!/bin/bash
#iptables status
#20110318 by gaizaoren
iptables_num=`iptables -L -vnx | wc -l`
HOST=`/sbin/ifconfig eth0|sed -n '2p' |awk -F: '{print $2}'|awk '{print$1}'`
if [ $iptables_num != 8 ];then
    echo "$HOST is ok!"
else
echo "$HOST is dangerous!"
fi
[root@media bin]#