Skip to content

Instantly share code, notes, and snippets.

@noodny
Last active August 29, 2015 14:22
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 noodny/ae1f40075be909a40e59 to your computer and use it in GitHub Desktop.
Save noodny/ae1f40075be909a40e59 to your computer and use it in GitHub Desktop.
DigitalOcean firewall configuration
# block all connections from the outside (incomming)
# and inside (outgoing)
ufw default deny incoming
ufw default allow outgoing
# open ssh and web related ports
ufw allow ssh
ufw allow www
# list ports status
ufw status numbered
# enable firewall
ufw enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment