Skip to content

Instantly share code, notes, and snippets.

@deathcult
Created December 13, 2013 18:05
Show Gist options
  • Save deathcult/7948486 to your computer and use it in GitHub Desktop.
Save deathcult/7948486 to your computer and use it in GitHub Desktop.
iptables drop!
netstat -tan| awk '{print $5}' | cut -d: -f4| sort| uniq -c|sort -nr |awk '{if($1>10)print "iptables -I INPUT -s "$2" -j DROP"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment