Skip to content

Instantly share code, notes, and snippets.

@alexkuang0
Created December 11, 2022 16:36
Show Gist options
  • Save alexkuang0/ecb95598205ec4f633a4234def5b9d98 to your computer and use it in GitHub Desktop.
Save alexkuang0/ecb95598205ec4f633a4234def5b9d98 to your computer and use it in GitHub Desktop.
while read -r ip_range do
ufw deny from $ip_range
done < ip_ranges.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment