From the course: Complete Guide to Linux Security: Protecting Your Linux Server Environment

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

UFW introduction

UFW introduction

- The uncomplicated firewall, or UFW, which, by the way, is designed and developed by Canonical, works very well on Ubuntu, and it works well on Debian as well. It's not designed for (indistinct) or its derivatives but it works very well on Ubuntu and Debian. It's a front end firewall utility that interfaces with IP tables and/or NF tables. So if you look here, you'll see some of the basic commands. We have UFW status, which shows whether UFW is active or inactive; UFW enable, which starts and enables the firewall; UFW show added, which will list the UFW rules; and UFW reset, which disables UFW and deletes all rules. So be very careful using that. So, as you can see, the commands are very simple. By default, we have some global rules in UFW. And what UFW does is it, by default, denies all incoming connections. And that's an example of that implicit deny that we talked about. So it denies all incoming connections, but it allows all outgoing connections. That may or may not be secure…

Contents