Skip to content

Instantly share code, notes, and snippets.

@gustavi
Created March 24, 2017 16:44
Show Gist options
  • Save gustavi/1c21533f70f0f225c904bab7331ad136 to your computer and use it in GitHub Desktop.
Save gustavi/1c21533f70f0f225c904bab7331ad136 to your computer and use it in GitHub Desktop.
ufw rules
# SSH
sudo ufw allow out 22/tcp
sudo ufw allow in 22/tcp
# HTTP/HTTPS
sudo ufw allow out 80/tcp
sudo ufw allow in 80/tcp
sudo ufw allow out 443/tcp
sudo ufw allow in 443/tcp
# DNS
sudo ufw allow out 53/udp
sudo ufw allow out 53/tcp
# NTP
sudo ufw allow out 123/udp
# TeamSpeak3
sudo ufw allow in 9987/udp # voice
sudo ufw allow in 30033/tcp # file transfert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment