当前位置: > Linux服务器 > iptables >

iptables 怎样才能关闭端口

时间:2016-05-22 15:59来源:linux.it.net.cn 作者:IT
sudo iptables -L



结果:

Chain INPUT (policy ACCEPT)
target prot opt source destination
REJECT tcp -- anywhere anywhere tcp dpt:5900 reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpt:5900 reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpt:5900 reject-with icmp-port-unreachable

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination





(责任编辑:IT)
------分隔线----------------------------