[Guide] How to set up a firewall

A firewall is a must for as Linux distro.
It will provide some basic protection (Uncomplicated firewall) from the bad guys.
Install Uncomplicated firewall:
sudo apt install ufw
Activate it:
sudo ufw enable
Check the status:
sudo ufw status

you can also install a GUI instead or command line commands:

sudo apt install gufw

*IF YOU ARE GOING TO SSH ADD THIS RULE

sudo ufw allow ssh
And verify the status:
sudo ufw status

I forgot about this and spent over 2 hours trying to figure out why the update broke ssh…when it was my firewall :confused:

1 Like