How to drop ICMP packets with firewalld
1 min read
- Drop all ICMP
firewall-cmd --set-target=DROP --zone=public --permanentfirewall-cmd --zone=public --remove-icmp-block={echo-request,echo-reply,timestamp-request,timestamp-reply} --permanent
- Reload the firewall
firewall-cmd --reload
References: