If firewall status is activated in your Ubuntu 22.04 system, you just type sudo ufw disable command in the terminal and hit enter, and UFW firewall will be disabled in your system.
In this tutorial, we will show you how to disable activate or enable firewall UFW status on ubuntu 22.04 system.
How to Disable ufw Firewall on Ubuntu 22.04
Here are the steps for disabling the UFW firewall on Ubuntu 22.04:
Step 1: Open a Terminal
To check the status of UFW on your Ubuntu system, you’ll need to use the Terminal. You can open the Terminal by pressing Ctrl + Alt + T
or by searching for “Terminal” in the applications menu.
Step 2: Check UFW Status
Next, execute the sudo ufw status
command on terminal to check the status of UFW:
sudo ufw status
Ufw firewall status is active, You should see something like this in a terminal window:
Status: active To Action From -- ------ ---- OpenSSH ALLOW Anywhere
ufw firewall status is inactive, your terminal window will display Inactive instead of Active, something like this:
Status: inactive
If UFW is active, the output will display a list of rules and their corresponding actions (ALLOW or DENY). These rules define how traffic is allowed or denied on different ports.
If UFW is inactive, the output will simply state “Status: inactive,” which means UFW is not currently enforcing any firewall rules.
Step 3: Inactive ufw Firewall on Ubuntu 22.04
If you have ufw firewall activated or enabled in your Ubuntu system, you can disable it by typing the command sudo ufw disable on the terminal.
sudo ufw disable
Once you have disabled or inactivated, you can check its status again using the sudo ufw status
command.
Step 4: Reload UFW
If you modify the rules, you need to reload UFW for the changes to take effect:
sudo ufw reload
Here is the video guide on how to disable ufw firewall on ubuntu 22.04 system:
Conclusion
That’s it; you have successfully learned how to disable ufw firewall in Ubuntu 22.04 Apache 2 system.