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