{"id":4447,"date":"2023-01-25T03:35:42","date_gmt":"2023-01-25T03:35:42","guid":{"rendered":"https:\/\/linuxsimply.com\/?p=4447"},"modified":"2023-08-31T03:54:27","modified_gmt":"2023-08-31T03:54:27","slug":"ufw-command-in-linux","status":"publish","type":"post","link":"https:\/\/linuxsimply.com\/ufw-command-in-linux\/","title":{"rendered":"The \u201cufw\u201d Command in Linux [12+ Practical Examples]"},"content":{"rendered":"<p style=\"text-align: justify;\">The <strong>ufw <\/strong>(<strong>U<\/strong>ncomplicated <strong>F<\/strong>ire<strong>W<\/strong>all) is a firewall management tool for <strong>Linux<\/strong> systems that is used to configure and manage the <strong>built-in firewall<\/strong>\u00a0of the<strong>\u00a0Linux kernel<\/strong>. Additionally, it is designed to be easy to use and understand for users who are not familiar with<strong>\u00a0firewall <\/strong>management. Furthermore, I will describe all the<strong>\u00a0<\/strong>features and uses of the<strong>\u00a0ufw<\/strong>\u00a0command in<strong>\u00a0Linux<\/strong>\u00a0with multiple examples.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#A_Description\" >A.\u00a0Description<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#B_Syntax\" >B.\u00a0Syntax<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#C_Options\" >C.\u00a0Options<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Installing_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\" >Installing the \u201cufw\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Practical_Examples_of_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\" >Practical Examples of the \u201cufw\u201d Command in Linux<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Example_1_Defining_the_Default_Behavior_of_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\" >Example 1: Defining the Default Behavior of the \u201cufw\u201d Command in Linux<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Case_A_Deny_Incoming_Connections\" >Case A: Deny Incoming Connections<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Case_B_Allow_Incoming_Connections\" >Case B: Allow Incoming Connections<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Case_C_Deny_Outgoing_Connections\" >Case C: Deny Outgoing Connections<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Case_D_Allow_Outgoing_Connections\" >Case D: Allow Outgoing Connections<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Example_2_View_the_Current_Firewall_Status_Using_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\" >Example 2: View the Current Firewall Status Using the \u201cufw\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Example_3_Allow_SSH_connections_Using_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\" >Example 3: Allow SSH connections Using the \u201cufw\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Example_4_Enable_or_Disable_UFW_Logging\" >Example 4: Enable or Disable UFW Logging<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Case_A_Enable_UFW_Logging\" >Case A: Enable UFW Logging<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Case_B_Disable_UFW_Logging\" >Case B: Disable UFW Logging<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Example_5_Activate_Deactivate_the_Firewall_Using_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\" >Example 5: Activate \/ Deactivate the Firewall Using the \u201cufw\u201d Command in Linux<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Case_A_Activate_the_Firewall\" >Case A: Activate the Firewall<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Case_B_Deactivate_the_Firewall\" >Case B: Deactivate the Firewall<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Example_6_Limit_the_Number_of_Connections_to_a_Given_Port_Over_Time\" >Example 6: Limit the Number of Connections to a Given Port Over Time<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Example_7_Use_IPv6_With_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\" >Example 7: Use IPv6 With the \u201cufw\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Example_8_Securing_Web_Servers_Using_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\" >Example 8: Securing Web Servers Using the \u201cufw\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Example_9_Specifying_Port_Ranges_With_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\" >Example 9: Specifying Port Ranges With the \u201cufw\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Example_10_Specifying_IP_Addresses_With_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\" >Example 10: Specifying IP Addresses With the \u201cufw\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Example_11_Deleting_Rules_Using_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\" >Example 11: Deleting Rules Using the \u201cufw\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Example_12_Resetting_Default_Settings_for_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\" >Example 12: Resetting Default Settings for the \u201cufw\u201d Command in Linux<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-26\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"A_Description\"><\/span>A.\u00a0Description<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">Generally, the <strong>ufw<\/strong>\u00a0command is used to interact with the <strong>firewall<\/strong>, and it provides a variety of <strong>options <\/strong>to <strong>enable<\/strong>\u00a0or <strong>disable<\/strong>\u00a0the <strong>firewall<\/strong>, <strong>open<\/strong>\u00a0or <strong>close ports<\/strong>, and <strong>configure<\/strong>\u00a0the<strong>\u00a0firewall rules<\/strong>. However, before starting to use <strong>UFW<\/strong>, you should check your current <strong>firewall status<\/strong>\u00a0and<strong>\u00a0settings<\/strong>\u00a0with &#8220;<strong>sudo ufw status.&#8221;<\/strong>\u00a0If another <strong>firewall <\/strong>is already running, you should <strong>stop<\/strong>\u00a0it or <strong>disable<\/strong>\u00a0it before enabling <strong>UFW<\/strong>.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"B_Syntax\"><\/span>B.\u00a0Syntax<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The syntax of the<strong>\u00a0ufw<\/strong>\u00a0command in <strong>Linux<\/strong>\u00a0is pretty simple, as shown below.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">ufw [ACTION]... [OPTION]... [RULE]...<\/code><\/pre>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#aeb0b3;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#E1E3E6;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\"> EXPLANATION<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\">\n<ul>\n<li><strong>ACTION<\/strong>\u00a0is the action to take, such as &#8220;enable&#8221;, &#8220;disable&#8221;, &#8220;status&#8221;, etc.<\/li>\n<li><strong>OPTION<\/strong>\u00a0is an optional flag or setting that modifies the behavior of the command.<\/li>\n<li><strong>RULE<\/strong>\u00a0is the rule to apply, such as &#8220;allow&#8221;, &#8220;deny&#8221;, &#8220;limit&#8221;, etc.<\/li>\n<\/ul>\n<\/div><\/div>\n<div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\"><strong>Note: <\/strong>In this case, the <strong>ACTION<\/strong>, <strong>OPTION and RULE<\/strong>\u00a0enclosed by square brackets mean it is not mandatory and three dots after the square bracket mean multiple <strong>ACTIONs<\/strong>, <strong>OPTIONs or RULEs<\/strong>\u00a0can be used after the <strong>ufw <\/strong>command<\/div><\/div>\n<h3><span class=\"ez-toc-section\" id=\"C_Options\"><\/span>C.\u00a0Options<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">There are numerous <strong>options<\/strong>\u00a0available for the <strong>ufw<\/strong> command. Here, I have listed a few of them. However, You can learn more about the <strong>ufw <\/strong>command, its <strong>options<\/strong>\u00a0and their uses by checking the <strong>man<\/strong>\u00a0page.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">man ufw<\/code><\/pre>\n<p><span style=\"color: #800080;\"><strong>Useful Options<\/strong><\/span><\/p>\n<div class=\"su-list\" style=\"margin-left:20px\">\n<ul>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>&#8211;version: <\/strong>Show the program&#8217;s version number.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-h, &#8211;help: <\/strong>show help message.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>&#8211;dry-run: <\/strong>Show the changes that would be made to the firewall without actually applying them.<\/li>\n<\/ul>\n<\/div>\n<div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\"><strong>Note:<\/strong> In general, the commands\u00a0and their <strong>options<\/strong>\u00a0are <strong>case-sensitive <\/strong>in <strong>Linux<\/strong>. So, be careful while using them<\/div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Installing_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\"><\/span>Installing the \u201cufw\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">The <strong>ufw <\/strong>command is typically <strong>pre-installed<\/strong>\u00a0on most <strong>Linux<\/strong>\u00a0distributions. If it is not already installed on your<strong>\u00a0system<\/strong>, you can install it using the package manager for your distribution. You can find out whether you have it on your machine or not by typing the below command<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">ufw --version<\/code><\/pre>\n<p><strong><span style=\"color: #800080;\">Alternatively,<\/span><\/strong><\/p>\n<pre><code class=\"language-bash\" data-line=\"\">ufw version<\/code><\/pre>\n<p style=\"text-align: justify;\">Your system will print out the version of the <strong>ufw<\/strong> command if it is already installed.<img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-4453\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-1.png\" alt=\"Showing the version of ufw command in Linux.\" width=\"465\" height=\"127\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-1.png 465w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-1-300x82.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-1-1024x280.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-1-765x209.png 765w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-1-1536x420.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-1-2048x559.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-1-549x150.png 549w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-1-100x27.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-1-1281x350.png 1281w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-1-788x215.png 788w\" sizes=\"(max-width: 465px) 100vw, 465px\" \/>Otherwise, you can <strong>install<\/strong>\u00a0the <strong>ufw<\/strong> command on your machine within a minute by following the instructions given below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a \u00a0At first, open the <strong>Ubuntu Terminal<\/strong><\/p>\n<p>\u278b \u00a0Type the following in your command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo apt-get install ufw<\/code><\/pre>\n<p><span style=\"color: #800080;\"><strong>Alternatively,<\/strong><\/span><\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo apt install ufw<\/code><\/pre>\n<p>\u278c Tap the <strong>ENTER<\/strong>\u00a0key.<\/p>\n<p>\u278d Input your<strong>\u00a0password<\/strong><\/p>\n<p>\u278e Now, press <strong>ENTER<\/strong><\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">Upon completion of these steps, the <strong>ufw <\/strong>command will be installed on your machine.<img decoding=\"async\" class=\"aligncenter size-full wp-image-4454\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-2.png\" alt=\"Showing you the installation process of ufw command.\" width=\"825\" height=\"515\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-2.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-2-300x187.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-2-1024x639.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-2-767x479.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-2-1536x959.png 1536w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Practical_Examples_of_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\"><\/span>Practical Examples of the \u201cufw\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">In <strong>Linux<\/strong>, the <strong>ufw<\/strong>\u00a0command is a helpful tool to <strong>enable<\/strong>\u00a0or <strong>disable<\/strong>\u00a0the <strong>firewall<\/strong>, <strong>open<\/strong>\u00a0or <strong>close ports<\/strong>, and <strong>configure<\/strong>\u00a0the<strong>\u00a0firewall rules<\/strong>. In the section below, I will show you some of the most useful applications for the <strong>ufw <\/strong>command in <strong>Linux<\/strong>.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_1_Defining_the_Default_Behavior_of_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\"><\/span>Example 1: Defining the Default Behavior of the \u201cufw\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">You can control<strong>\u00a0incoming<\/strong>\u00a0and <strong>outgoing<\/strong>\u00a0traffic by using the <strong>ufw<\/strong>\u00a0command. You can <strong>deny<\/strong>\u00a0<strong>incoming <\/strong>connections that do not match any rule by running &#8220;<strong>ufw default deny incoming<\/strong>.\u201d Alternatively, you can <strong>allow incoming<\/strong>\u00a0connections that do not match any rule by running &#8220;<strong>ufw default allow incoming<\/strong>.&#8221; Again, to <strong>deny<\/strong>\u00a0or<strong>\u00a0allow<\/strong>\u00a0<strong>outgoing<\/strong>\u00a0connections, you can run the \u201c<strong>ufw default deny outgoing<\/strong>\u201d or \u201c<strong>ufw default allow outgoing<\/strong>\u201d commands, respectively. Here, I will show you the process of defining the default value, considering four cases.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_A_Deny_Incoming_Connections\"><\/span>Case A: Deny Incoming Connections<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p style=\"text-align: justify;\">To <strong>deny<\/strong>\u00a0the <strong>incoming<\/strong>\u00a0connections that do <strong>not match<\/strong>\u00a0any rule, you can follow the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b<strong>\u00a0<\/strong>Execute the command to deny the incoming connections that do not match any rule<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw default deny incoming<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong>\u00a0button.<\/p>\n<p>\u278d Input your<strong>\u00a0Password<\/strong>.<\/p>\n<p>\u278e Finally, Tap the<strong>\u00a0ENTER <\/strong>key again.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see that I have <strong>denied<\/strong>\u00a0the <strong>incoming connections<\/strong> that do not match any rule.<img decoding=\"async\" class=\"aligncenter wp-image-4466 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-3.png\" alt=\"Sowing that I have denied the incoming connections that do not match any rule.\" width=\"649\" height=\"141\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-3.png 649w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-3-300x65.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-3-1024x222.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-3-764x166.png 764w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-3-1536x334.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-3-2048x445.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-3-690x150.png 690w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-3-100x22.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-3-1611x350.png 1611w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-3-788x171.png 788w\" sizes=\"(max-width: 649px) 100vw, 649px\" \/><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_B_Allow_Incoming_Connections\"><\/span>Case B: Allow Incoming Connections<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p style=\"text-align: justify;\">You can<strong>\u00a0allow<\/strong>\u00a0the <strong>incoming<\/strong>\u00a0connections that do <strong>not match<\/strong>\u00a0any rule, Here, I will show you the process to <strong>allow<\/strong>\u00a0the<strong>\u00a0incoming<\/strong>\u00a0connections. You can do the same by following the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a Open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b<strong>\u00a0<\/strong>Run the command to allow the incoming connections that do not match any rule<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw default allow incoming<\/code><\/pre>\n<p>\u278c Press the <strong>ENTER<\/strong>\u00a0button.<\/p>\n<p>\u278d Now, Provide your<strong>\u00a0Password<\/strong>.<\/p>\n<p>\u278e Hit the<strong>\u00a0ENTER <\/strong>key again.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the image below, you can see that I have <strong>allowed<\/strong>\u00a0<strong>incoming connections<\/strong> that do not match any rule.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4467\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-4.png\" alt=\"Showing that I have allowed incoming connections that do not match any rule.\" width=\"650\" height=\"135\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-4.png 650w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-4-300x62.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-4-1024x213.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-4-766x159.png 766w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-4-1536x319.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-4-2048x425.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-4-722x150.png 722w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-4-100x21.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-4-1685x350.png 1685w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-4-788x163.png 788w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_C_Deny_Outgoing_Connections\"><\/span>Case C: Deny Outgoing Connections<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p style=\"text-align: justify;\">To <strong>deny<\/strong>\u00a0the <strong>outgoing<\/strong>\u00a0connections that do <strong>not match<\/strong>\u00a0any rule, you can follow the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a First, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b<strong>\u00a0<\/strong>Execute the command to deny the incoming connections that do not match any rule<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw default deny outgoing<\/code><\/pre>\n<p>\u278c Hit the <strong>ENTER<\/strong>\u00a0button.<\/p>\n<p>\u278d Type your<strong>\u00a0Password<\/strong>.<\/p>\n<p>\u278e Tap the<strong>\u00a0ENTER <\/strong>key again.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see that I have <strong>denied<\/strong>\u00a0the <strong>outgoing connections<\/strong> that do not match any rule.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4468\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-5.png\" alt=\"Showing that I have denied the outgoing connections that do not match any rule.\" width=\"642\" height=\"141\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-5.png 642w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-5-300x66.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-5-1024x225.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-5-765x168.png 765w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-5-1536x337.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-5-2048x450.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-5-683x150.png 683w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-5-100x22.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-5-1594x350.png 1594w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-5-788x173.png 788w\" sizes=\"(max-width: 642px) 100vw, 642px\" \/><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_D_Allow_Outgoing_Connections\"><\/span>Case D: Allow Outgoing Connections<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p style=\"text-align: justify;\">You can <strong>allow<\/strong>\u00a0<strong>outgoing<\/strong>\u00a0connections that do <strong>not match<\/strong>\u00a0any rule using the <strong>ufw<\/strong>\u00a0command in <strong>Linux<\/strong>. Here, I will show you the process for <strong>allowing outgoing<\/strong>\u00a0connections. You can do the same by following the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a Open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b<strong>\u00a0<\/strong>Run the command to allow the outgoing connections that do not match any rule<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw default allow outgoing<\/code><\/pre>\n<p>\u278c Press the <strong>ENTER<\/strong>\u00a0button.<\/p>\n<p>\u278d Provide your<strong>\u00a0Password<\/strong>.<\/p>\n<p>\u278e Hit the<strong>\u00a0ENTER <\/strong>key again.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">The image in the section below shows that I have <strong>allowed<\/strong>\u00a0<strong>outgoing connections<\/strong> that do not match any rule.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4469\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-6.png\" alt=\"Showing that I have allowed outgoing connections that do not match any rule.\" width=\"653\" height=\"138\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-6.png 653w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-6-300x63.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-6-1024x216.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-6-767x162.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-6-1536x325.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-6-2048x433.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-6-710x150.png 710w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-6-100x21.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-6-1656x350.png 1656w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-6-788x166.png 788w\" sizes=\"(max-width: 653px) 100vw, 653px\" \/><\/p>\n<hr \/>\n<p><span style=\"color: #000080; font-size: 18pt;\"><strong>Similar Readings<\/strong><\/span><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/iptables-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201ciptables\u201d Command in Linux [6 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/netstat-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cnetstat\u201d Command in Linux [22 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/nslookup-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cnslookup\u201d Command in Linux [12 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/tcpdump-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201ctcpdump\u201d Command in Linux [6+ Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_2_View_the_Current_Firewall_Status_Using_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\"><\/span>Example 2: View the Current Firewall Status Using the \u201cufw\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>ufw<\/strong>\u00a0command in <strong>Linux<\/strong>\u00a0allows you to see the current<strong>\u00a0firewall <\/strong>status. For, this you have to execute the <strong>ufw status<\/strong>\u00a0command. Now, I will show you the <strong>current firewall<\/strong>\u00a0status of my machine using the<strong>\u00a0ufw <\/strong>command. To do the same, follow the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a Open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Now, Execute the command below.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw status<\/code><\/pre>\n<p>\u278c Then, Tap the <strong>ENTER<\/strong>\u00a0button.<\/p>\n<p>\u278d Input your<strong>\u00a0Password<\/strong>.<\/p>\n<p>\u278e Finally, Press the<strong>\u00a0ENTER <\/strong>key again.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see that I have <strong>shown <\/strong>you the <strong>current firewall <\/strong>status in the<strong>\u00a0terminal<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4470\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-7.png\" alt=\"Showing the current firewall status in the terminal.\" width=\"447\" height=\"118\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-7.png 447w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-7-300x79.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-7-1024x270.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-7-765x202.png 765w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-7-1536x405.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-7-2048x541.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-7-568x150.png 568w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-7-100x26.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-7-1326x350.png 1326w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-7-788x208.png 788w\" sizes=\"(max-width: 447px) 100vw, 447px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_3_Allow_SSH_connections_Using_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\"><\/span>Example 3: Allow SSH connections Using the \u201cufw\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">When you turn on the<strong>\u00a0firewall,<\/strong>\u00a0you don&#8217;t want to be <strong>locked out<\/strong>\u00a0of your own server. To fix this, you need to make a rule that lets you get in through <strong>port 22<\/strong>\u00a0(or whatever number you use for SSH). Remember, you must specify the <strong>port <\/strong>that the<strong>\u00a0service uses<\/strong>. This section will give you an example of how to <strong>allow SSH<\/strong>\u00a0(Secure Shell)<strong>\u00a0<\/strong>connections through <strong>port 22<\/strong> (the default port\u00a0for <strong>SSH<\/strong>\u00a0is <strong>port 22<\/strong>). Now, You can do the same by following the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a Launch the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Then, Type the following command in the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw allow 22<\/code><\/pre>\n<p>\u278c Press the <strong>ENTER<\/strong>\u00a0button.<\/p>\n<p>\u278d Now, Provide your<strong>\u00a0Password<\/strong>.<\/p>\n<p>\u278e Hit the<strong>\u00a0ENTER <\/strong>key again.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see that I have allowed the <strong>SSH connection<\/strong>\u00a0through <strong>port 22<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4471\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-8.png\" alt=\"The SSH connection has been allowed through port 22.\" width=\"476\" height=\"135\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-8.png 476w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-8-300x85.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-8-1024x290.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-8-765x217.png 765w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-8-1536x436.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-8-2048x581.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-8-529x150.png 529w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-8-100x28.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-8-1234x350.png 1234w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-8-788x223.png 788w\" sizes=\"(max-width: 476px) 100vw, 476px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_4_Enable_or_Disable_UFW_Logging\"><\/span>Example 4: Enable or Disable UFW Logging<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>ufw<\/strong>\u00a0command allows you to <strong>enable <\/strong>and <strong>disable<\/strong>\u00a0<strong>UFW login<\/strong>. Here, I will show you both examples of <strong>enabling<\/strong>\u00a0and <strong>disabling UFW logging,<\/strong>\u00a0in the below two cases.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_A_Enable_UFW_Logging\"><\/span>Case A: Enable UFW Logging<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p style=\"text-align: justify;\">To <strong>enable UFW logging<\/strong>, you can follow the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b<strong>\u00a0<\/strong>Then, Execute the command to enable the UFW logging<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw logging on<\/code><\/pre>\n<p>\u278c Press the <strong>ENTER<\/strong>\u00a0button.<\/p>\n<p>\u278d Now, Type your<strong>\u00a0Password<\/strong>.<\/p>\n<p>\u278e Hit the<strong>\u00a0ENTER <\/strong>key.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see that I have <strong>enabled UFW logging <\/strong>on my machine.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4472\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-9.png\" alt=\"UFW logging has enabled with the ufw command in linux.\" width=\"503\" height=\"108\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-9.png 503w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-9-300x64.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-9-1024x220.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-9-764x164.png 764w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-9-1536x330.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-9-2048x440.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-9-699x150.png 699w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-9-100x21.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-9-1630x350.png 1630w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-9-788x169.png 788w\" sizes=\"(max-width: 503px) 100vw, 503px\" \/><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_B_Disable_UFW_Logging\"><\/span>Case B: Disable UFW Logging<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p style=\"text-align: justify;\">To <strong>disable UFW logging<\/strong>, you can follow the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a Open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Then, Run the following command to disable UFW logging<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw logging off<\/code><\/pre>\n<p>\u278c Tap the <strong>ENTER<\/strong>\u00a0button.<\/p>\n<p>\u278d Now, Provide your<strong>\u00a0Password<\/strong>.<\/p>\n<p>\u278e Finally, Press the<strong>\u00a0ENTER <\/strong>key again.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the image below, you can see that I have <strong>disabled UFW logging <\/strong>with the<strong>\u00a0ufw <\/strong>command.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4473\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-10.png\" alt=\"The UFW logging is disabled using ufw command in linux.\" width=\"525\" height=\"114\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-10.png 525w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-10-300x65.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-10-1024x222.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-10-764x166.png 764w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-10-1536x334.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-10-2048x445.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-10-691x150.png 691w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-10-100x22.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-10-1612x350.png 1612w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-10-788x171.png 788w\" sizes=\"(max-width: 525px) 100vw, 525px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_5_Activate_Deactivate_the_Firewall_Using_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\"><\/span>Example 5: Activate \/ Deactivate the Firewall Using the \u201cufw\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>ufw<\/strong>\u00a0command allows you to <strong>activate<\/strong>\u00a0and <strong>deactivate<\/strong>\u00a0the <strong>firewall<\/strong>. Here, in this example, I will show you the process to <strong>activate<\/strong>\u00a0and <strong>deactivate <\/strong>the firewall using the <strong>ufw<\/strong>\u00a0command with the <strong>enable<\/strong>\u00a0and <strong>disable ACTION<\/strong>\u00a0in the following two cases.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_A_Activate_the_Firewall\"><\/span>Case A: Activate the Firewall<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p style=\"text-align: justify;\">To <strong>activate <\/strong>the <strong>firewall<\/strong>, you can follow the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b<strong>\u00a0<\/strong>Execute the command to <strong>activate<\/strong>\u00a0the <strong>firewall<\/strong><\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw enable<\/code><\/pre>\n<p>\u278c Press the <strong>ENTER<\/strong>\u00a0button.<\/p>\n<p>\u278d Type your<strong>\u00a0Password<\/strong>.<\/p>\n<p>\u278e Hit the<strong>\u00a0ENTER <\/strong>key.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see that I have <strong>activated <\/strong>the <strong>firewall <\/strong>on my machine.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4474\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-11.png\" alt=\"Showing the firewall activation using ufw command in linux.\" width=\"645\" height=\"117\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-11.png 645w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-11-300x54.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-11-1024x186.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-11-766x139.png 766w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-11-1536x279.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-11-2048x371.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-11-827x150.png 827w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-11-100x18.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-11-1929x350.png 1929w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-11-788x142.png 788w\" sizes=\"(max-width: 645px) 100vw, 645px\" \/><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Case_B_Deactivate_the_Firewall\"><\/span>Case B: Deactivate the Firewall<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To <strong>deactivate <\/strong>the <strong>firewall<\/strong>, you can follow the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a Open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b<strong>\u00a0<\/strong>Run the command to <strong>deactivate<\/strong>\u00a0the <strong>firewall<\/strong><\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw disable<\/code><\/pre>\n<p>\u278c Tap the <strong>ENTER<\/strong>\u00a0button.<\/p>\n<p>\u278d Provide your<strong>\u00a0Password<\/strong>.<\/p>\n<p>\u278e Press the<strong>\u00a0ENTER <\/strong>key again.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the image below, you can see that I have <strong>deactivated<\/strong>\u00a0the <strong>firewall<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4475\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-12.png\" alt=\"Showing the firewall deactivation using ufw command in linux.\" width=\"635\" height=\"124\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-12.png 635w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-12-300x59.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-12-1024x200.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-12-763x149.png 763w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-12-1536x300.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-12-2048x400.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-12-768x150.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-12-100x20.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-12-1792x350.png 1792w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-12-788x153.png 788w\" sizes=\"(max-width: 635px) 100vw, 635px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_6_Limit_the_Number_of_Connections_to_a_Given_Port_Over_Time\"><\/span>Example 6: Limit the Number of Connections to a Given Port Over Time<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>UFW<\/strong>\u00a0has a <strong>rate-limiting<\/strong>\u00a0feature to block connections from<strong>\u00a0IPs<\/strong>\u00a0that have made <strong>six<\/strong>\u00a0or <strong>more attempts<\/strong>\u00a0within<strong>\u00a030 seconds<\/strong>, helping to protect against <strong>brute-force attacks<\/strong>. In this example, I will show you how to open an<strong>\u00a0SSH connection<\/strong>\u00a0to all IPs with rate limiting. By following the steps below, you can achieve the same thing.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a Launch the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b<strong>\u00a0<\/strong>Execute the following command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw limit ssh<\/code><\/pre>\n<p>\u278c Press the <strong>ENTER<\/strong>\u00a0button.<\/p>\n<p>\u278d Type your<strong>\u00a0Password<\/strong>.<\/p>\n<p>\u278e Hit the<strong>\u00a0ENTER <\/strong>key.<\/p>\n<p>\u278fRun the following command<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw status numbered<\/code><\/pre>\n<p>\u2790 Finally, Tap the <strong>ENTER<\/strong> key again.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">The image below shows you that I have<strong>\u00a0limited<\/strong>\u00a0the<strong>\u00a0number<\/strong> of connections to a given port over time.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4476\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-13.png\" alt=\"The limit of number of connections to a given port over time has set.\" width=\"700\" height=\"322\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-13.png 700w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-13-300x138.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-13-1024x471.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-13-767x353.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-13-1536x707.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-13-2048x942.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-13-326x150.png 326w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-13-100x46.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-13-761x350.png 761w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-13-788x362.png 788w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<hr \/>\n<p><span style=\"color: #000080; font-size: 18pt;\"><strong>Similar Readings<\/strong><\/span><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/ftp-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cftp\u201d Command in Linux [14 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/host-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201chost\u201d Command in Linux [10 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/scp-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cscp\u201d Command in Linux [4 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/sftp-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201csftp\u201d Command in Linux [6 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_7_Use_IPv6_With_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\"><\/span>Example 7: Use IPv6 With the \u201cufw\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">To ensure that <strong>UFW<\/strong>\u00a0is protecting both your <strong>IPv4<\/strong>\u00a0and <strong>IPv6<\/strong> connections on your Virtual Private Server (VPS), you can configure <strong>UFW <\/strong>to support <strong>IPv6<\/strong>. To accomplish this, edit the <strong>UFW <\/strong>configuration file using your desired text editor. Here, I will use the<strong>\u00a0nano text <\/strong>editor to configure the <strong>UFW configuration file<\/strong>. You can do the same by following the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a Open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b<strong>\u00a0<\/strong>Run the following command and provide your <strong>password<\/strong>.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo nano \/etc\/default\/ufw<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4477\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-14.png\" alt=\"Enable the edit mood of \/etc\/default\/ufw file using nano command.\" width=\"587\" height=\"58\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-14.png 587w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-14-300x30.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-14-1024x101.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-14-759x75.png 759w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-14-1536x152.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-14-2048x202.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-14-1518x150.png 1518w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-14-100x10.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-14-788x77.png 788w\" sizes=\"(max-width: 587px) 100vw, 587px\" \/>\u278c Tap the <strong>ENTER<\/strong>\u00a0button.<\/p>\n<p>\u278d Confirm that <strong>IPV6<\/strong>\u00a0is set to <strong>yes<\/strong><\/p>\n<p>\u278e Now, Save the change and take an exit.<\/p>\n<p>\u278f Restart your firewall by disabling it first with the following command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw disable<\/code><\/pre>\n<p>\u2790 Then, enable the firewall with the following command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw enable<\/code><\/pre>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">The following images show you how to configure the<strong>\u00a0UFW<\/strong>\u00a0to use<strong>\u00a0IPv6<\/strong>. The first image shows you the configuration of the<strong>\u00a0UFW configuration file<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4455\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-15.png\" alt=\"Showing the contents of \/etc\/default\/ufw file.\" width=\"825\" height=\"406\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-15.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-15-300x148.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-15-1024x504.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-15-766x377.png 766w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-15-1536x756.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-15-2048x1008.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-15-305x150.png 305w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-15-100x49.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-15-711x350.png 711w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-15-788x387.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/>And, The second one shows you the<strong>\u00a0disable <\/strong>and <strong>enable<\/strong>\u00a0processes.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4456\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-16.png\" alt=\"Showing the disable and enable process of ufw command in linux.\" width=\"646\" height=\"136\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-16.png 646w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-16-300x63.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-16-1024x216.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-16-765x161.png 765w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-16-1536x323.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-16-2048x431.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-16-713x150.png 713w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-16-100x21.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-16-1663x350.png 1663w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-16-788x165.png 788w\" sizes=\"(max-width: 646px) 100vw, 646px\" \/>Finally, your <strong>UFW <\/strong>is ready to handle both<strong>\u00a0IPv4 <\/strong>and<strong>\u00a0IPv6<\/strong>\u00a0configurations when needed.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_8_Securing_Web_Servers_Using_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\"><\/span>Example 8: Securing Web Servers Using the \u201cufw\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>ufw<\/strong>\u00a0(Uncomplicated Firewall) command is a tool for managing a <strong>firewall<\/strong>\u00a0on an <strong>Ubuntu Linux server<\/strong>. To secure a web server using<strong>\u00a0ufw<\/strong>, you can follow the steps mentioned below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a Open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b<strong>\u00a0<\/strong>Execute the following command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw enable<\/code><\/pre>\n<p>\u278c Press the <strong>ENTER<\/strong>\u00a0button.<\/p>\n<p>\u278d Type your<strong>\u00a0Password<\/strong>.<\/p>\n<p>\u278e Hit the<strong>\u00a0ENTER <\/strong>key.<\/p>\n<p>\u278f Allow incoming traffic on port<strong>\u00a080 <\/strong>(<strong>HTTP<\/strong>)\u00a0and port <strong>443<\/strong> (<strong>HTTPS<\/strong>), using the following commands<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw allow 80\/tcp<\/code><\/pre>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw allow 443\/tcp<\/code><\/pre>\n<p>\u2790 Tap the <strong>ENTER<\/strong> key.<\/p>\n<p>\u2791 Deny all incoming traffic by default using<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw default deny incoming<\/code><\/pre>\n<p>\u2792 Allow all outgoing traffic using the command<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw default allow outgoing<\/code><\/pre>\n<p>\u2793 Check the status of the firewall by executing the command below<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw status<\/code><\/pre>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see the full<strong>\u00a0process<\/strong>\u00a0to secure the <strong>web services<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4457\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-17.png\" alt=\"Showing the process to secure the web services.\" width=\"700\" height=\"653\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-17.png 700w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-17-300x280.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-17-1024x955.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-17-768x716.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-17-1536x1433.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-17-2048x1910.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-17-161x150.png 161w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-17-100x93.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-17-375x350.png 375w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-17-788x735.png 788w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/>However, always remember It is good practice to monitor the firewall log files to check for any unwanted traffic and to keep your system updated.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_9_Specifying_Port_Ranges_With_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\"><\/span>Example 9: Specifying Port Ranges With the \u201cufw\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The<strong>\u00a0ufw<\/strong>\u00a0command allows you to specify the<strong>\u00a0ranges of ports<\/strong>\u00a0to <strong>allow<\/strong>\u00a0or <strong>deny<\/strong>\u00a0with<strong>\u00a0UFW<\/strong>. To declare the range value you have to follow the format<strong>\u00a0Lower_range_value : Upper_range_value<\/strong>. You also have to specify the <strong>protocol name (tcp <\/strong>or<strong> udp)<\/strong>\u00a0that you want to apply. In the section below, I have demonstrated an example that you can follow to get the same result.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a Open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b<strong>\u00a0<\/strong>Run the command<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw allow 1000:2000\/tcp<\/code><\/pre>\n<p><strong><span style=\"color: #800080;\">Alternatively, <\/span><\/strong>you can run<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw allow 1000:2000\/udp<\/code><\/pre>\n<p>\u278c Tap the <strong>ENTER<\/strong>\u00a0button.<\/p>\n<p>\u278d Provide your<strong>\u00a0Password<\/strong>.<\/p>\n<p>\u278e Press the<strong>\u00a0ENTER <\/strong>key again.<\/p>\n<p>\u278f Now, you can check the status by the following command<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw status<\/code><\/pre>\n<p>\u2790 Hit the <strong>ENTER<\/strong> key.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the image below, you can see that I have specified the<strong>\u00a0port range<\/strong>\u00a0for the <strong>tcp<\/strong> protocol.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4458\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-18.png\" alt=\"The port range has specified for the tcp protocol.\" width=\"700\" height=\"453\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-18.png 700w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-18-300x194.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-18-1024x663.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-18-768x497.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-18-1536x994.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-18-2048x1325.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-18-232x150.png 232w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-18-100x65.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-18-541x350.png 541w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-18-788x509.png 788w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_10_Specifying_IP_Addresses_With_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\"><\/span>Example 10: Specifying IP Addresses With the \u201cufw\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">One of the features of<strong>\u00a0UFW <\/strong>is the ability to specify<strong>\u00a0IP <\/strong>addresses for <strong>firewall<\/strong>\u00a0rules. This means that you can <strong>allow<\/strong>\u00a0or <strong>deny<\/strong>\u00a0incoming traffic from specific<strong>\u00a0IP addresses<\/strong>\u00a0or ranges of <strong>IP<\/strong> addresses, providing more granular control over your<strong>\u00a0firewall <\/strong>and increasing the<strong>\u00a0security<\/strong>\u00a0of your<strong>\u00a0Linux<\/strong> system. In the following manner, You can specify an <strong>IP<\/strong>\u00a0address with the <strong>ufw<\/strong> command.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a Launch the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b<strong>\u00a0<\/strong>Execute the following command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw deny from 218.174.0.53<\/code><\/pre>\n<p>\u278c Press the <strong>ENTER<\/strong>\u00a0button.<\/p>\n<p>\u278d Type your<strong>\u00a0Password<\/strong>.<\/p>\n<p>\u278e Hit the<strong>\u00a0ENTER <\/strong>key.<\/p>\n<p>\u278fRun the following command<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw status numbered<\/code><\/pre>\n<p>\u2790 Tap the <strong>ENTER<\/strong>\u00a0key.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">The image below shows you that incoming <strong>traffic <\/strong>from the <strong>specified IP<\/strong> (218.174.0.53) address has been denied by the firewall.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4459\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-19.png\" alt=\"Showing that the incoming traffic from the specified IP (218.174.0.53) address has been denied by the firewall.\" width=\"700\" height=\"431\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-19.png 700w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-19-300x185.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-19-1024x630.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-19-767x472.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-19-1536x946.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-19-2048x1261.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-19-244x150.png 244w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-19-100x62.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-19-568x350.png 568w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-19-788x485.png 788w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<hr \/>\n<p><span style=\"color: #000080; font-size: 18pt;\"><strong>Similar Readings<\/strong><\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><strong><a href=\"https:\/\/linuxsimply.com\/traceroute-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201ctraceroute\u201d Command in Linux [13 Practical Examples]<\/a><\/strong><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><strong><a href=\"https:\/\/linuxsimply.com\/rsync-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201crsync\u201d Command in Linux [10 Practical Examples]<\/a><\/strong><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><strong><a href=\"https:\/\/linuxsimply.com\/screen-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cscreen\u201d Command in Linux [13 Practical Examples]<\/a><\/strong><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><strong><a href=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201carp\u201d Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_11_Deleting_Rules_Using_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\"><\/span>Example 11: Deleting Rules Using the \u201cufw\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The deleting process of the existing rules is simple using the <strong>ufw<\/strong> command in <strong>Linux<\/strong>. For deleting any rules you have to know the current number of the rule in <strong>ufw<\/strong> status. Then, you will be able to delete that rule by executing the \u201c<strong>sudo ufw delete [rule_number]<\/strong>&#8221; command. Here, I will show you how to delete a rule. You will able to do the same by following the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b<strong>\u00a0<\/strong>Run the following command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw status numbered<\/code><\/pre>\n<p>\u278c Tap the <strong>ENTER<\/strong>\u00a0button.<\/p>\n<p>\u278d Provide your<strong>\u00a0Password<\/strong>.<\/p>\n<p>\u278e Press the<strong>\u00a0ENTER <\/strong>key again.<\/p>\n<p style=\"text-align: justify;\">You will get the list of rules with their serial numbers, as shown in the image below.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4460\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-20.png\" alt=\"Showing the list of rules with their serial numbers.\" width=\"700\" height=\"391\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-20.png 700w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-20-300x168.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-20-1024x572.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-20-766x428.png 766w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-20-1536x858.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-20-2048x1144.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-20-269x150.png 269w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-20-100x56.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-20-627x350.png 627w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-20-788x440.png 788w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/>\u278f To delete any rule, let the rule \u201c<strong>5<\/strong>\u201d in this case, use the command below.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw delete 5<\/code><\/pre>\n<p>\u2790 Hit the ENTER key.<\/p>\n<p>\u2791 Press \u201c<strong>Y<\/strong>\u201d to proceed with the delete operation.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the image below, you can see that rule no <strong>\u201c5\u201d<\/strong> has been deleted.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4461\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-21.png\" alt=\"Showing that the rule no 5 has been deleted.\" width=\"615\" height=\"165\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-21.png 615w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-21-300x80.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-21-1024x275.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-21-768x206.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-21-1536x412.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-21-2048x549.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-21-559x150.png 559w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-21-100x27.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-21-1305x350.png 1305w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-21-788x211.png 788w\" sizes=\"(max-width: 615px) 100vw, 615px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_12_Resetting_Default_Settings_for_the_%E2%80%9Cufw%E2%80%9D_Command_in_Linux\"><\/span>Example 12: Resetting Default Settings for the \u201cufw\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>ufw<\/strong>\u00a0(Uncomplicated Firewall) command allows you to <strong>reset<\/strong>\u00a0your cloud server&#8217;s <strong>firewall rules<\/strong>\u00a0back to their <strong>default settings<\/strong>\u00a0using the command &#8220;<strong>sudo ufw reset<\/strong>&#8220;. Now, You can follow the following steps to reset the default settings.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a Open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Now, Run the command<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo ufw reset<\/code><\/pre>\n<p>\u278c Tap the <strong>ENTER<\/strong>\u00a0button.<\/p>\n<p>\u278d Then, provide your<strong>\u00a0Password<\/strong>.<\/p>\n<p>\u278e Press the<strong>\u00a0ENTER <\/strong>key again.<\/p>\n<p>\u278f Now, press \u2018<strong>Y<\/strong>\u2019<\/p>\n<p>\u2790 Hit the <strong>ENTER<\/strong> key.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">You can see in the image below that all rules have been set to default.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4462\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-22.png\" alt=\"All the rules are reset using ufw command in inux.\" width=\"825\" height=\"213\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-22.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-22-300x77.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-22-1024x264.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-22-767x198.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-22-1536x397.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-22-2048x529.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-22-581x150.png 581w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-22-100x26.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-22-1356x350.png 1356w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux-22-788x203.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">In this article, I&#8217;ve discussed the <strong>ufw <\/strong>command, which is useful to <strong>configure<\/strong>,<strong>\u00a0enable<\/strong>, <strong>disable<\/strong>\u00a0and <strong>check<\/strong>\u00a0the <strong>status<\/strong>\u00a0of the <strong>firewall.<\/strong>\u00a0 Additionally, I have explained its <strong>options<\/strong> with some relevant examples. Clearly, you should now have a better understanding of the <strong>ufw<\/strong> command and how to use it. In conclusion, This article will make it easier for you to become skilled in using the <strong>Linux command line<\/strong>.<\/p>\n<hr \/>\n<p><span style=\"color: #000080; font-size: 18pt;\"><strong>Similar Readings<\/strong><\/span><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/wget-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cwget\u201d Command in Linux [14 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/ping-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cping\u201d Command in Linux [9 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/curl-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201ccurl\u201d Command in Linux [9 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/dig-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201c dig\u201d Command in Linux [10 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/hostname-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201chostname\u201d Command in Linux [12 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/ip-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cip\u201d Command in Linux [9+ Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/ifconfig-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cifconfig\u201d Command in Linux [6+ Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;4447&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;The \u201cufw\u201d Command in Linux [12+ Practical Examples]&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\">Rate this post<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>The ufw (Uncomplicated FireWall) is a firewall management tool for Linux systems that is used to configure and manage the &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"The \u201cufw\u201d Command in Linux [12+ Practical Examples]\" class=\"read-more button\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#more-4447\" aria-label=\"Read more about The \u201cufw\u201d Command in Linux [12+ Practical Examples]\">Read more<\/a><\/p>\n","protected":false},"author":314892,"featured_media":4463,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[53],"class_list":["post-4447","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-commands","tag-networking-commands","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The \u201cufw\u201d Command in Linux [12+ Practical Examples]<\/title>\n<meta name=\"description\" content=\"The ufw command in Linux is a user-friendly firewall management tool for configuring and managing the built-in Linux kernel firewall.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The \u201cufw\u201d Command in Linux [12+ Practical Examples]\" \/>\n<meta property=\"og:description\" content=\"The ufw command in Linux is a user-friendly firewall management tool for configuring and managing the built-in Linux kernel firewall.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxSimply\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-25T03:35:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-31T03:54:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"S. M. Amdadul Islam\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"S. M. Amdadul Islam\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"17 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/ufw-command-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/ufw-command-in-linux\\\/\"},\"author\":{\"name\":\"S. M. Amdadul Islam\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/d0ccfa2e6c3bddb8ae34898f9d45b4ee\"},\"headline\":\"The \u201cufw\u201d Command in Linux [12+ Practical Examples]\",\"datePublished\":\"2023-01-25T03:35:42+00:00\",\"dateModified\":\"2023-08-31T03:54:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/ufw-command-in-linux\\\/\"},\"wordCount\":2768,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/ufw-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/ufw-command-in-linux.png\",\"keywords\":[\"networking commands\"],\"articleSection\":[\"Linux Commands\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/ufw-command-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/ufw-command-in-linux\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/ufw-command-in-linux\\\/\",\"name\":\"The \u201cufw\u201d Command in Linux [12+ Practical Examples]\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/ufw-command-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/ufw-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/ufw-command-in-linux.png\",\"datePublished\":\"2023-01-25T03:35:42+00:00\",\"dateModified\":\"2023-08-31T03:54:27+00:00\",\"description\":\"The ufw command in Linux is a user-friendly firewall management tool for configuring and managing the built-in Linux kernel firewall.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/ufw-command-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/ufw-command-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/ufw-command-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/ufw-command-in-linux.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/ufw-command-in-linux.png\",\"width\":400,\"height\":400,\"caption\":\"ufw command in Linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/ufw-command-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxsimply.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The \u201cufw\u201d Command in Linux [12+ Practical Examples]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"name\":\"LinuxSimply\",\"description\":\"All About Linux\",\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxsimply.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\",\"name\":\"LinuxSimply\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"width\":355,\"height\":48,\"caption\":\"LinuxSimply\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/d0ccfa2e6c3bddb8ae34898f9d45b4ee\",\"name\":\"S. M. Amdadul Islam\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/S.-M.-Amdadul-Islam-II-96x96.png\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/S.-M.-Amdadul-Islam-II-96x96.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/S.-M.-Amdadul-Islam-II-96x96.png\",\"caption\":\"S. M. Amdadul Islam\"},\"description\":\"Hello everyone. I am S. M. Amdadul Islam, currently working as a Linux Content Developer Executive at SOFTEKO. I am a Naval Architecture and Marine Engineering (NAME) graduate from the Bangladesh University of Engineering and Technology. In addition to my regular work, I enjoy watching Youtube, discovering new things, gossiping with friends, visiting new places, and taking photos of landscapes. Read Full Bio\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/amdadul-islam\"],\"url\":\"https:\\\/\\\/linuxsimply.com\\\/author\\\/amdad\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The \u201cufw\u201d Command in Linux [12+ Practical Examples]","description":"The ufw command in Linux is a user-friendly firewall management tool for configuring and managing the built-in Linux kernel firewall.","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:\/\/linuxsimply.com\/ufw-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"The \u201cufw\u201d Command in Linux [12+ Practical Examples]","og_description":"The ufw command in Linux is a user-friendly firewall management tool for configuring and managing the built-in Linux kernel firewall.","og_url":"https:\/\/linuxsimply.com\/ufw-command-in-linux\/","og_site_name":"LinuxSimply","article_published_time":"2023-01-25T03:35:42+00:00","article_modified_time":"2023-08-31T03:54:27+00:00","og_image":[{"width":400,"height":400,"url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux.png","type":"image\/png"}],"author":"S. M. Amdadul Islam","twitter_card":"summary_large_image","twitter_misc":{"Written by":"S. M. Amdadul Islam","Est. reading time":"17 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/linuxsimply.com\/ufw-command-in-linux\/"},"author":{"name":"S. M. Amdadul Islam","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/d0ccfa2e6c3bddb8ae34898f9d45b4ee"},"headline":"The \u201cufw\u201d Command in Linux [12+ Practical Examples]","datePublished":"2023-01-25T03:35:42+00:00","dateModified":"2023-08-31T03:54:27+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxsimply.com\/ufw-command-in-linux\/"},"wordCount":2768,"commentCount":0,"publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"image":{"@id":"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux.png","keywords":["networking commands"],"articleSection":["Linux Commands"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxsimply.com\/ufw-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxsimply.com\/ufw-command-in-linux\/","url":"https:\/\/linuxsimply.com\/ufw-command-in-linux\/","name":"The \u201cufw\u201d Command in Linux [12+ Practical Examples]","isPartOf":{"@id":"https:\/\/linuxsimply.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux.png","datePublished":"2023-01-25T03:35:42+00:00","dateModified":"2023-08-31T03:54:27+00:00","description":"The ufw command in Linux is a user-friendly firewall management tool for configuring and managing the built-in Linux kernel firewall.","breadcrumb":{"@id":"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxsimply.com\/ufw-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#primaryimage","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/ufw-command-in-linux.png","width":400,"height":400,"caption":"ufw command in Linux"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxsimply.com\/ufw-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxsimply.com\/"},{"@type":"ListItem","position":2,"name":"The \u201cufw\u201d Command in Linux [12+ Practical Examples]"}]},{"@type":"WebSite","@id":"https:\/\/linuxsimply.com\/#website","url":"https:\/\/linuxsimply.com\/","name":"LinuxSimply","description":"All About Linux","publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxsimply.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/linuxsimply.com\/#organization","name":"LinuxSimply","url":"https:\/\/linuxsimply.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","width":355,"height":48,"caption":"LinuxSimply"},"image":{"@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/d0ccfa2e6c3bddb8ae34898f9d45b4ee","name":"S. M. Amdadul Islam","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/S.-M.-Amdadul-Islam-II-96x96.png","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/S.-M.-Amdadul-Islam-II-96x96.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/S.-M.-Amdadul-Islam-II-96x96.png","caption":"S. M. Amdadul Islam"},"description":"Hello everyone. I am S. M. Amdadul Islam, currently working as a Linux Content Developer Executive at SOFTEKO. I am a Naval Architecture and Marine Engineering (NAME) graduate from the Bangladesh University of Engineering and Technology. In addition to my regular work, I enjoy watching Youtube, discovering new things, gossiping with friends, visiting new places, and taking photos of landscapes. Read Full Bio","sameAs":["https:\/\/www.linkedin.com\/in\/amdadul-islam"],"url":"https:\/\/linuxsimply.com\/author\/amdad\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/4447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/users\/314892"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/comments?post=4447"}],"version-history":[{"count":0,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/4447\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media\/4463"}],"wp:attachment":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media?parent=4447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/categories?post=4447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/tags?post=4447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}