how to allow tcp ports on ubuntu server firewall code example Example: firewall allow port ubuntu sudo ufw allow 2222