Skip to content

Instantly share code, notes, and snippets.

@nl5887
Created November 12, 2018 22:48
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 nl5887/2dc04e80c09286a687a957f61b35e123 to your computer and use it in GitHub Desktop.
Save nl5887/2dc04e80c09286a687a957f61b35e123 to your computer and use it in GitHub Desktop.
ipset blocklist
ipset create blocklist iphash
iptables -A INPUT -m set --match-set blocklist src -j DROP
ipset add blocklist {ip}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment