How to Open a Port in UFW

Rate this post

Learn how to open a port in the Uncomplicated FireWall (UFW). We will be using Ubuntu (version 18.04.5) to show how this can be done. We will walk you through the commands to open a single port or range of ports. We will also show how you can view your added firewall policies, enable/disable the firewall, check the firewall status, and delete rules that you have added.

00:00 Introduction animation
00:09 Introduction on how to open a port in UFW
00:59 Login to Linux (Ubuntu) as root, UFW status
01:35 How to enable/allow a port
02:15 Enable a range of ports
02:32 Review UFW rules and enable firewall
03:08 How to delete a rule
03:40 Conclusion

► For more details on opening a port in UFW, please see our article:

► For a complete reference to UFW (Uncomplicated FireWall), please see:

► You can also find out much more by going to our InMotion Hosting Support Center Website:

#openaportinUFW #setfirewallrulesinUFW #UFW #UFWinUbuntu

About Us:

InMotion Hosting was founded in 2001 and provides personal and business web hosting for everyone! For more information about our WordPress optimized hosting plans, visit us at



Mazi has nine years of web development experience with the past five years spent honing his skills with WordPress plugins and themes. He's an expert in WooCommerce and is the author of the Simple Sales Tax plugin, a popular sales tax compliance solution for WooCommerce. Brett understands the importance of excellent communication, prides himself on producing high-quality code, and is comfortable working solo or as part of a team.

Leave a Reply

Your email address will not be published.

Back to top button