{"id":834,"date":"2025-01-14T18:05:23","date_gmt":"2025-01-14T18:05:23","guid":{"rendered":"https:\/\/gratisvps.net\/blog\/?p=834"},"modified":"2025-01-14T18:05:23","modified_gmt":"2025-01-14T18:05:23","slug":"how-to-install-ufw-properly-on-a-vps","status":"publish","type":"post","link":"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/","title":{"rendered":"How to Install UFW Properly on a VPS"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 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 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#How_to_Install_UFW_Properly_on_a_VPS\" >How to Install UFW Properly on a VPS<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#Introduction\" >Introduction<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#Step_1_Update_Your_System\" >Step 1: Update Your System<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#Step_2_Install_UFW_%E2%80%93_How_to_Install_UFW_Properly_on_a_VPS\" >Step 2: Install UFW &#8211; How to Install UFW Properly on a VPS<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#Step_3_Understanding_UFW_Basics\" >Step 3: Understanding UFW Basics<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#Step_4_Configuring_UFW\" >Step 4: Configuring UFW<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#Step_5_Enabling_UFW\" >Step 5: Enabling UFW<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#Step_6_Checking_UFW_Status\" >Step 6: Checking UFW Status<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#Step_7_Advanced_UFW_Configuration\" >Step 7: Advanced UFW Configuration<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#Step_8_Troubleshooting_Common_Issues\" >Step 8: Troubleshooting Common Issues<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#Step_9_UFW_and_Application_Integration\" >Step 9: UFW and Application Integration<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#FAQ\" >FAQ<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#Additional_Tips\" >Additional Tips<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"How_to_Install_UFW_Properly_on_a_VPS\"><\/span>How to Install UFW Properly on a VPS<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n<h4 id=\"introduction\"><span class=\"ez-toc-section\" id=\"Introduction\"><\/span>Introduction<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>How to Install UFW Properly on a VPS. Uncomplicated Firewall, is a front-end for iptables designed to make managing a firewall easier. It provides a command-line interface for managing firewall rules, making it simpler for users to enhance their server security. This guide will walk you through the entire installation process, configuration, and management of UFW on your VPS.<\/p>\n<hr \/>\n<h4 id=\"prerequisites\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Before you start, ensure you have:<\/p>\n<ul>\n<li>A VPS running a compatible Linux distribution (most commonly Ubuntu or <a href=\"https:\/\/www.debian.org\/\">Debian<\/a>).<\/li>\n<li>Root access or a user with sudo privileges.<\/li>\n<li>Basic familiarity with the command line interface (CLI).<\/li>\n<\/ul>\n<hr \/>\n<h4 id=\"step-1-update-your-system\"><span class=\"ez-toc-section\" id=\"Step_1_Update_Your_System\"><\/span>Step 1: Update Your System<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Keeping your system updated is crucial for <a href=\"https:\/\/gratisvps.net\/blog\/securing-your-vps-advanced-tutorial\/\">security<\/a> and performance. Before installing UFW, run the following commands to update your package lists and upgrade installed packages:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo apt update  \r\nsudo apt upgrade -y<\/code><\/pre>\n<p><strong>Explanation:<\/strong><\/p>\n<ul>\n<li><code>apt update<\/code>: Updates the local package index with the latest available versions.<\/li>\n<li><code>apt upgrade -y<\/code>: Installs the latest versions of all packages currently installed on your system.<\/li>\n<\/ul>\n<hr \/>\n<h4 id=\"step-2-install-ufw\"><span class=\"ez-toc-section\" id=\"Step_2_Install_UFW_%E2%80%93_How_to_Install_UFW_Properly_on_a_VPS\"><\/span>Step 2: Install UFW &#8211; How to Install UFW Properly on a VPS<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>UFW is available in the default repositories of most Linux distributions. Install it by running:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo apt install ufw -y<\/code><\/pre>\n<p><strong>Verify Installation:<\/strong><br \/>\nAfter installation, verify UFW is installed correctly by checking its version:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">ufw --version<\/code><\/pre>\n<p>This command should return the installed UFW version, confirming a successful installation.<\/p>\n<hr \/>\n<h4 id=\"step-3-understanding-ufw-basics\"><span class=\"ez-toc-section\" id=\"Step_3_Understanding_UFW_Basics\"><\/span>Step 3: Understanding UFW Basics<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Before diving into configuration, it\u2019s essential to understand some UFW terminology:<\/p>\n<ul>\n<li><strong>Rules<\/strong>: Commands that allow or deny traffic.<\/li>\n<li><strong>Policies<\/strong>: Default behaviors for incoming and outgoing traffic.<\/li>\n<\/ul>\n<p><strong>Default Policies:<\/strong><\/p>\n<ul>\n<li><strong>Incoming Traffic<\/strong>: Deny by default (this helps prevent unauthorized access).<\/li>\n<li><strong>Outgoing Traffic<\/strong>: Allow by default (this enables your server to communicate freely).<\/li>\n<\/ul>\n<p>You can view the default policies with:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo ufw status verbose<\/code><\/pre>\n<hr \/>\n<h4 id=\"step-4-configuring-ufw\"><span class=\"ez-toc-section\" id=\"Step_4_Configuring_UFW\"><\/span>Step 4: Configuring UFW<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>The first rule to implement is allowing SSH connections to ensure you don\u2019t lock yourself out of your server. Run the following command:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo ufw allow OpenSSH<\/code><\/pre>\n<p><strong>Common Rules:<\/strong><\/p>\n<ul>\n<li><strong>Allow HTTP (port 80)<\/strong>:\u00a0<code>bash sudo ufw allow 80\/tcp<\/code><\/li>\n<li><strong>Allow HTTPS (port 443)<\/strong>:\u00a0<code>bash sudo ufw allow 443\/tcp<\/code><\/li>\n<li><strong>Allow specific services (like Nginx or Apache)<\/strong>:\u00a0<code>bash sudo ufw allow 'Nginx Full'<\/code><\/li>\n<\/ul>\n<p><strong>Managing Rules:<\/strong><\/p>\n<ul>\n<li><strong>List Currently Allowed Rules<\/strong>:\u00a0<code>bash sudo ufw status<\/code><\/li>\n<li><strong>Remove a Rule<\/strong>: To delete a previously set rule:\u00a0<code>bash sudo ufw delete allow 80\/tcp<\/code><\/li>\n<\/ul>\n<hr \/>\n<h4 id=\"step-5-enabling-ufw\"><span class=\"ez-toc-section\" id=\"Step_5_Enabling_UFW\"><\/span>Step 5: Enabling UFW<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>After configuring your rules, you can enable UFW:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo ufw <span class=\"hljs-built_in\">enable<\/span><\/code><\/pre>\n<p><strong>What Happens When UFW is Enabled?<\/strong><br \/>\nOnce enabled, UFW will enforce the rules you\u2019ve set, blocking all incoming connections by default unless explicitly allowed.<\/p>\n<hr \/>\n<h4 id=\"step-6-checking-ufw-status\"><span class=\"ez-toc-section\" id=\"Step_6_Checking_UFW_Status\"><\/span>Step 6: Checking UFW Status<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To verify that UFW is functioning as expected, check its status:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo ufw status verbose<\/code><\/pre>\n<p>This command will display detailed information about the active rules and the status of the firewall.<\/p>\n<hr \/>\n<h4 id=\"step-7-advanced-ufw-configuration\"><span class=\"ez-toc-section\" id=\"Step_7_Advanced_UFW_Configuration\"><\/span>Step 7: Advanced UFW Configuration<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>For more advanced configurations, you might consider the following options:<\/p>\n<ul>\n<li><strong>Allow Specific IP Addresses<\/strong>: If you want to allow a specific IP to access your server:\u00a0<code>bash sudo ufw allow from 192.168.1.100<\/code><\/li>\n<li><strong>Rate Limiting SSH<\/strong>: To prevent brute force attacks on your SSH port:\u00a0<code>bash sudo ufw limit OpenSSH<\/code><\/li>\n<li><strong>Logging UFW Activity<\/strong>: Enable logging to monitor what\u2019s being blocked or allowed:\u00a0<code>bash sudo ufw logging on<\/code><\/li>\n<\/ul>\n<p>Logs can usually be found in\u00a0<code>\/var\/log\/ufw.log<\/code>.<\/p>\n<hr \/>\n<h4 id=\"step-8-troubleshooting-common-issues\"><span class=\"ez-toc-section\" id=\"Step_8_Troubleshooting_Common_Issues\"><\/span>Step 8: Troubleshooting Common Issues<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>If you accidentally lock yourself out after enabling UFW, you can disable it using:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo ufw <span class=\"hljs-built_in\">disable<\/span><\/code><\/pre>\n<p><strong>Resetting UFW<\/strong>: If you want to start fresh and remove all rules, run:<\/p>\n<pre><code class=\"lang-bash hljs language-bash\">sudo ufw reset<\/code><\/pre>\n<p>This command will wipe all settings and revert UFW to its default state.<\/p>\n<hr \/>\n<h4 id=\"step-9-ufw-and-application-integration\"><span class=\"ez-toc-section\" id=\"Step_9_UFW_and_Application_Integration\"><\/span>Step 9: UFW and Application Integration<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>UFW can be integrated with other applications:<\/p>\n<ul>\n<li><strong>Using UFW with Docker<\/strong>: Docker may interfere with UFW rules. If you run Docker, consider setting up UFW rules specifically for Docker containers. For example, you might need to allow traffic on Docker&#8217;s bridge network.<\/li>\n<li><strong>VPN Configuration<\/strong>: If you set up a VPN, ensure you allow the necessary ports for VPN traffic (commonly UDP 1194 for OpenVPN).<\/li>\n<\/ul>\n<hr \/>\n<h4 id=\"conclusion\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>By following these steps, you have successfully installed and configured UFW on your VPS.<br \/>\nHow to Install UFW Properly on a VPS. Implementing a firewall is a crucial step in securing your server, reducing the risk of unauthorized access and potential attacks.<br \/>\nRegularly review your firewall rules and keep your system updated to maintain security.<\/p>\n<hr \/>\n<h3 id=\"faq\"><span class=\"ez-toc-section\" id=\"FAQ\"><\/span>FAQ<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol start=\"1\">\n<li><strong>What is UFW?<\/strong>\n<ul>\n<li>UFW is a front-end for iptables, simplifying firewall management on Linux systems.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Is UFW installed by default on my VPS?<\/strong>\n<ul>\n<li>It varies by distribution; most do not include UFW by default but can be easily installed.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Can I use UFW with other firewalls?<\/strong>\n<ul>\n<li>It\u2019s best to use UFW as a standalone firewall to avoid conflicts with other firewall software.<\/li>\n<\/ul>\n<\/li>\n<li><strong>How do I disable UFW?<\/strong>\n<ul>\n<li>Use the command:\u00a0<code>bash sudo ufw disable<\/code><\/li>\n<\/ul>\n<\/li>\n<li><strong>How can I make sure I don\u2019t lock myself out?<\/strong>\n<ul>\n<li>Always allow SSH connections before enabling UFW, and consider testing in a separate terminal session.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Can I use UFW on a VPS with a control panel?<\/strong>\n<ul>\n<li>Yes, but ensure that the firewall settings from the control panel do not conflict with UFW.<\/li>\n<\/ul>\n<\/li>\n<li><strong>How do I delete a UFW rule?<\/strong>\n<ul>\n<li>Remove a rule with:\u00a0<code>bash sudo ufw delete allow [service\/port]<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<hr \/>\n<h3 id=\"additional-tips\"><span class=\"ez-toc-section\" id=\"Additional_Tips\"><\/span>Additional Tips<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li>Regularly review your UFW rules, especially after installing new applications.<\/li>\n<li>Always back up your server data before making significant changes.<\/li>\n<li>Consider using UFW with additional security tools like fail2ban to enhance protection against unauthorized access.<\/li>\n<\/ul>\n<p>This detailed guide should help you effectively install and manage UFW on your VPS, ensuring a robust level of security. If you need more specific examples or details on any section, let me know!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Install UFW Properly on a VPS Introduction How to Install UFW Properly on a VPS. Uncomplicated Firewall, is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":837,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[258,54],"class_list":["post-834","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-install-ufw","tag-vps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install UFW Properly on a VPS<\/title>\n<meta name=\"description\" content=\"How to Install UFW Properly on a VPS, Uncomplicated Firewall, is a front-end for iptables designed to make the firewall easier.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install UFW Properly on a VPS\" \/>\n<meta property=\"og:description\" content=\"How to Install UFW Properly on a VPS, Uncomplicated Firewall, is a front-end for iptables designed to make the firewall easier.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/\" \/>\n<meta property=\"og:site_name\" content=\"Free VPS Hosting Guides\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-14T18:05:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2025\/01\/install-ufw-vps.png\" \/>\n\t<meta property=\"og:image:width\" content=\"832\" \/>\n\t<meta property=\"og:image:height\" content=\"448\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"ariete\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ariete\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-ufw-properly-on-a-vps\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-ufw-properly-on-a-vps\\\/\"},\"author\":{\"name\":\"ariete\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/#\\\/schema\\\/person\\\/cddcf8cb5192d0713c19b79425c77fc4\"},\"headline\":\"How to Install UFW Properly on a VPS\",\"datePublished\":\"2025-01-14T18:05:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-ufw-properly-on-a-vps\\\/\"},\"wordCount\":841,\"publisher\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-ufw-properly-on-a-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/install-ufw-vps.png\",\"keywords\":[\"Install UFW\",\"vps\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-ufw-properly-on-a-vps\\\/\",\"url\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-ufw-properly-on-a-vps\\\/\",\"name\":\"How to Install UFW Properly on a VPS\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-ufw-properly-on-a-vps\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-ufw-properly-on-a-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/install-ufw-vps.png\",\"datePublished\":\"2025-01-14T18:05:23+00:00\",\"description\":\"How to Install UFW Properly on a VPS, Uncomplicated Firewall, is a front-end for iptables designed to make the firewall easier.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-ufw-properly-on-a-vps\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-ufw-properly-on-a-vps\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-ufw-properly-on-a-vps\\\/#primaryimage\",\"url\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/install-ufw-vps.png\",\"contentUrl\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/install-ufw-vps.png\",\"width\":832,\"height\":448,\"caption\":\"How to Install UFW Properly on a VPS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/how-to-install-ufw-properly-on-a-vps\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install UFW Properly on a VPS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/\",\"name\":\"Gratisvps.net | Blog Daily Tech Info\",\"description\":\"GratisVPS.NET\",\"publisher\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/#organization\",\"name\":\"Gratisvps.net | Blog Daily Tech Info\",\"url\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/logo.png\",\"width\":250,\"height\":67,\"caption\":\"Gratisvps.net | Blog Daily Tech Info\"},\"image\":{\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/#\\\/schema\\\/person\\\/cddcf8cb5192d0713c19b79425c77fc4\",\"name\":\"ariete\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b93881052caa63fd6b2fb5468a80afcf9f985a165c6d4de11a72cc4c0775f74a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b93881052caa63fd6b2fb5468a80afcf9f985a165c6d4de11a72cc4c0775f74a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b93881052caa63fd6b2fb5468a80afcf9f985a165c6d4de11a72cc4c0775f74a?s=96&d=mm&r=g\",\"caption\":\"ariete\"},\"sameAs\":[\"https:\\\/\\\/gratisvps.net\\\/blog\"],\"url\":\"https:\\\/\\\/gratisvps.net\\\/blog\\\/author\\\/ariete\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install UFW Properly on a VPS","description":"How to Install UFW Properly on a VPS, Uncomplicated Firewall, is a front-end for iptables designed to make the firewall easier.","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:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/","og_locale":"en_US","og_type":"article","og_title":"How to Install UFW Properly on a VPS","og_description":"How to Install UFW Properly on a VPS, Uncomplicated Firewall, is a front-end for iptables designed to make the firewall easier.","og_url":"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/","og_site_name":"Free VPS Hosting Guides","article_published_time":"2025-01-14T18:05:23+00:00","og_image":[{"width":832,"height":448,"url":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2025\/01\/install-ufw-vps.png","type":"image\/png"}],"author":"ariete","twitter_card":"summary_large_image","twitter_misc":{"Written by":"ariete","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#article","isPartOf":{"@id":"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/"},"author":{"name":"ariete","@id":"https:\/\/gratisvps.net\/blog\/#\/schema\/person\/cddcf8cb5192d0713c19b79425c77fc4"},"headline":"How to Install UFW Properly on a VPS","datePublished":"2025-01-14T18:05:23+00:00","mainEntityOfPage":{"@id":"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/"},"wordCount":841,"publisher":{"@id":"https:\/\/gratisvps.net\/blog\/#organization"},"image":{"@id":"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2025\/01\/install-ufw-vps.png","keywords":["Install UFW","vps"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/","url":"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/","name":"How to Install UFW Properly on a VPS","isPartOf":{"@id":"https:\/\/gratisvps.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#primaryimage"},"image":{"@id":"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2025\/01\/install-ufw-vps.png","datePublished":"2025-01-14T18:05:23+00:00","description":"How to Install UFW Properly on a VPS, Uncomplicated Firewall, is a front-end for iptables designed to make the firewall easier.","breadcrumb":{"@id":"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#primaryimage","url":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2025\/01\/install-ufw-vps.png","contentUrl":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2025\/01\/install-ufw-vps.png","width":832,"height":448,"caption":"How to Install UFW Properly on a VPS"},{"@type":"BreadcrumbList","@id":"https:\/\/gratisvps.net\/blog\/how-to-install-ufw-properly-on-a-vps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gratisvps.net\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install UFW Properly on a VPS"}]},{"@type":"WebSite","@id":"https:\/\/gratisvps.net\/blog\/#website","url":"https:\/\/gratisvps.net\/blog\/","name":"Gratisvps.net | Blog Daily Tech Info","description":"GratisVPS.NET","publisher":{"@id":"https:\/\/gratisvps.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gratisvps.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/gratisvps.net\/blog\/#organization","name":"Gratisvps.net | Blog Daily Tech Info","url":"https:\/\/gratisvps.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/gratisvps.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2024\/10\/logo.png","contentUrl":"https:\/\/gratisvps.net\/blog\/wp-content\/uploads\/2024\/10\/logo.png","width":250,"height":67,"caption":"Gratisvps.net | Blog Daily Tech Info"},"image":{"@id":"https:\/\/gratisvps.net\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/gratisvps.net\/blog\/#\/schema\/person\/cddcf8cb5192d0713c19b79425c77fc4","name":"ariete","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b93881052caa63fd6b2fb5468a80afcf9f985a165c6d4de11a72cc4c0775f74a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b93881052caa63fd6b2fb5468a80afcf9f985a165c6d4de11a72cc4c0775f74a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b93881052caa63fd6b2fb5468a80afcf9f985a165c6d4de11a72cc4c0775f74a?s=96&d=mm&r=g","caption":"ariete"},"sameAs":["https:\/\/gratisvps.net\/blog"],"url":"https:\/\/gratisvps.net\/blog\/author\/ariete\/"}]}},"_links":{"self":[{"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/posts\/834","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/comments?post=834"}],"version-history":[{"count":3,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/posts\/834\/revisions"}],"predecessor-version":[{"id":838,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/posts\/834\/revisions\/838"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/media\/837"}],"wp:attachment":[{"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/media?parent=834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/categories?post=834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gratisvps.net\/blog\/wp-json\/wp\/v2\/tags?post=834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}