0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

firewallコマンド

Posted at

インフラエンジニアではないけど、linuxでfirewallコマンドを使う時の備忘録です

設定を変更する
# サービス名で指定する

firewall-cmd --add-service http(サービス名とか)

# ポート番号で指定する

firewall-cmd --add-port 80/tcp(ポート番号/プロトコル)
変更した設定を保存する
firewall-cmd --add-service http(サービス名とか) --permanent
firewall-cmd --add-port 80/tcp(ポート番号/プロトコル) --permanent
設定を削除する
firewall-cmd --remove-service http(サービス名とか)
削除した設定を保存する
firewall-cmd --remove-service http(サービス名とか) --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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?