Categories: Ubuntu

What is the Firewall on Ubuntu

Ubuntu firewall doesn’t provide complete power than the standard iptables commands do still, one can control it by the graphical interface because it is less complicated. Ubuntu’s firewall is also known as ufw or uncomplicated firewall because it is easy to use and helpful for performing all of the basic firewall tasks without knowing iptables.

Sponsored

If you are a Linux user, it is good to know about the firewall and the procedure to enable/disable it. This article covers all commands to enable/disable the firewall on Ubuntu without any error.

How to Enable/Disable Firewall on Ubuntu

Check the Status of Firewall on Ubuntu

First, check the firewall status by using the below command in the command terminal of Linux.

$ sudo ufw status

We have used “sudo,” which is a short name of SuperUser DO. This command is used to access all of the system’s restricted files because Linux restricts access to the system’s specific parts to prevent the sensitive files.
After executing the above, the system will show up the status of the firewall like this:

Status: inactive

It means that the firewall is inactive in the system currently.

You can also use this command with “verbose” because it provides additional details about the system’s current status.

$ sudo ufw status verbose

Enable Firewall on Ubuntu

The firewall is currently disabled as the status shows that it is inactive in the system.
Execute the below command in the terminal to enable the firewall on Ubuntu:

$ sudo ufw enable

After executing the command, the system will show up a message like this:

A firewall is active and enabled on system startup.

This message verifies that the firewall is successfully enabled in your Linux system. You can also check the status of the firewall manually by using the status command.

Sponsored

Disable Firewall on Ubuntu

To disable the firewall in Ubuntu, use the below command in the Linux terminal:

$ sudo ufw Disable

The system will show a message after executing the disable command:

firewall is stopped and disabled on system startup

This message verifies that the firewall is disabled successfully.

How to Enable/Disable Firewall on Ubuntu by GUFW

GUFW is a graphical user interface application that allows to enable/disable firewalls on Ubuntu easily.

First, execute the below command in the Linux terminal for installing GUFW packages in the system.

$ sudo apt install gufw

This command will start to install the GUFW packages in your system, then open GUFW by searching it in the start menu.

The firewall requires all of the administrative permission, so enter the open dialog box’s system password.

Now, the firewall interface will show up on the screen by which you can enable and disable it easily.

Conclusion

Ubuntu’s firewall is less complicated, and a user can easily control it by controlling it by a graphical interface. If you are a Linux user, you know that iptables are complex, but they offer complete control. However, when you want to learn the procedure to enable/disable the firewall on Ubuntu. In that case, this article is perfect for you to gain complete information for enabling and disabling a firewall by knowing its status.
+++

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