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 - Linux Tutorial
From the course: Complete Guide to Linux Security: Protecting Your Linux Server Environment
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…
Download courses and learn on the go
Watch courses on your mobile device without an internet connection. Download courses using your iOS or Android LinkedIn Learning app.
Contents
-
-
(Locked)
Learning objectives1m 34s
-
(Locked)
Introduction to nftables and the nft command2m 34s
-
(Locked)
nftables setup4m 5s
-
(Locked)
Tables > Chains > Rules2m 31s
-
(Locked)
Building the nftables configuration, part 18m 41s
-
(Locked)
Building the nftables configuration, part 28m 39s
-
Saving and restoring the nftables configurations8m 36s
-
(Locked)
Translating iptables to nftables7m 49s
-
(Locked)
-
-
(Locked)
Learning objectives1m 18s
-
(Locked)
Review of SSH1m 47s
-
(Locked)
Using keys to connect via SSH12m 57s
-
(Locked)
The sshd_config file3m 19s
-
(Locked)
Modifying the default SSH port7m 32s
-
(Locked)
Disabling password-based SSH2m 57s
-
(Locked)
Disabling root login via SSH2m 32s
-
(Locked)
Exclusive SSH groups4m 37s
-
(Locked)
Authentication settings10m 6s
-
(Locked)
Terminating SSH connections, part 17m 45s
-
(Locked)
Terminating SSH connections, part 26m 51s
-
(Locked)