Instale o firewalld ubuntu 20.04
sudo apt update
sudo apt install firewalld
sudo systemctl enable firewalld
sudo systemctl start firewall
sudo firewall-cmd --list-all
Ahmed Ali