LoginSignup
2
2

More than 5 years have passed since last update.

firewalldの設定(centos7)

Last updated at Posted at 2015-07-13

免責みたいな

完全に自分用のメモです。パス忘れるので。

serviceの作成

/etc/firewalld/servicesにXMLファイルを作成します。
/usr/lib/firewalld/servicesにデフォルトインストールされているサービスがあるので、それを参考に(コピーして)作るといいです。

firewalld へ登録

# firewall-cmd --permanent --add-service={{作ったサービス}}
# firewall-cmd --reload

本当は firewall-cmd --ad-serviceして動作確認した後に
--permanent -> --reloadなんだろうけども回復可能な変更ならはしょってもいいかな。。

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