Last active
August 29, 2015 14:22
-
-
Save noodny/ae1f40075be909a40e59 to your computer and use it in GitHub Desktop.
DigitalOcean firewall configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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