1
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.

ufw を使っている時に ping を使えるようにする

Posted at

Arch Linux (5.4.6-arch3-1) と Ubuntu 19.04 で確認しました。

/etc/ufw/before.rules の COMMIT の前に次のように加えます。

/etc/ufw/before.rules
(省略)
# allow outbound icmp
-A ufw-before-output -p icmp -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
-A ufw-before-output -p icmp -m state --state ESTABLISHED,RELATED -j ACCEPT
#
#
# don't delete the 'COMMIT' line or these rules won't be processed
COMMIT

変更後

sudo ufw reload
sudo ufw enable
1
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
1
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?