Configuring Fedora 37 to NOT respond to Ping Requests

Does anyone here know how to configure the Fedora 37 firewall to refuse ping requests?

Many thanks in advance…

Assuming the active firewall zone is the default one:

sudo firewall-cmd --permanent --set-target=DROP
sudo firewall-cmd --permanent --add-icmp-block-inversion 
sudo firewall-cmd --reload 
3 Likes

Thanks for the quick reply!