linux关闭指定端口 linux系统中怎么禁用端口?

linux系统中怎么禁用端口?关闭端口号:iptables-ainput-PTCP-drop port number-jdrop,iptables-aooutput-PTCP-dport port n

linux系统中怎么禁用端口?

关闭端口号:iptables-ainput-PTCP-drop port number-jdrop,iptables-aooutput-PTCP-dport port number-jdrop。

linux系统中怎么禁用端口?

查看哪些端口已打开,netstat ANP。关闭端口号:iptables ainput PTCP—丢弃端口号—jdrop,iptables aooutput PTCP—dport端口号—jdrop。开放端口号:iptables-ainput-PTCP--dport端口号-J accept。下面是如何使用Linux open port命令。Nc-lp23和netstat an | grep23。Linux open port命令每个打开的端口。