Created
September 2, 2019 02:01
-
-
Save reatlat/37b63744becb896a3eed2a794c9ec23f to your computer and use it in GitHub Desktop.
Drop ICMP for ufw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -i '/ufw-before-input.*icmp/s/ACCEPT/DROP/g' /etc/ufw/before.rules | |
sed -i '/ufw6-before-input.*icmp/s/ACCEPT/DROP/g' /etc/ufw/before6.rules |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment