linux開放端口--防火牆iptables

一、關閉全部的 INPUT FORWARD OUTPUT 只對某些端口開放。 下面是命令實現:linux iptables -P INPUT DROP iptables -P FORWARD DROP iptables -P OUTPUT DROPweb 再用命令 iptables -L -n 查看 是否設置好, 好看到所有 DROP 了 這樣的設置好了,咱們只是臨時的, 重啓服務器仍是會恢復原來
相關文章
相關標籤/搜索