> Linux服务器 > iptables >

iptables 怎样才能关闭端口

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)