Linux 端口打開 關閉

一、查看哪些端口被打開 netstat -anp 二、關閉端口號:iptables -A INPUT -p tcp --drop 端口號-j DROP   iptables -A OUTPUT -p tcp --dport 端口號-j DROP 三、打開端口號:iptables -A INPUT -ptcp --dport 端口號-j ACCEPT 四、以下是linux打開端口命令的使用方法。
相關文章
相關標籤/搜索