{"id":1536,"date":"2021-12-16T12:21:44","date_gmt":"2021-12-16T09:21:44","guid":{"rendered":"https:\/\/files2.tojikon.net\/files-cloud\/2021\/05\/20\/how-to-disable-the-ufw-firewall-in-linux\/https:\/\/files2.tojikon.net\/files-cloud\/2021\/05\/20\/how-to-disable-the-ufw-firewall-in-linux\/"},"modified":"2021-12-16T12:21:44","modified_gmt":"2021-12-16T09:21:44","slug":"how-to-disable-the-ufw-firewall-in-linux","status":"publish","type":"post","link":"https:\/\/tojikon.net\/en\/1536-how-to-disable-the-ufw-firewall-in-linux\/","title":{"rendered":"How to disable the UFW firewall in Linux"},"content":{"rendered":"<section id=\"related_posts\">\n<div class=\"block-head\">\n<h3>Related Articles<\/h3>\n<\/div>\n<\/section>\n<p>If you\u2019re not happy with the UFW firewall on your Linux PC and want to uninstall it but don\u2019t know where to start, it\u2019s understandable. For as good as this firewall is, no mainstream Linux OS goes over how to use it.\u00a0<\/p>\n<p>In this guide, we\u2019ll go over how you can shut off and even uninstall the UFW firewall. To start, ensure you have system-level access to your Linux PC, as turning off the firewall requires root access. Then, follow along below!<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-402315 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-disable-the-ufw-firewall-in-linux.png\" alt=\"disable the UFW firewall in Linux\" width=\"1200\" height=\"1285\"\/><\/p>\n<h2>Turn off UFW \u2013 terminal<\/h2>\n<p>If you need to shut off the UFW firewall on your Linux PC, the best way to do it is with the command line. The reason? UFW is a command-line app, and while many Linux OSes use GUFW, a GUI for the command line app, it is far more efficient via terminal.<\/p>\n<p>To get started, open up a terminal window on the Linux desktop. To do that, press\u00a0<strong>Ctrl + Alt + T\u00a0<\/strong>on the keyboard or search for \u201cTerminal\u201d in the app menu and launch it that way.<\/p>\n<p>Once the terminal window is open and ready to use, execute the\u00a0<strong>ufw \u2013help\u00a0<\/strong>command. This command will show you all command arguments available for the UFW firewall and aid you in turning it on and off at will.<\/p>\n<pre>\nufw --help\n<\/pre>\n<p>Look through the help page for the \u201cdisable\u201d section, and read what it does. Be sure also to read the \u201cenable\u201d section and anything else that you might find helpful. When done reading, execute the command below to shut off the firewall.<\/p>\n<pre>\nsudo ufw disable\n<\/pre>\n<p>After entering the command above, the system will ask for a password. Using the keyboard, type in your user account password and press the <strong>Enter\u00a0<\/strong>key. The UFW firewall should instantly be shut off.\u00a0<\/p>\n<p>You can check the status of the UFW firewall to see if it is indeed shut off using the\u00a0<strong>ufw status\u00a0<\/strong>command. If UFW says \u201cinactive,\u201d the command worked. Otherwise, re-run the command.<\/p>\n<pre>\nsudo ufw status\n<\/pre>\n<p>Want to turn on the UFW firewall again? Run the\u00a0<strong>ufw enable\u00a0<\/strong>command below to turn on the Firewall instantly.\u00a0<\/p>\n<pre>\nsudo ufw enable\n<\/pre>\n<h2>Turn off UFW \u2013 GUI<\/h2>\n<p>If you manage your UFW firewall with the UFW UI app (GUFW) and need to turn it off, do the following. First, launch GUFW by doing the following. First, search for \u201cFirewall configuration\u201d or \u201cGUFW\u201d in the app menu and launch it.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-402314 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-disable-the-ufw-firewall-in-linux-1.png\" alt=\"\" width=\"1200\" height=\"1247\"\/><\/p>\n<p>Once the app is open and ready to use, locate the \u201cStatus\u201d slider in the UI. If the UFW firewall is active, this \u201cStatus\u201d slider will be switched on. To shut it off, click on the slider.\u00a0<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-402315 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-disable-the-ufw-firewall-in-linux.png\" alt=\"\" width=\"1200\" height=\"1285\"\/><\/p>\n<p>If you want to turn on the firewall again, click on the slider.<\/p>\n<h2>Uninstall UFW\/GUFW\u00a0<\/h2>\n<p>If you\u2019re done with the UFW firewall or want to replace it with a different firewall and shutting it off temporarily isn\u2019t enough, you may need to uninstall it. To uninstall it, start by launching a terminal window.<\/p>\n<p>To open up a terminal window on the Linux desktop, press\u00a0<strong>Ctrl + Alt + T\u00a0<\/strong>on the keyboard. Or, search for \u201cTerminal\u201d in the app menu. Once the terminal window is open and ready to use, follow along with the uninstallation commands that correspond with the Linux OS, you use.<\/p>\n<h4>Ubuntu<\/h4>\n<p>To remove the UFW firewall from Ubuntu altogether, execute the <strong>apt remove\u00a0<\/strong>command alongside the\u00a0<strong>\u2013purge\u00a0<\/strong>command line switch. The\u00a0<strong>\u2013purge\u00a0<\/strong>switch will delete all configuration files and everything from the system.<\/p>\n<pre>\nsudo apt remove ufw --purge\n<\/pre>\n<p>To uninstall the GUI Firewall, run the command above but on the\u00a0\u201cgufw\u201d package.<\/p>\n<pre>\nsudo apt remove gufw --purge\n<\/pre>\n<h4>Debian<\/h4>\n<p>If you need to uninstall the UFW firewall from Debian, use the <strong>apt-get remove\u00a0<\/strong>command along with the <strong>\u2013purge\u00a0<\/strong>command-line switch. Like on Ubuntu, this switch will delete all configuration files and everything from the system.<\/p>\n<pre>\nsudo apt-get remove ufw --purge\n<\/pre>\n<p>To get rid of the GUI firewall app, execute the command above but with the \u201cgufw\u201d package.\u00a0<\/p>\n<h4>Arch Linux<\/h4>\n<p>If you\u2019d like to uninstall UFW from Arch Linux, you\u2019ll need to use\u00a0<strong>Pacman\u00a0<\/strong>with the <strong>-Rsc\u00a0<\/strong>command switch. This command switch will not only uninstall UFW but will also remove all dependencies installed alongside it. To remove UFW from your Arch Linux system, enter the command below in a terminal window.<\/p>\n<pre>\nsudo pacman -Rsc ufw\n<\/pre>\n<p>If you would like to remove the GUI firewall app from Arch Linux, execute the command above but with the \u201cgufw\u201d package.<\/p>\n<pre>\nsudo pacman -Rsc gufw\n<\/pre>\n<h4>Fedora<\/h4>\n<p>If you\u2019re using Fedora Linux, you can get rid of the UFW firewall from your system by using the <strong>dnf remove\u00a0<\/strong>command. This command will uninstall the program and get rid of it so that you no longer have it set up on your Fedora PC.<\/p>\n<pre>\nsudo dnf remove ufw\n<\/pre>\n<p>To remove the GUI firewall, execute the command above but with the \u201cgufw\u201d package.\u00a0<\/p>\n<pre>\nsudo dnf remove gufw\n<\/pre>\n<h4>OpenSUSE<\/h4>\n<p>If you need to get rid of UFW from your OpenSUSE system, you can use the <strong>zypper remove\u00a0<\/strong>command. This command will delete the package from the OpenSUSE system so that you can no longer use it.<\/p>\n<pre>\nsudo zypper remove ufw\n<\/pre>\n<p>To get rid of the GUI firewall from OpenSUSE, execute the same command but with the \u201cgufw\u201d package.<\/p>\n<pre>\nsudo zypper remove gufw\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Related Articles If you\u2019re not happy with the UFW firewall on your Linux PC and want to uninstall it but don\u2019t know where to start, it\u2019s understandable. For as good as this firewall is, no mainstream Linux OS goes over how to use it.\u00a0 In this guide, we\u2019ll go over how you can shut off &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1537,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[33],"_links":{"self":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1536"}],"collection":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/comments?post=1536"}],"version-history":[{"count":0,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1536\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media\/1537"}],"wp:attachment":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media?parent=1536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/categories?post=1536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/tags?post=1536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}