Skip to content

Instantly share code, notes, and snippets.

@dogweather
Created March 29, 2012 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dogweather/2234066 to your computer and use it in GitHub Desktop.
Save dogweather/2234066 to your computer and use it in GitHub Desktop.
Deny all traffic from an IP address
To insert the new rule before others (i.e. allow's) in the list:
ufw insert 1 deny from a.b.c.d
To check the placement:
ufw status numbered
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment