Firewall - ufw status inactive on Ubuntu
- Last updated: Nov 3, 2023
- Views: 1082
- Author: Admin

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
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
We confirm the inclusion of ufw and press Enter.
Now we re-check the status of ufw.
$. sudo ufw status
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.