Skip to content

Instantly share code, notes, and snippets.

@alihalabyah
Created May 9, 2018 13:32
Show Gist options
  • Save alihalabyah/1393f9525ff9f277cdda691ae05da532 to your computer and use it in GitHub Desktop.
Save alihalabyah/1393f9525ff9f277cdda691ae05da532 to your computer and use it in GitHub Desktop.
sudo ufw status
sudo ufw disable
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow ssh
sudo ufw allow 22/tcp
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment