#啟動:
systemctl start firewalld
#檢視狀態:
systemctl status firewalld
#停止:
systemctl disable firewalld
#禁用:
systemctl stop firewalld
#啟動乙個服務:
systemctl start firewalld.service
#關閉乙個服務:
systemctl stop firewalld.service
#重啟乙個服務:
systemctl restart firewalld.service
#顯示乙個服務的狀態:
systemctl status firewalld.service
#在開機時啟用乙個服務:
systemctl enable firewalld.service
#在開機時禁用乙個服務:
systemctl disable firewalld.service
#檢視服務是否開機啟動:
systemctl is-enabled firewalld.service
#檢視已啟動的服務列表:
systemctl list-unit-files|
grep enabled
#檢視啟動失敗的服務列表:
systemctl --failed
#檢視版本:
firewall-cmd --version
#檢視幫助:
firewall-cmd --help
#顯示狀態:
firewall-cmd --state
#檢視所有開啟的埠:
firewall-cmd --zone=public --list-ports
#更新防火牆規則:
firewall-cmd --reload
#檢視區域資訊:
firewall-cmd --get-active-zones
#檢視指定介面所屬區域:
firewall-cmd --get-zone-of-inte***ce=eth0
#拒絕所有包:
firewall-cmd --panic-on
#取消拒絕狀態:
firewall-cmd --panic-off
#檢視是否拒絕:
firewall-cmd --query-panic
#新增
firewall-cmd --add-port=80/tcp --permanent (--permanent永久生效,沒有此引數重啟後失效)
#重新載入
firewall-cmd --reload
#檢視firewall-cmd --query-port=80/tcp
#刪除firewall-cmd --remove-port=80/tcp --permanent
centOS 7 4 關閉防火牆
systemctl stop firewalld.service 停止firewall systemctl startfirewalld.service 啟動firewall systemctl disable firewalld.service 禁止firewall開機啟動 systemctl e...
centos7 4 防火牆的配置
systemctl status firewalld.service firewalld.service firewalld dynamic firewall daemon loaded loaded usr lib systemd system firewalld.service disabled...
新裝的centos7 4網絡卡防火牆時區設定
備註 本文件是基於centos7.4作業系統而寫 root localhost cat etc redhat release centos linux release 7.4.1708 core root localhost asia uname a linux localhost.localdom...