Firewall is also regarded as the First Line of Defense against all sorts of external threats and attacks on a system. Sometimes, the strictness of your Firewall rules leads to such situations in which you are unable to perform some important tasks because of having your Firewall enabled. In these situations, you might want to disable your Firewall temporarily.
Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to perform related Linux system firewall queries.
In this context, we shall look into ways to disable the Firewall on a Linux Mint 20 system.
Ways of Disabling the Firewall on Linux Mint 20
Here, you will learn two 2 ways of disabling the Firewall on a Linux Mint 20 system.
1. Disabling Firewall via the Built-in "ufw" Utility
You can disable the system's Firewall easily via the built-in "ufw" utility. To do so, follow the below steps:
i. Check the Current Status of your System's Firewall
Before disabling the Firewall on your system, it must be enabled currently. For ensuring that, you need to check its current status with the below command:
$ sudo ufw status
ii. Disable the Firewall on your System
To disable the Firewall using this method, you have to execute the below command:
$ sudo ufw disable
iii. Check the Status of your Firewall again for Confirmation
Also, you can still check the status of your Firewall to confirm if it has been disabled or not.
Whenever you feel like re-enabling your Firewall, all you need to do is to execute the following command:
$ sudo ufw enable
The output of this command will show that the Firewall has been enabled.
2. Disabling Firewall via the "gufw" Utility
To disable your Linux Mint 20 system's Firewall, you need to perform the below steps:
i. Install the "gufw" Utility on your System
To begin, you need to install the "gufw" utility on your system with the following command since unlike "ufw", this utility is not installed on Linux Mint 20 by default:
$ sudo apt-get install gufw
ii. Launch the "gufw" Utility on your System
After installing this utility on your system, you can easily launch it by running the below command:
Once you will attempt to launch the "gufw" utility on your system, you will be asked to authenticate yourself by providing your system's password.
After successful authentication, you will see the interface of the "gufw" utility on your system. Also, you will also be able to check the current status of your Firewall from here.
iii. Disable the Firewall on your System
To disable the Firewall on your system, all you need to do is to turn off the "Status" toggle button.
However, if at any moment, you want to re-enable your Firewall, then you simply need to turn on the very same toggle button.
[Need help in fixing Firewall on your Linux system ? We can help you. ]