linux

UFW(ファイアーウォール)使い方

UFWの有効化、ポート開放の使い方まとめ

 

目次

1.UFWを有効化・無効化したい

2.UFWの設定をリセット

3.UFWをリロード

4.UFWのステータスを確認したい

5.特定のポートを開放したい

6.特定のポートを閉じたい

7.UFWを再起動

まとめ

 

1.UFWを有効化・無効化したい

 

ufw enable

ufw disable

2.UFWの設定をリセット

ufw reset

3.UFWをリロード

ufw reload

 

4.UFWのステータスを確認したい

 

ufw status verbose

 

5.特定のポートを開放したい

ufw allow 80/tcp

 

6.特定のポートを閉じたい

 

ufw deny 22/tcp

 

7.UFWを再起動

 

systemctl restart ufw.service

まとめ

 

sudoで使います。

初心者向きのファイアウォールです。デスクトップで利用するにはとてもわかり易いです

Last Updated on 2025年11月29日8:53 am by cgishop

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny