Last active
March 13, 2018 18:27
-
-
Save carlosm3011/c6fa2f8fbe64d20c6ffe1e1e4c17d4a9 to your computer and use it in GitHub Desktop.
Super Simple local firewall using UFW
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
# Source: https://wiki.ubuntu.com/UncomplicatedFirewall | |
# Allowing known services by name | |
ufw allow ssh/tcp | |
ufw allow http | |
ufw allow https | |
# Allowing services by port number | |
ufw allow 8080/tcp | |
# Allowing services by port range | |
ufw allow 1000:2000/udp | |
# Enable logging | |
ufw logging on | |
# Enable firewall | |
ufw enable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment