Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment