Skip to content

Instantly share code, notes, and snippets.

@ddneat
Last active August 29, 2015 13:59
Show Gist options
  • Save ddneat/10888602 to your computer and use it in GitHub Desktop.
Save ddneat/10888602 to your computer and use it in GitHub Desktop.
ubuntu ufw firewall
# Current ufw status and list of rules
ufw status
# Starts ufw daemon
ufw enable
# Add new rule (allow incoming HTTP connections -> port 80)
ufw allow http
# Remove an existing rule
ufw delete allow http
# Add arbitrary port
ufw allow 443
# Allow all connections from IP
ufw allow from x.x.x.x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment