UFW (uncomplicated firewall) is a frontend for managing firewall rules in Linux. UFW is available by default in all Ubuntu installations after 8.04 LTS. While setting up firewall or configuring UFW for apache or NGINX etc, you may get the return Status: inactive for the command sudo ufw status. In this tutorial, you will learn how to fix ufw status inactive in Ubuntu.
Fix- sudo ufw status, Status: inactive
Enable ufw in ubuntu
To fix sudo ufw status, Status: inactive, run the below command in command prompt (Terminal)
sudo ufw enable
Then you will get the prompt, press “y” and hit “Enter”.
Now, Check the ufw status using the command sudo ufw status
in the command prompt (Terminal).
sudo ufw status
Disable ufw in ubuntu
You can also disable active ufw using command sudo ufw disable
in command prompt (Terminal)
sudo ufw disable
Here is an image for enable and disable ufw in ubuntu
FAQ
What is the command for enable ufw in ubuntu?
sudo ufw enable
What is command for disable ufw in ubuntu?
sudo ufw disable
Conclusion
In this tutorial you have learned how to fix- sudo ufw status, Status: inactive. Such error you may get while configuring NGINX, Apache or any other webserver. And you have also learned how to enable and disable ufw in ubuntu