10 Firewall Settings

Table of Contents

Previous Page

Next Page


UFW is a simple firewall
I use for the servers, but not the main desktop.

UFW FIREWALL

Install ufw & its gui (usually existing, but doesn’t hurt)

sudo apt install ufw gufw 

Allow LAN traffic

sudo ufw allow from 192.168.0.0/16

Setup the global permissions

sudo ufw default deny incoming && sudo ufw default allow outgoing

Finally, AFTER THE ABOVE SO YOU DON’T GET LOCKED OUT enable firewall

sudo ufw enable

Check that it’s working

sudo ufw status verbose

If you need IPv6 - open config and change IPv6 to “yes”

sudo nano /etc/default/ufw

Table of Contents

Previous Page

Next Page