Ubuntu – Firewall Setup

sudo ufw status

sudo ufw app list

sudo ufw allow "OpenSSH"
sudo ufw allow 53
sudo ufw allow 53/tcp
sudo ufw allow 53/udp
sudo ufw deny "OpenSSH"
sudo ufw deny 53
sudo ufw deny 80/tcp
sudo ufw delete deny 80/tcp

# others ...

sudo ufw enable
# enable

sudo ufw disable
# disable

Leave a Reply

Your email address will not be published. Required fields are marked *