Created
April 7, 2020 16:36
-
-
Save rohitrawat/cbbd880da5e97234bcb0011f993b2fae to your computer and use it in GitHub Desktop.
Reset UFW rules
This file contains hidden or 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
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