Last active
August 29, 2015 13:59
-
-
Save ddneat/10888602 to your computer and use it in GitHub Desktop.
ubuntu ufw firewall
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
# 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