赞
踩
[root@host ~]# /sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
[root@host ~]# /etc/init.d/iptables save
[root@host ~]# service iptables restart
[root@host ~]# /sbin/iptables -I INPUT -p tcp --dport 8080 -j DROP
[root@host ~]# /etc/init.d/iptables save
[root@host ~]# service iptables restart
[root@host ~]# service iptables status
Table: filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8080
Chain FORWARD (policy ACCEPT)
num target prot opt source destination
Chain OUTPUT (policy ACCEPT)
num target prot opt source destinationn
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。