Created
October 25, 2015 00:38
-
-
Save bcomnes/e9a50301d7666031ea92 to your computer and use it in GitHub Desktop.
Shell script to block IPs thanks donpdonp
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
| echo dropping $1 | |
| sudo iptables -I INPUT -s $1 -j DROP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment