Categories: Ubuntu

How to Disable Firewall in Ubuntu

Ubuntu is a popular Linux Operating System having its own firewall known as ufw (uncomplicated firewall).  In Ubuntu we can both enable or disable that firewall according to our requirement. It is very advised to keep the firewall turned on, but in some situations like trouble shooting or testing you might need to disable the firewall.

Firewall is an operating system’s network security system that observes and maintains network traffic based on defined rules. Firewall also assists in monitoring the networks whether they are trusted or untrusted. Moreover they defend your computer from hackers by separating out malicious network traffic. Ubuntu’s firewall ufw is a user-friendly front-end for maintaining iptables firewall rules. Its major purpose is to make firewall rule management much easier, or uncomplicated, as the name implies.

Sponsored

This write up is focussing on how to disable/turnoff the Ubuntu firewall. Use any of the approaches mentioned below to disable the ufw firewall from Ubuntu System successfully.

Method 1: Disable Firewall in Ubuntu using Command Line

To disable firewall using terminal, follow the steps below:

Step 1: Checking Status of Firewall
First check that your ufw firewall status whether its enabled or not to disable it as Ubuntu firewall is disabled by default, run the below mentioned command to check its status:

$ sudo ufw status

So status is “active”, this means that ufw is enabled in your Ubuntu system now you have to disable it.

Step 2: Disabling Firewall
Now if you are facing some major issues because of firewall and want to disable it then run the below mentioned command in your Ubuntu system:

$ sudo ufw disable

Now the firewall is disabled as shown above and you can now perform the task which you were not able to do because the firewall was enabled.

Step 3 : Verifying status of Firewall
Now again check the status of ufw firewall to confirm that firewall is disabled by below mentioned command:

$ sudo ufw status

Now the status of the firewall is disabled.

Method 2: Disable Firewall by gufw

The gufw utility is a user-friendly graphical interface to ufw that allows you to manage your firewall without having to type ufw instructions on the command line. So if you want to disable ufw by graphical interface follow the procedure below:

Step 1: Installing gufw
Open terminal and run the below mentioned command to install gufw:

Sponsored
$ sudo apt install ufw

Step 2: Launching gufw app
Open “Activities” and write “gufw” in search bar and click on gufw icon shown below:

An authentication dialogue box will appear enter your passcode and click on “Authenticate:

A “Firewall” window is opened:

Step 3: Disabling Firewall
Check its status:

It is enabled right now, turn it off by moving bar to left and firewall will be disabled:

Conclusion

UFW or Uncomplicated FireWall is Ubuntu’s firewall configuration tool that comes preinstalled. UFW has a user-friendly front-end for maintaining iptables firewall rules. Its major purpose is to make firewall rule management easier, or simplistic, as the name implies. Sometimes you need to disable this firewall because of testing purposes, in this Article we described two methods to disable/turnoff firewall by command line interface and by gufw (graphical interface). You can follow any method you find easy.

Ubuntu Server Admin

Recent Posts

Building RAG with enterprise open source AI infrastructure

One of the most critical gaps in traditional Large Language Models (LLMs) is that they…

10 hours ago

Life at Canonical: Victoria Antipova’s perspective as a new joiner in Product Marketing

Canonical is continuously hiring new talent. Being a remote- first company, Canonical’s new joiners receive…

1 day ago

What is patching automation?

What is patching automation? With increasing numbers of vulnerabilities, there is a growing risk of…

2 days ago

A beginner’s tutorial for your first Machine Learning project using Charmed Kubeflow

Wouldn’t it be wonderful to wake up one day with a desire to explore AI…

3 days ago

Ubuntu brings comprehensive support to Azure Cobalt 100 VMs

Ubuntu and Ubuntu Pro supports Microsoft’s Azure Cobalt 100 Virtual Machines (VMs), powered by their…

3 days ago

Ubuntu Weekly Newsletter Issue 870

Welcome to the Ubuntu Weekly Newsletter, Issue 870 for the week of December 8 –…

4 days ago