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