LoginSignup
10

More than 5 years have passed since last update.

CentOS7 firewall設定

Posted at

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

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10