Created
June 12, 2015 07:59
-
-
Save madeye/dc82b97b1ed305a96894 to your computer and use it in GitHub Desktop.
Add a IP to blacklist
This file contains hidden or 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 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