Skip to content

Instantly share code, notes, and snippets.

@madeye
Created June 12, 2015 07:59
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 madeye/dc82b97b1ed305a96894 to your computer and use it in GitHub Desktop.
Save madeye/dc82b97b1ed305a96894 to your computer and use it in GitHub Desktop.
Add a IP to blacklist
ipset create blacklist hash:ip hashsize 4096
iptables -I INPUT -m set --match-set blacklist src -p TCP -j REJECT
ipset add blacklist 157.122.147.190
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment