Created
May 15, 2019 01:50
-
-
Save le0park/c20eb8bb82950c2592fb478ebf5a7787 to your computer and use it in GitHub Desktop.
Revisions
-
le0park created this gist
May 15, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ while IFS='' read -r line || [[ -n "$line" ]]; do echo "Blocking IP: $line..." iptables -A INPUT -s $line -j DROP || { echo 'Blocking failed.' ; exit 1; } done < "$1"