firewalld のバックアップソース(No.1)

#author("2021-01-24T12:04:46+09:00","default:k1rou","k1rou")
*firewalld [#i49cd01b]

**firewalld とは [#w9914441]
-[[RHEL]]、[[CentOS]] ※CentOS7以降
-[[ファイアウォール]]

**コマンド [#kb7d4a21]
***firewalld [#y6c03850]

***firewall-cmd [#n6bfa108]
-アクティブゾーンの確認
 firewall-cmd --get-active-zones
-デフォルトゾーンの確認
 firewall-cmd --get-default-zone
-FWの設定を確認(デフォルトゾーン)
 firewall-cmd --list-all
 firewall-cmd --list-all --permanent

-上記以外
 firewall-cmd --list-services --permanent
 firewall-cmd --permanent --add-service=http
 firewall-cmd --state
 firewall-cmd --get-services
 firewall-cmd --list-services --permanent
 firewall-cmd --list-ports --permanent
 firewall-cmd --add-service=http --permanent
 firewall-cmd --remove-service=http --permanent
 firewall-cmd --reload


**関連サイト [#acbe94fc]
-CentOS 7 firewalld よく使うコマンド(2019.10.2)~
https://qiita.com/kenjjiijjii/items/1057af2dddc34022b09e