To accomplish this I believe you need to write iptables rules directly using firewall.local. Maybe this could give you a starting point, but be aware that you could have unexpected consequences if you do not know what you are doing. Just to give you an idea, these are all the ICMP types and 0, 3, 8 and 11 should never be blocked.
2 Likes