UFW is a popular and convenient firewall configuration tool originating from Ubuntu distributions. It’s a more accessible way of using the
iptables program. Which with some of its complexities can be more cumbersome or confusing for newcomers to learn. In reality UFW works as a wrapper for iptables, so is not a firewall in its own right but the iptables firewall in a simpler form. It serves both IPv4 and IPv6 host-based traffic.
In this post are commands containing options/arguments that contain two words and look like this:
comment ssh. These extra parts add a comment to the firewall rules generated. If you are using a version of UFW priot to
0.35 you may have to remove these two extra pieces to avoid errors. Please bear this in mind when you come to using these types of commands later on should you receive errors.