open ubuntu port code example Example 1: ubuntu open port sudo ufw allow 1191/tcp Example 2: ubuntu open all port sudo ufw allow 1:9999/tcp