Skip to content

Instantly share code, notes, and snippets.

@rohitrawat
Created April 7, 2020 16:36
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 rohitrawat/cbbd880da5e97234bcb0011f993b2fae to your computer and use it in GitHub Desktop.
Save rohitrawat/cbbd880da5e97234bcb0011f993b2fae to your computer and use it in GitHub Desktop.
Reset UFW rules
sudo ufw --force disable
sudo ufw --force reset
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow 22/tcp
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw --force enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment