Created
June 22, 2019 15:35
-
-
Save agyemanjp/8bb7376014f376d4295fd3af821260f5 to your computer and use it in GitHub Desktop.
Install and configure UFW (Uncomplicated Firewall) on Ubuntu 18.04
This file contains 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 apt install ufw -y | |
sudo ufw enable | |
# sudo ufw default deny | |
sudo ufw default deny incoming | |
sudo ufw default allow outgoing | |
# Allow common apps | |
sudo ufw allow ssh | |
sudo ufw allow Samba | |
sudo ufw allow http | |
sudo ufw allow https | |
# Deny specific IP | |
# sudo ufw deny from 0.0.0.0 | |
# Check status | |
sudo ufw status verbose | |
# Start & Stop | |
# service ufw start | |
# service ufw stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment