Firewalld 基本コマンド

よく使う Firewalld コマンド

Display firewall setting

firewall-cmd --list-all
sudo firewall-cmd --list-all-zones

Active services

firewall-cmd --list-services
firewall-cmd --list-ports

Add service

firewall-cmd --add-service= service.name

Remove service

firewall-cmd --remove-service=service.name

Reload

firewall-cmd --reload

おっさんWEBエンジニア奮闘記©2007 WEBDIMENSION