Skip to content

Instantly share code, notes, and snippets.

@carlosm3011
Last active March 13, 2018 18:27
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 carlosm3011/c6fa2f8fbe64d20c6ffe1e1e4c17d4a9 to your computer and use it in GitHub Desktop.
Save carlosm3011/c6fa2f8fbe64d20c6ffe1e1e4c17d4a9 to your computer and use it in GitHub Desktop.
Super Simple local firewall using UFW
# 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