LoginSignup
0
0

More than 5 years have passed since last update.

CentOS 7 Firewallの設定

Posted at

動作確認環境

  • 仮想環境 VMware Workstation Player 14.1.1
  • OS Windows 10 Pro 64bit

仮想環境

  • OS CentOS 7.4 (1708) minimalインストール
  • メモリ 2GB
  • HDD 250GB

設定

今後、サーバで使用するポートはWebサーバ関連のhttpの80番とhttpsの443番である。
以下のコマンドで2つのポートを開ける。

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

設定を反映させる。

firewall-cmd --reload

目次

0
0
0

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
0
0