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)?
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.