You can use the following command for disabling the UFW firewall in our Ubuntu system: $ sudo UFW disable
To disable the firewall on Ubuntu, you can use the ufw
(Uncomplicated Firewall) command-line tool. Here's how you can disable the firewall:
-
Check Firewall Status (Optional):
You can check the current status of the firewall to confirm whether it's enabled or disabled. Use the following command:
sudo ufw status
If the firewall is enabled, you'll see a message indicating that it's active.
-
Disable Firewall:
To disable the firewall, you can use the following command:
sudo ufw disable
You'll see a message confirming that the firewall has been disabled.
-
Verify Firewall Status (Optional):
After disabling the firewall, you can verify the status again using the
sudo ufw status
command to ensure that it's now inactive.