18

I have DENIED both incoming and outgoing connections using ufw on Debian VPS. There is only one rule defined, which is to allow connection to SSH port.

ufw is enabled and working.

Yet I am still able to ping from my laptop to server using its IP. Why is ping still working if both incoming and outgoing connections are blocked (except SSH)?

Frank Martin
  • 721
  • 2
  • 10
  • 23

1 Answers1

39

Ping is ICMP so there's no TCP/UDP connections to block or accept (and that's what you probably denied). ICMP rules are configured in /etc/ufw/before.rules.

See this for more information.

Florin Asăvoaie
  • 6,932
  • 22
  • 35