how to allow a port in ubuntu firewall code example Example: firewall allow port ubuntu sudo ufw allow 2222