我试了一下,应该没有问题
login as: root
Sent username "root"
root@10.18.146.245's password:
Last login: Mon Feb 2 13:34:52 2004 from 10.18.146.102
[root@www ~]# iptables -L -v -n
Chain INPUT (policy ACCEPT 9 packets, 1178 bytes)
pkts bytes target prot opt in out source destination
168 9748 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
16 2145 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 136 packets, 10978 bytes)
pkts bytes target prot opt in out source destination