{"id":458,"date":"2022-10-17T12:31:48","date_gmt":"2022-10-17T12:31:48","guid":{"rendered":"https:\/\/yohost.org\/library\/?p=458"},"modified":"2022-11-20T20:00:00","modified_gmt":"2022-11-20T20:00:00","slug":"how-to-disable-enable-firewall-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/yohost.org\/library\/how-to-disable-enable-firewall-on-ubuntu-20-04\/","title":{"rendered":"How to disable\/enable firewall on Ubuntu 20.04"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In this article we will learn how to enable\/disable firewall on Ubuntu 20.04 using graphic UI and command line. We will also learn how to flush firewall blocks. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-manage-firewall-ufw-via-gui\">Manage Firewall (ufw) via GUI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">By default my Ubuntu 20.04 installation does not include firewall. So, first we will install firewall. Go to <strong>Ubuntu Software<\/strong>, find &#8220;ufw&#8221; and find &#8220;gufw&#8221; and install.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"909\" height=\"166\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/ufw-45x8.png\" alt class=\"wp-image-459 lazy\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/ufw.png 909w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/ufw-300x55.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/ufw-768x140.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/ufw-45x8.png 45w\" data-sizes=\"auto, (max-width: 909px) 100vw, 909px\" data-width=\"909\" data-height=\"166\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/ufw.png\" style=\"height: 0; width: 909px; padding-bottom: 18.26%;\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" width=\"909\" height=\"166\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/ufw.png\" alt=\"\" class=\"wp-image-459\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/ufw.png 909w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/ufw-300x55.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/ufw-768x140.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/ufw-45x8.png 45w\" sizes=\"auto, (max-width: 909px) 100vw, 909px\" \/><\/noscript><figcaption class=\"wp-element-caption\">Install UFW Firewall<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">GUI<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"934\" height=\"261\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/gufw-45x13.png\" alt class=\"wp-image-460 lazy\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/gufw.png 934w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/gufw-300x84.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/gufw-768x215.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/gufw-45x13.png 45w\" data-sizes=\"auto, (max-width: 934px) 100vw, 934px\" data-width=\"934\" data-height=\"261\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/gufw.png\" style=\"height: 0; width: 934px; padding-bottom: 27.94%;\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" width=\"934\" height=\"261\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/gufw.png\" alt=\"\" class=\"wp-image-460\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/gufw.png 934w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/gufw-300x84.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/gufw-768x215.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/gufw-45x13.png 45w\" sizes=\"auto, (max-width: 934px) 100vw, 934px\" \/><\/noscript><figcaption class=\"wp-element-caption\">Install GUI for UFW<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Next you can go straight to the Firewall Configuration program and <strong>disable\/enable<\/strong> it with a click of a mouse in Ubuntu.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"422\" height=\"571\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/firewall-disable-enable-gui-45x61.png\" alt class=\"wp-image-463 lazy\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/firewall-disable-enable-gui.png 422w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/firewall-disable-enable-gui-222x300.png 222w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/firewall-disable-enable-gui-45x61.png 45w\" data-sizes=\"auto, (max-width: 422px) 100vw, 422px\" data-width=\"422\" data-height=\"571\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/firewall-disable-enable-gui.png\" style=\"height: 0; width: 422px; padding-bottom: 135.31%;\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" width=\"422\" height=\"571\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/firewall-disable-enable-gui.png\" alt=\"\" class=\"wp-image-463\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/firewall-disable-enable-gui.png 422w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/firewall-disable-enable-gui-222x300.png 222w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/firewall-disable-enable-gui-45x61.png 45w\" sizes=\"auto, (max-width: 422px) 100vw, 422px\" \/><\/noscript><figcaption class=\"wp-element-caption\">Enable\/Disable Firewall via GUI<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You can also create <em>Rules<\/em> in the same program to increase <a href=\"https:\/\/yohost.org\/library\/category\/security\/\" target=\"_blank\" rel=\"noreferrer noopener\">security<\/a> of the server. Let&#8217;s create an example access rule so that this server&#8217;s SSH can be accessed only from certain IP.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"963\" height=\"576\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/adding-firewall-rule-45x27.png\" alt class=\"wp-image-464 lazy\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/adding-firewall-rule.png 963w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/adding-firewall-rule-300x179.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/adding-firewall-rule-768x459.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/adding-firewall-rule-45x27.png 45w\" data-sizes=\"auto, (max-width: 963px) 100vw, 963px\" data-width=\"963\" data-height=\"576\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/adding-firewall-rule.png\" style=\"height: 0; width: 963px; padding-bottom: 59.81%;\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" width=\"963\" height=\"576\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/adding-firewall-rule.png\" alt=\"\" class=\"wp-image-464\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/adding-firewall-rule.png 963w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/adding-firewall-rule-300x179.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/adding-firewall-rule-768x459.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/adding-firewall-rule-45x27.png 45w\" sizes=\"auto, (max-width: 963px) 100vw, 963px\" \/><\/noscript><figcaption class=\"wp-element-caption\">Creating Rules in Firewall Configuration<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Manage Firewall via Terminal<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">First of all, let&#8217;s check status of our firewall.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>~$ sudo ufw status\nStatus: active<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you see status active, this means that firewall is installed and enabled. If you see something like <em>&#8220;command ufw not found&#8221;<\/em>, this means that firewall is not installed. You can install it via terminal using command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt install ufw<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To disable\/enable firewall use the below commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>~$ sudo ufw enable\nFirewall is active and enabled on system startup\n\nsudo ufw disable\nFirewall stopped and disabled on system startup<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">As you can se, it&#8217;s quite easy to manage Ubuntu firewall via command line. Now let&#8217;s add a test rule via command line.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>~$ sudo ufw allow from 5.252.152.238 proto tcp to any port 22\nRules updated<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to delete created rule, use command <em>sudo ufw delete<\/em> followed by the exact rule:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>~$ sudo ufw delete allow from 5.252.152.238 proto tcp to any port 22\nRules updated<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To block an IP, use this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>~$ sudo ufw deny from 5.252.152.238\nRules updated<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To allow IP:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>~$ sudo ufw allow from 5.252.152.238\nRules updated<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">As you can see the commands are pretty simple and easy to remember. If you want to learn more rules and options with ufw firewall you can always read this <a href=\"https:\/\/help.ubuntu.com\/community\/UFW\" target=\"_blank\" rel=\"noreferrer noopener\">wiki<\/a> or type in the terminal <em><strong>man ufw<\/strong><\/em> to see the manual.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article we will learn how to enable\/disable firewall on Ubuntu 20.04 using graphic UI and command line. We will also learn how to flush firewall blocks. Manage Firewall (ufw) via GUI By default my Ubuntu 20.04 installation does not include firewall. So, first we will install firewall. Go to Ubuntu Software, find &#8220;ufw&#8221; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":466,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"stax_block_gap":"","stax_show_title_section":"","stax_single_post_media_panel_height":"","stax_single_post_media_panel_text":"","stax_single_post_cateory_breadcrumb":"","stax_single_post_title_position":"","stax_single_post_title_align":"","stax_single_post_title_extra_align":"","stax_single_post_title_size":"","stax_single_post_image_width":"","stax_single_post_image_format":"","stax_single_post_audio_panel":"","stax_single_post_video_panel":"","stax_single_post_video_width":"","stax_single_post_gallery_panel":"","stax_single_post_gallery_width":"","stax_single_post_gallery_slides":"","stax_single_post_meta_author_avatar":"","stax_single_post_meta_author_name":"","stax_single_post_meta_post_date":"","stax_single_post_meta_reading_time":"","stax_single_post_shapes":"","footnotes":""},"categories":[5],"tags":[90,89],"class_list":["post-458","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security","tag-ubuntu-firewall","tag-ufw-enable-disable"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.12 (Yoast SEO v27.7) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to disable\/enable firewall on Ubuntu 20.04<\/title>\n<meta name=\"description\" content=\"In this article we will learn how to install, enable, disable and configure UFW firewall in Ubuntu 20.04. We will also cover the rules.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/yohost.org\/library\/how-to-disable-enable-firewall-on-ubuntu-20-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to disable\/enable firewall on Ubuntu 20.04\" \/>\n<meta property=\"og:description\" content=\"In this article we will learn how to install, enable, disable and configure UFW firewall in Ubuntu 20.04. We will also cover the rules.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/yohost.org\/library\/how-to-disable-enable-firewall-on-ubuntu-20-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Privacy Dedicated Library\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-17T12:31:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-20T20:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/firewall-logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"155\" \/>\n\t<meta property=\"og:image:height\" content=\"158\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Paul M\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@yohostorg\" \/>\n<meta name=\"twitter:site\" content=\"@yohostorg\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paul M\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-disable-enable-firewall-on-ubuntu-20-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-disable-enable-firewall-on-ubuntu-20-04\\\/\"},\"author\":{\"name\":\"Paul M\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#\\\/schema\\\/person\\\/69f04ef60b945341f65db69ad70c0faf\"},\"headline\":\"How to disable\\\/enable firewall on Ubuntu 20.04\",\"datePublished\":\"2022-10-17T12:31:48+00:00\",\"dateModified\":\"2022-11-20T20:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-disable-enable-firewall-on-ubuntu-20-04\\\/\"},\"wordCount\":289,\"publisher\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-disable-enable-firewall-on-ubuntu-20-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/yohost.org\\\/library\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/firewall-logo.png\",\"keywords\":[\"ubuntu firewall\",\"ufw enable disable\"],\"articleSection\":[\"Security\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-disable-enable-firewall-on-ubuntu-20-04\\\/\",\"url\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-disable-enable-firewall-on-ubuntu-20-04\\\/\",\"name\":\"How to disable\\\/enable firewall on Ubuntu 20.04\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-disable-enable-firewall-on-ubuntu-20-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-disable-enable-firewall-on-ubuntu-20-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/yohost.org\\\/library\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/firewall-logo.png\",\"datePublished\":\"2022-10-17T12:31:48+00:00\",\"dateModified\":\"2022-11-20T20:00:00+00:00\",\"description\":\"In this article we will learn how to install, enable, disable and configure UFW firewall in Ubuntu 20.04. We will also cover the rules.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-disable-enable-firewall-on-ubuntu-20-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-disable-enable-firewall-on-ubuntu-20-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-disable-enable-firewall-on-ubuntu-20-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/yohost.org\\\/library\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/firewall-logo.png\",\"contentUrl\":\"https:\\\/\\\/yohost.org\\\/library\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/firewall-logo.png\",\"width\":155,\"height\":158,\"caption\":\"ufw logo\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-disable-enable-firewall-on-ubuntu-20-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/yohost.org\\\/library\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to disable\\\/enable firewall on Ubuntu 20.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#website\",\"url\":\"https:\\\/\\\/yohost.org\\\/library\\\/\",\"name\":\"Privacy Dedicated Library\",\"description\":\"Everything about privacy protection, Bitcoin, encryption and technology\",\"publisher\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/yohost.org\\\/library\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#organization\",\"name\":\"Yohost.org\",\"url\":\"https:\\\/\\\/yohost.org\\\/library\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/yohost.org\\\/library\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/yhscree2.png\",\"contentUrl\":\"https:\\\/\\\/yohost.org\\\/library\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/yhscree2.png\",\"width\":431,\"height\":466,\"caption\":\"Yohost.org\"},\"image\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/yohostorg\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#\\\/schema\\\/person\\\/69f04ef60b945341f65db69ad70c0faf\",\"name\":\"Paul M\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6d68ca6c8d2150c879f23586b6734b585aca8528d5f9d6158a28685239857aee?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6d68ca6c8d2150c879f23586b6734b585aca8528d5f9d6158a28685239857aee?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6d68ca6c8d2150c879f23586b6734b585aca8528d5f9d6158a28685239857aee?s=96&d=mm&r=g\",\"caption\":\"Paul M\"},\"sameAs\":[\"https:\\\/\\\/yohost.org\\\/library\"],\"url\":\"https:\\\/\\\/yohost.org\\\/library\\\/author\\\/admin_31kufsla\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to disable\/enable firewall on Ubuntu 20.04","description":"In this article we will learn how to install, enable, disable and configure UFW firewall in Ubuntu 20.04. We will also cover the rules.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/yohost.org\/library\/how-to-disable-enable-firewall-on-ubuntu-20-04\/","og_locale":"en_US","og_type":"article","og_title":"How to disable\/enable firewall on Ubuntu 20.04","og_description":"In this article we will learn how to install, enable, disable and configure UFW firewall in Ubuntu 20.04. We will also cover the rules.","og_url":"https:\/\/yohost.org\/library\/how-to-disable-enable-firewall-on-ubuntu-20-04\/","og_site_name":"Privacy Dedicated Library","article_published_time":"2022-10-17T12:31:48+00:00","article_modified_time":"2022-11-20T20:00:00+00:00","og_image":[{"width":155,"height":158,"url":"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/firewall-logo.png","type":"image\/png"}],"author":"Paul M","twitter_card":"summary_large_image","twitter_creator":"@yohostorg","twitter_site":"@yohostorg","twitter_misc":{"Written by":"Paul M","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/yohost.org\/library\/how-to-disable-enable-firewall-on-ubuntu-20-04\/#article","isPartOf":{"@id":"https:\/\/yohost.org\/library\/how-to-disable-enable-firewall-on-ubuntu-20-04\/"},"author":{"name":"Paul M","@id":"https:\/\/yohost.org\/library\/#\/schema\/person\/69f04ef60b945341f65db69ad70c0faf"},"headline":"How to disable\/enable firewall on Ubuntu 20.04","datePublished":"2022-10-17T12:31:48+00:00","dateModified":"2022-11-20T20:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/yohost.org\/library\/how-to-disable-enable-firewall-on-ubuntu-20-04\/"},"wordCount":289,"publisher":{"@id":"https:\/\/yohost.org\/library\/#organization"},"image":{"@id":"https:\/\/yohost.org\/library\/how-to-disable-enable-firewall-on-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/firewall-logo.png","keywords":["ubuntu firewall","ufw enable disable"],"articleSection":["Security"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/yohost.org\/library\/how-to-disable-enable-firewall-on-ubuntu-20-04\/","url":"https:\/\/yohost.org\/library\/how-to-disable-enable-firewall-on-ubuntu-20-04\/","name":"How to disable\/enable firewall on Ubuntu 20.04","isPartOf":{"@id":"https:\/\/yohost.org\/library\/#website"},"primaryImageOfPage":{"@id":"https:\/\/yohost.org\/library\/how-to-disable-enable-firewall-on-ubuntu-20-04\/#primaryimage"},"image":{"@id":"https:\/\/yohost.org\/library\/how-to-disable-enable-firewall-on-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/firewall-logo.png","datePublished":"2022-10-17T12:31:48+00:00","dateModified":"2022-11-20T20:00:00+00:00","description":"In this article we will learn how to install, enable, disable and configure UFW firewall in Ubuntu 20.04. We will also cover the rules.","breadcrumb":{"@id":"https:\/\/yohost.org\/library\/how-to-disable-enable-firewall-on-ubuntu-20-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/yohost.org\/library\/how-to-disable-enable-firewall-on-ubuntu-20-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/yohost.org\/library\/how-to-disable-enable-firewall-on-ubuntu-20-04\/#primaryimage","url":"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/firewall-logo.png","contentUrl":"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/10\/firewall-logo.png","width":155,"height":158,"caption":"ufw logo"},{"@type":"BreadcrumbList","@id":"https:\/\/yohost.org\/library\/how-to-disable-enable-firewall-on-ubuntu-20-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/yohost.org\/library\/"},{"@type":"ListItem","position":2,"name":"How to disable\/enable firewall on Ubuntu 20.04"}]},{"@type":"WebSite","@id":"https:\/\/yohost.org\/library\/#website","url":"https:\/\/yohost.org\/library\/","name":"Privacy Dedicated Library","description":"Everything about privacy protection, Bitcoin, encryption and technology","publisher":{"@id":"https:\/\/yohost.org\/library\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/yohost.org\/library\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/yohost.org\/library\/#organization","name":"Yohost.org","url":"https:\/\/yohost.org\/library\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/yohost.org\/library\/#\/schema\/logo\/image\/","url":"https:\/\/yohost.org\/library\/wp-content\/uploads\/2021\/12\/yhscree2.png","contentUrl":"https:\/\/yohost.org\/library\/wp-content\/uploads\/2021\/12\/yhscree2.png","width":431,"height":466,"caption":"Yohost.org"},"image":{"@id":"https:\/\/yohost.org\/library\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/yohostorg"]},{"@type":"Person","@id":"https:\/\/yohost.org\/library\/#\/schema\/person\/69f04ef60b945341f65db69ad70c0faf","name":"Paul M","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/6d68ca6c8d2150c879f23586b6734b585aca8528d5f9d6158a28685239857aee?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/6d68ca6c8d2150c879f23586b6734b585aca8528d5f9d6158a28685239857aee?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6d68ca6c8d2150c879f23586b6734b585aca8528d5f9d6158a28685239857aee?s=96&d=mm&r=g","caption":"Paul M"},"sameAs":["https:\/\/yohost.org\/library"],"url":"https:\/\/yohost.org\/library\/author\/admin_31kufsla\/"}]}},"_links":{"self":[{"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/posts\/458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/comments?post=458"}],"version-history":[{"count":6,"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/posts\/458\/revisions"}],"predecessor-version":[{"id":562,"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/posts\/458\/revisions\/562"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/media\/466"}],"wp:attachment":[{"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/media?parent=458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/categories?post=458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/tags?post=458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}