Skip to content

Instantly share code, notes, and snippets.

Embed
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 157.122.147.190
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment