Last active
November 17, 2015 10:20
-
-
Save khoa-le/6139aa8581c34a789bdf to your computer and use it in GitHub Desktop.
Ufw config linux sercurity
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
//disable all incoming request | |
sudo ufw default deny incoming | |
//allow all outgoing request | |
sudo ufw default allow outgoing | |
//allow ssh | |
sudo ufw allow ssh | |
//or | |
sudo ufw allow 22/tcp | |
//allow http | |
sudo ufw allow www |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment