linux防火墻簡單設置
查看防火墻狀態(tài)
systemctl status firewalld
打開防火墻
systemctl start firewalld
關閉防火墻
systemctl stop firewalld
開機開啟防火墻
systemctl enable firewalld
開機禁用防火墻
systemctl disable firewalld
安裝防火墻
sudo apt-get install firewalld
開放端口tcp500
firewall-cmd --add-port=500/tcp --permanent
firewall-cmd --reload
關閉端口
firewall-cmd --remove-port=500/tcp?--permanent
firewall-cmd --reload
查看開放的端口
firewall -cmd --list-all
————————————————
原文鏈接:https://blog.csdn.net/sinat_38259539/article/details/122054481
https://blog.csdn.net/qq_33764934/article/details/110133011
標簽: