Configuration of the UFW firewall on Ubuntu 20.04

The following guide describes how to install UFW Firewall on Ubuntu 20.04. Everything is done with a few clicks in the console.

At the beginning we update the packages

We install UFW

The service status can be checked by issuing a command:

Score:

We will launch the UFW with the help of a command:

To unblock a given port or service we issue a command:

Here are some examples:

SSH:

Http

You can also allow access for a given port along with the protocol. An example below:

How useful this post was?

Click on the star, to evaluate it!

Average grade / 5. number of votes:

So far, no votes! Be the first to rate this post.