Skip to content

Setup Firewall on Ubuntu (UFW)

How to setup firewall on Ubuntu#

UFW stands for uncomplicated firewall. It is a friendly interface to iptables.

Some commands:

sudo ufw app list

sudo ufw allow OpenSSH

sudo ufw allow http

sudo ufw allow https

sudo ufw enable

Source#