Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement