Ufw basics

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the unix category.

Last Updated: 2022-05-26

UFW Stands for Uncomplicated FireWall. It was developed to ease iptables

I had to use it to enable some opaque IPsec security protocol to communicate with a medical lab.

See what ports are blocked

sudo ufw status

Open port with TCP or UDP

sudo ufw allow 50/tcp
sudo ufw allow 500/udp

Deny a port

sudo ufw deny 53/tcp


sudo ufw disable


sudo ufw enable