How to open a range of ports on Ubuntu using UFW

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

Leave a Reply