How to deny ICMP ping requests on Ubuntu 18.04 Bionic Beaver Linux - LinuxConfig.org

The objective is to configure the default UFW firewall on Ubuntu 18.04 to deny any incoming ICMP ping requests. In order to deny any incoming ICMP ping requests we need to modify /etc/ufw/before.rules UFW's configuration file.


This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-deny-icmp-ping-requests-on-ubuntu-18-04-bionic-beaver-linux