CentOS
firewall-cmd

CentOS7 firewall設定

More than 1 year has passed since last update.

firewall有効化確認

# systemctl list-unit-files | grep firewall  
> firewalld.service                           enabled

http/httpsのアクセスを許可

# firewall-cmd --permanent --zone=public --add-service=https
# firewall-cmd --permanent --zone=public --add-service=http

設定反映

# firewall-cmd --reload 

設定確認(アクセスが許可されているサービス)

# firewall-cmd --list-service --zone=public 
>dhcpv6-client http https ssh