LoginSignup
3
4

More than 5 years have passed since last update.

ufwの設定 - Ubuntu Server 18.04 LTS

Last updated at Posted at 2018-09-07

はじめに

ufwでファイアウォールを設定する。

手順

1: 現在の状況確認

$ systemctl status ufw

3: defaultのポリシー

$ sudo ufw default deny incoming
$ sudo ufw default allow outgoing

3: sshの許可ポリシー

(/etc/services参照)
$ sudo ufw allow ssh

4: NNNNNポートの許可ポリシー

$ sudo ufw allow NNNNN

4: sshの許可ポリシーの削除

$ sudo ufw delete allow ssh

6: ステイタスを確認

$ sudo ufw status verbose

7: ufwを有効にする

$ sudo ufw enable

リファレンス

3
4
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
3
4