Created
November 12, 2018 22:48
-
-
Save nl5887/2dc04e80c09286a687a957f61b35e123 to your computer and use it in GitHub Desktop.
ipset blocklist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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