Firewall - ufw status inactive on Ubuntu

  • Last update: Apr 3, 2024
  • Views: 71
  • Author: Admin
Firewall - ufw status inactive on Ubuntu

Hello colleagues.

After you've installed Ubuntu and then started it, you may find that the ufw firewall  is currently down and inactive . An inactive ufw can be a worrying situation, especially if you are dealing with sensitive data and it needs to be fixed immediately. In today's article, we will show you how to fix UFW inactive status.

 

First you need to check the current status of the UFW firewall by running the following command:

$. sudo ufw status

ubuntu ufw status inactive

As you can see in the screenshot, the current status of UFW is inactive, which means that ufw is off.


 

Now we need to enable ufw, for this we need to use the command:

$. sudo ufw enable

ubuntu ufw status inactive

We confirm the inclusion of ufw and press Enter.


 

Now we re-check the status of ufw.

$. sudo ufw status

ubuntu ufw status inactive

Now we can see in the screenshot that the ufw firewall has moved from inactive to active status, which means that the firewall is now enabled and you are now protected from almost all potential threats and attacks.


 

Thank you all, I hope my article was of some help to you.

SIMILAR ARTICLES

How to disable Firewall in Linux
Firewall - How to open a port in Linux
Firewall - How to see open ports in Linux