ubuntu firewall add a port permanently code example Example: firewall allow port ubuntu sudo ufw allow 2222