Run the folowing command to Install UFW in an Arch based distro.

sudo pacman -Syu && sudo pacman -S ufw

GUFW is a graphical version of UFW. Run the following command to install GUFW in an Arch based distro.

sudo pacman -Syu && sudo pacman -S gufw

Once installed, run this.

sudo systemctl enable ufw.service
sudo systemctl start ufw.service
sudo ufw enable

Open GUFW and select from profiles: Home, Office, Public. Deny the incoming and allow the outgoing requests.

Screenshot of GUFW

No further action required. UFW will load automatically on boot. To make sure that it activates on boot. Restart your system and run the following command.

sudo ufw status

If it’s activated you’ll see this as output.

Status: active