Fix Inactive UFW Status on Ubuntu 22.04 (Jammy Jellyfish)

Sometimes, when you launch your Ubuntu system, you might find out that your system's Firewall is currently not working. This can prove to be an alarming situation especially if you are dealing with some critical data. This calls for fixing the Firewall status immediately. 

Here at LinuxAPT, we shall look into how you can fix the inactive UFW status on Ubuntu.


Steps to fix the Inactive UFW Status on Ubuntu

1. Check Current UFW Status

To begin, you need to check the current UFW status with the below command:

$ sudo ufw status

If not active then you will see that the current UFW status is "inactive".


2. Activate UFW service

Now, run the below command to activate UFW:

$ sudo ufw enable

Now you will see that the inactive status of UFW has been fixed.


3. Confirm UFW Status

Run the following command again to  confirm if the Firewall is active:

$ sudo ufw status

This will display the current status of UFW.



[Need help in fixing Firewall issues on Ubuntu ? We can help you. ]

This article covers how you can easily activate the Firewall status on Ubuntu system and protect it from almost all the potential threats and attacks. In fact, The Uncomplicated Firewall (ufw) is a frontend for iptables and is particularly well-suited for host-based firewalls. ufw provides a framework for managing netfilter, as well as a command-line interface for manipulating the firewall.


How to enable UFW status on Ubuntu ?

To enable UFW, run the below command: 

$ sudo ufw enable


How to Open SSH TCP port 22 connections ?

1. We can easily open SSH TCP port 22 using UFW as follows:

$ sudo ufw allow ssh

2. If you are running ssh on TCP port 2222 or TCP port 2323, run:

$ sudo ufw allow 2222/tcp
$ sudo ufw allow 2323/tcp

Related Posts