In this guide, you will learn here how to set up a firewall in Linux and how to easily add rules to allow access for other devices in your local network or specific ports.
Install GUFW on Ubuntu
sudo add-apt-repository universe
sudo apt update
sudo apt install gufw -y
After successful installation of GUFW, you can access it on your system by executing the following command:
sudo gufw