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.
First, check the firewall status by using the below command in the command terminal of Linux.
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.
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:
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.
To disable the firewall in Ubuntu, use the below command in the Linux terminal:
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.
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.
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.
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.
+++
One of the most critical gaps in traditional Large Language Models (LLMs) is that they…
Canonical is continuously hiring new talent. Being a remote- first company, Canonical’s new joiners receive…
What is patching automation? With increasing numbers of vulnerabilities, there is a growing risk of…
Wouldn’t it be wonderful to wake up one day with a desire to explore AI…
Ubuntu and Ubuntu Pro supports Microsoft’s Azure Cobalt 100 Virtual Machines (VMs), powered by their…
Welcome to the Ubuntu Weekly Newsletter, Issue 870 for the week of December 8 –…