If you are using UFW on Ubuntu as your firewall manager then this is how to open a range of ports from the command line:
sudo ufw allow proto tcp to any port 6120:6150
If you are using UFW on Ubuntu as your firewall manager then this is how to open a range of ports from the command line:
sudo ufw allow proto tcp to any port 6120:6150