Skip to content

Instantly share code, notes, and snippets.

@reatlat
Created September 2, 2019 02:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reatlat/37b63744becb896a3eed2a794c9ec23f to your computer and use it in GitHub Desktop.
Save reatlat/37b63744becb896a3eed2a794c9ec23f to your computer and use it in GitHub Desktop.
Drop ICMP for ufw
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