From the course: Linux Tips

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Exploring UFW: Uncomplicated firewall

Exploring UFW: Uncomplicated firewall - Linux Tutorial

From the course: Linux Tips

Exploring UFW: Uncomplicated firewall

- [Instructor] Ubuntu comes with a package called UFW, short for uncomplicated firewall. UFW makes it easy to write and manage basic firewall rules without having to deal with writing iptables rules directly. UFW uses iptables in the background. It generates its own set of chains and rules to let the du what it needs to do. To enable and disable UFW, we can use the UFW enable and disable commands. When UFW is off, the system's firewall is still active with whatever rules were defined in standard iptables chains. Out of the box, so to speak, the system's firewall doesn't have any rules so it's effectively fully open. UFW inserts itself in to the rule chain when it's enabled and then pulls all of its rules out of the chains when it's disabled. So while practically speaking, turning UFW off doesn't mean you have no firewall, it just means you won't have whatever rules you set up in UFW when it's disabled. It also means you'll need to look a little bit more carefully to find rules on an…

Contents