CentOSでは標準でfirewalldが動いているので、 開発環境を作るときなどは止める人もいるようです。 今回は、CentOS8でfirewallに対しポート開放の設定を施し、 外部からもアクセスできるようにします。 ポート開放手順(services) 現状確認 まずは、どんな設定が入っているか確認します。
|
# firewall-cmd --list-all ←現在の設定を確認 public (active) target: default icmp-block-inversion: no interfaces: ens33 sources: services: cockpit dhcpv6-client http ssh ports: protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: |
今回は、httpsを登録してみたいと思います。 現時点ではhttpやsshが登録されていますね。 ポート開放の設定実施 [cray ...