Skip to content

Instantly share code, notes, and snippets.

@aorfanos
Created September 17, 2019 20:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aorfanos/50cab0851c95bc3ec9cf51c4cef13e55 to your computer and use it in GitHub Desktop.
Save aorfanos/50cab0851c95bc3ec9cf51c4cef13e55 to your computer and use it in GitHub Desktop.
#block an IP range
iptables -I INPUT -m iprange --src-range <from>-<to> -j DROP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment