{"id":14655,"date":"2025-07-07T04:55:37","date_gmt":"2025-07-07T04:55:37","guid":{"rendered":"https:\/\/greenwebpage.com\/community\/?p=14655"},"modified":"2025-07-07T04:55:41","modified_gmt":"2025-07-07T04:55:41","slug":"how-to-install-ufw-on-debian-12","status":"publish","type":"post","link":"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/","title":{"rendered":"How to Install UFW on Debian 12"},"content":{"rendered":"\n<p>Uncomplicated Firewall (UFW) is a command-line interface for manipulating iptables rules in a simplified and easy-to-understand way. One of the early tasks you should perform once Debian is installed is to secure your system\u2019s ports. Rather than using your classic iptables rules, you can use easy-to-remember ufw rules to set your firewall up. That\u2019s fantastic for new network experts and sysadmins who just want to get their Debian 12 systems secure ASAP.<\/p>\n\n\n\n<p>In this article, you will be able to follow steps for several ways to install UFW on Debian 12 to make sure you have an easy way of securing your system.<\/p>\n\n\n\n<p><strong>Table of Contents<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#How-to-Install-UFW-on-Debian-12\">How to Install UFW on Debian 12<\/a>\n<ul class=\"wp-block-list\">\n<li><a href=\"#Method-1:-Install-UFW-Using-APT-Package-Manager-(Recommended)\">Method 1: Install UFW Using APT Package Manager (Recommended)<\/a><\/li>\n\n\n\n<li><a href=\"#Method-2:-Install-UFW-from-Source-Code\">Method 2: Install UFW from Source Code<\/a><\/li>\n\n\n\n<li><a href=\"#Method-3:-Install-UFW-Using-Snap-Package-Manager\">Method 3: Install UFW Using Snap Package Manager<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"#Post-Installation-Configuration\">Post-Installation Configuration<\/a><\/li>\n\n\n\n<li><a href=\"#post-14655-_q432txjmsoa3\">How to Uninstall UFW on Debian 12<\/a><\/li>\n\n\n\n<li><a href=\"#post-14655-_uh8zirs1i5hf\">Troubleshooting Common Issues<\/a><\/li>\n\n\n\n<li><a href=\"#Conclusion\">Conclusion<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"How-to-Install-UFW-on-Debian-12\"><a id=\"post-14655-_9pxdvpqkpi2o\"><\/a>How to Install UFW on Debian 12<\/h2>\n\n\n\n<p>UFW is a good combination of function and ease of use and is the perfect choice to secure a Debian 12 system. For the case of one server or multiple systems, UFW provides a user-friendly way to manage your firewalls. If you are currently connected to your server via SSH, be careful about authorizing UFW rules, or you&#8217;ll end up locked out of your server.<\/p>\n\n\n\n<p>Let\u2019s follow the easiest method:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Method-1:-Install-UFW-Using-APT-Package-Manager-(Recommended)\"><a id=\"post-14655-_rv7u96go8cir\"><\/a>Method 1: Install UFW Using APT Package Manager (Recommended)<\/h3>\n\n\n\n<p>The easiest way to set up UFW on Debian 12 is by using the APT package manager since UFW is included in the official Debian repositories. APT leans on the official repositories for Debian so that UFW is downloaded securely and properly integrates with system dependencies.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-14655-_h2vg5wn3cjf5\"><\/a>Step 1: Update Package Lists<\/h4>\n\n\n\n<p>First, update the package list to get the latest versions of your repository:<\/p>\n\n\n\n<pre>sudo apt update<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1145\" height=\"364\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-1.png\" alt=\"sudo apt update\" class=\"wp-image-14656\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-1.png 1145w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-1-300x95.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-1-1024x326.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-1-768x244.png 768w\" sizes=\"(max-width: 1145px) 100vw, 1145px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-14655-_4hth2aoioz43\"><\/a>Step 2: Install UFW<\/h4>\n\n\n\n<p>First, install UFW through the apt command:<\/p>\n\n\n\n<pre>sudo apt install ufw<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1144\" height=\"671\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-2.png\" alt=\"sudo apt install ufw\" class=\"wp-image-14657\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-2.png 1144w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-2-300x176.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-2-1024x601.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-2-768x450.png 768w\" sizes=\"(max-width: 1144px) 100vw, 1144px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-14655-_3hgbfa5sorxx\"><\/a>Step 3: Verify Installation<\/h4>\n\n\n\n<p>Verify if UFW is correctly installed:<\/p>\n\n\n\n<pre>sudo ufw --version<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1143\" height=\"166\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-3.png\" alt=\"sudo ufw --version\" class=\"wp-image-14658\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-3.png 1143w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-3-300x44.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-3-1024x149.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-3-768x112.png 768w\" sizes=\"(max-width: 1143px) 100vw, 1143px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>An output like that should get written to your terminal.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-14655-_oze9y3ea4idl\"><\/a>Step 4: Check UFW Status<\/h4>\n\n\n\n<p>Check the status of UFW:<\/p>\n\n\n\n<pre>sudo ufw status<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1145\" height=\"142\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-4.png\" alt=\"sudo ufw status\" class=\"wp-image-14659\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-4.png 1145w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-4-300x37.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-4-1024x127.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-4-768x95.png 768w\" sizes=\"(max-width: 1145px) 100vw, 1145px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Initially, UFW will be inactive (disabled) after installation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Method-2:-Install-UFW-from-Source-Code\"><a id=\"post-14655-_wn5orioelg5\"><\/a>Method 2: Install UFW from Source Code<\/h3>\n\n\n\n<p>This method will install UFW directly from the source code. This is for users who prefer to install the latest development version or to customize the installation. For those who are more experienced and desire the newest features, or if you want to further customize the install, then you can compile UFW from source.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-14655-_dxl4fvfb8sxr\"><\/a>Step 1: Install Dependencies<\/h4>\n\n\n\n<p>Install the necessary build tools and stuff:<\/p>\n\n\n\n<pre>sudo apt update<\/pre>\n<pre>sudo apt install build-essential python3-dev python3-setuptools git<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1145\" height=\"466\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-5.png\" alt=\"sudo apt install build-essential python3-dev python3-setuptools git\" class=\"wp-image-14660\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-5.png 1145w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-5-300x122.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-5-1024x417.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-5-768x313.png 768w\" sizes=\"(max-width: 1145px) 100vw, 1145px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-14655-_ig34y9y110by\"><\/a>Step 2: Download UFW Source Code<\/h4>\n\n\n\n<p>First of all, clone the UFW repository or get the source code. Or you can also get the recent release through the UFW website:<\/p>\n\n\n\n<pre>git clone https:\/\/git.launchpad.net\/ufw<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1146\" height=\"336\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-6.png\" alt=\"git clone https:\/\/git.launchpad.net\/ufw\" class=\"wp-image-14661\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-6.png 1146w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-6-300x88.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-6-1024x300.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-6-768x225.png 768w\" sizes=\"(max-width: 1146px) 100vw, 1146px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-14655-_yqjahgw0tu6x\"><\/a>Step 3: Build and Install<\/h4>\n\n\n\n<p>Unzip ufw.zip and build\/install it from source:<\/p>\n\n\n\n<pre>cd ufw<\/pre>\n<pre>sudo python3 setup.py install<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1150\" height=\"495\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-7.png\" alt=\"sudo python3 setup.py install\" class=\"wp-image-14662\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-7.png 1150w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-7-300x129.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-7-1024x441.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-7-768x331.png 768w\" sizes=\"(max-width: 1150px) 100vw, 1150px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-14655-_bu8cuuohj8xf\"><\/a>Step 4: Set Up UFW<\/h4>\n\n\n\n<p>Then, after installation, set up the required directories and files:<\/p>\n\n\n\n<pre>sudo mkdir -p \/etc\/ufw<\/pre>\n<pre>sudo cp -r conf\/* \/etc\/ufw\/<\/pre>\n<pre>sudo chmod 644 \/etc\/ufw\/*<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1150\" height=\"226\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-8.png\" alt=\"sudo chmod 644 \/etc\/ufw\/*\" class=\"wp-image-14663\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-8.png 1150w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-8-300x59.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-8-1024x201.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-8-768x151.png 768w\" sizes=\"(max-width: 1150px) 100vw, 1150px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-14655-_ioyb3cgyyuv\"><\/a>Step 5: Verify Installation<\/h4>\n\n\n\n<p>Make sure UFW is installed:<\/p>\n\n\n\n<pre>ufw version<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1141\" height=\"172\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-9.png\" alt=\"ufw version\" class=\"wp-image-14664\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-9.png 1141w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-9-300x45.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-9-1024x154.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-9-768x116.png 768w\" sizes=\"(max-width: 1141px) 100vw, 1141px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Method-3:-Install-UFW-Using-Snap-Package-Manager\"><a id=\"post-14655-_53vp5tbopq6y\"><\/a>Method 3: Install UFW Using Snap Package Manager<\/h3>\n\n\n\n<p>And finally, this last method, which is probably my favorite, is to install the UFW via snap.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-14655-_ok7e72h6fddb\"><\/a>Step 1: Install Snapd (if not already installed)<\/h4>\n\n\n\n<p>Snap is another package manager that can be used to install UFW on Debian 12.<\/p>\n\n\n\n<pre>sudo apt install snapd<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1138\" height=\"264\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-10.png\" alt=\"sudo apt install snapd\" class=\"wp-image-14665\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-10.png 1138w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-10-300x70.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-10-1024x238.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-10-768x178.png 768w\" sizes=\"(max-width: 1138px) 100vw, 1138px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-14655-_x0t6kbx4q845\"><\/a>Step 2: Install UFW via Snap<\/h4>\n\n\n\n<p>After that, install ufw utility through the following command:<\/p>\n\n\n\n<pre>sudo snap install ufw<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1146\" height=\"124\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-11.png\" alt=\"sudo snap install ufw\" class=\"wp-image-14666\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-11.png 1146w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-11-300x32.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-11-1024x111.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-11-768x83.png 768w\" sizes=\"(max-width: 1146px) 100vw, 1146px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-14655-_711ppp3yyuy8\"><\/a>Step 3: Verify Installation<\/h4>\n\n\n\n<p>Finally, verify the installed version through the following line:<\/p>\n\n\n\n<pre>sudo ufw --version<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1144\" height=\"168\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-12.png\" alt=\"sudo ufw --version\" class=\"wp-image-14667\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-12.png 1144w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-12-300x44.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-12-1024x150.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-12-768x113.png 768w\" sizes=\"(max-width: 1144px) 100vw, 1144px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Snap UFW may behave slightly differently from APT UFW.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Post-Installation-Configuration\"><a id=\"post-14655-_l91hneobt2gk\"><\/a>Post-Installation Configuration<\/h2>\n\n\n\n<p>Once you have the UFW installed with any of the above methods, you\u2019ll want to configure it correctly:<\/p>\n\n\n\n<p>Now that you have UFW on your system, set it up with these few simple commands:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-14655-_g31fdmxheim9\"><\/a>Enable UFW<\/h3>\n\n\n\n<p>Now, enable the utility with sudo privileges:<\/p>\n\n\n\n<pre>sudo ufw enable<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1148\" height=\"138\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-13.png\" alt=\"sudo ufw enable\" class=\"wp-image-14668\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-13.png 1148w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-13-300x36.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-13-1024x123.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-13-768x92.png 768w\" sizes=\"(max-width: 1148px) 100vw, 1148px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-14655-_uhfgnaa3lbio\"><\/a>Set Default Policies<\/h3>\n\n\n\n<p>Set up the default policies (recommended for most users):<\/p>\n\n\n\n<pre>sudo ufw default deny incoming<\/pre>\n<pre>sudo ufw default allow outgoing<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1140\" height=\"294\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-14.png\" alt=\"sudo ufw default allow outgoing\" class=\"wp-image-14669\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-14.png 1140w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-14-300x77.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-14-1024x264.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-14-768x198.png 768w\" sizes=\"(max-width: 1140px) 100vw, 1140px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-14655-_1bj1s5pu1k48\"><\/a>Allow SSH (Important for Remote Access)<\/h3>\n\n\n\n<p>If you want to be able to use SSH for possible remote access, you must allow it before turning on UFW:<\/p>\n\n\n\n<pre>sudo ufw allow ssh<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1150\" height=\"168\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-15.png\" alt=\"sudo ufw allow ssh\" class=\"wp-image-14670\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-15.png 1150w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-15-300x44.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-15-1024x150.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-15-768x112.png 768w\" sizes=\"(max-width: 1150px) 100vw, 1150px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Or allow a specific SSH port:<\/p>\n\n\n\n<pre>sudo ufw allow 22\/tcp<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1142\" height=\"168\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-16.png\" alt=\"sudo ufw allow 22\/tcp\" class=\"wp-image-14671\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-16.png 1142w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-16-300x44.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-16-1024x151.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-16-768x113.png 768w\" sizes=\"(max-width: 1142px) 100vw, 1142px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-14655-_x38w76ppwn47\"><\/a>Check UFW Status<\/h3>\n\n\n\n<p>Verify your UFW configuration:<\/p>\n\n\n\n<pre>sudo ufw status verbose<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1145\" height=\"760\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-17.png\" alt=\"sudo ufw status verbose\" class=\"wp-image-14672\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-17.png 1145w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-17-300x199.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-17-1024x680.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-17-768x510.png 768w\" sizes=\"(max-width: 1145px) 100vw, 1145px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"How-to-Uninstall-UFW-on-Debian-12\"><a id=\"post-14655-_q432txjmsoa3\"><\/a>How to Uninstall UFW on Debian 12?<\/h2>\n\n\n\n<p>If you need to remove UFW:<\/p>\n\n\n\n<pre>sudo apt remove ufw<\/pre>\n\n\n\n<p>To also remove configuration files:<\/p>\n\n\n\n<pre>sudo apt purge ufw<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Troubleshooting-Common-Issues\"><a id=\"post-14655-_uh8zirs1i5hf\"><\/a>Troubleshooting Common Issues<\/h2>\n\n\n\n<p>For more advanced setups and cool UFW features, see the official UFW documentation and carefully consider your security needs when opening firewall ports. Let\u2019s follow some common issues:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-14655-_mgst7zsnsbps\"><\/a>Issue 1: UFW Command Not Found<\/h3>\n\n\n\n<p>If you are on a VPS and running UFW and your UFW command is simply not being found, the server&#8217;s firewall paint may be beginning to chip.<\/p>\n\n\n\n<p>If you get \u201ccommand not found,\u201d then make sure that UFW is installed, and your PATH is set up correctly:<\/p>\n\n\n\n<pre>which ufw<\/pre>\n<pre>echo $PATH<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1150\" height=\"202\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-18.png\" alt=\"echo $PATH\" class=\"wp-image-14673\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-18.png 1150w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-18-300x53.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-18-1024x180.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-18-768x135.png 768w\" sizes=\"(max-width: 1150px) 100vw, 1150px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-14655-_tk5azpnaf6fr\"><\/a>Issue 2: Permission Denied<\/h3>\n\n\n\n<p>You should be using sudo while giving commands to UFW:<\/p>\n\n\n\n<pre>sudo ufw status<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1150\" height=\"651\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-19.png\" alt=\"sudo ufw status\" class=\"wp-image-14674\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-19.png 1150w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-19-300x170.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-19-1024x580.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-19-768x435.png 768w\" sizes=\"(max-width: 1150px) 100vw, 1150px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-14655-_kjjant18jh77\"><\/a>Issue 3: SSH Access Lost<\/h3>\n\n\n\n<p>If you lose SSH, physically access the server to turn off UFW:<\/p>\n\n\n\n<pre>sudo ufw disable<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-14655-_je67uw2zviwv\"><\/a>Issue 4: UFW Not Starting at Boot<\/h3>\n\n\n\n<p>Allow UFW service at boot time:<\/p>\n\n\n\n<pre>sudo systemctl enable ufw<\/pre>\n<pre>sudo systemctl start ufw<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1148\" height=\"263\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-20.png\" alt=\"sudo systemctl start ufw\" class=\"wp-image-14675\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-20.png 1148w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-20-300x69.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-20-1024x235.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/word-image-14655-20-768x176.png 768w\" sizes=\"(max-width: 1148px) 100vw, 1148px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-14655-_s11ukru4glpr\"><\/a>Best Practices for UFW on Debian 12<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Always allow SSH before enabling UFW if you&#8217;re working remotely<\/li>\n\n\n\n<li>Test your rules before applying them to production systems<\/li>\n\n\n\n<li>Keep logs enabled for monitoring: sudo ufw logging on<\/li>\n\n\n\n<li>Regularly review your rules: sudo ufw status numbered<\/li>\n\n\n\n<li>Use specific port numbers instead of service names when possible<\/li>\n\n\n\n<li>Document your firewall rules for future reference<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Conclusion\"><a id=\"post-14655-_k27rslxlxp27\"><\/a>Conclusion<\/h2>\n\n\n\n<p>To install UFW (Uncomplicated Firewall) on Debian 12, you can use the apt package manager. First, update your package lists, then install the ufw package. You can easily install UFW on your Debian 12 server; there are a few ways to achieve it. APT package manager is my recommendation for anybody, basically because it&#8217;s straightforward and fits the Debian package system. Once installed, ensure that you properly configure the UFW and add rules to DISALLOW ALL traffic through it.<\/p>\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>Uncomplicated Firewall (UFW) is a command-line interface for manipulating iptables rules in a simplified and easy-to-understand way. One of the early tasks you should perform once Debian is installed is to secure your system\u2019s ports. Rather than using your classic iptables rules, you can use easy-to-remember ufw rules to set your firewall up. That\u2019s fantastic [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":14678,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39,43],"tags":[297,284,225,718],"class_list":["post-14655","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security","category-tutorials","tag-debian-12","tag-firewall","tag-ufw","tag-uncomplicated-firewall"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Install UFW on Debian 12 - Greenwebpage Community<\/title>\n<meta name=\"description\" content=\"In this tutorial, we will walk you through several ways to install UFW (Uncomplicated Firewall) on Debian 12. Learn more!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/\" \/>\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 on Debian 12 - Greenwebpage Community\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we will walk you through several ways to install UFW (Uncomplicated Firewall) on Debian 12. Learn more!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/\" \/>\n<meta property=\"og:site_name\" content=\"Greenwebpage Community\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-07T04:55:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-07T04:55:41+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/HOW-TO-INSTALL-UFW-on-DEBIAN-12.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Karim Buzdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Karim Buzdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/\"},\"author\":{\"name\":\"Karim Buzdar\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\"},\"headline\":\"How to Install UFW on Debian 12\",\"datePublished\":\"2025-07-07T04:55:37+00:00\",\"dateModified\":\"2025-07-07T04:55:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/\"},\"wordCount\":938,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/HOW-TO-INSTALL-UFW-on-DEBIAN-12.jpg\",\"keywords\":[\"Debian 12\",\"Firewall\",\"UFW\",\"Uncomplicated Firewall\"],\"articleSection\":[\"Security\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/\",\"name\":\"How to Install UFW on Debian 12 - Greenwebpage Community\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/HOW-TO-INSTALL-UFW-on-DEBIAN-12.jpg\",\"datePublished\":\"2025-07-07T04:55:37+00:00\",\"dateModified\":\"2025-07-07T04:55:41+00:00\",\"description\":\"In this tutorial, we will walk you through several ways to install UFW (Uncomplicated Firewall) on Debian 12. Learn more!\",\"breadcrumb\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/#primaryimage\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/HOW-TO-INSTALL-UFW-on-DEBIAN-12.jpg\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/HOW-TO-INSTALL-UFW-on-DEBIAN-12.jpg\",\"width\":1020,\"height\":600,\"caption\":\"HOW TO INSTALL UFW on DEBIAN 12\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greenwebpage.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install UFW on Debian 12\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"name\":\"Greenwebpage Community\",\"description\":\"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.\",\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greenwebpage.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\",\"name\":\"Greenwebpage Community\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"width\":512,\"height\":512,\"caption\":\"Greenwebpage Community\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\",\"name\":\"Karim Buzdar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"caption\":\"Karim Buzdar\"},\"sameAs\":[\"https:\/\/greenwebpage.com\"],\"url\":\"https:\/\/greenwebpage.com\/community\/author\/karim\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install UFW on Debian 12 - Greenwebpage Community","description":"In this tutorial, we will walk you through several ways to install UFW (Uncomplicated Firewall) on Debian 12. Learn more!","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:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/","og_locale":"en_US","og_type":"article","og_title":"How to Install UFW on Debian 12 - Greenwebpage Community","og_description":"In this tutorial, we will walk you through several ways to install UFW (Uncomplicated Firewall) on Debian 12. Learn more!","og_url":"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/","og_site_name":"Greenwebpage Community","article_published_time":"2025-07-07T04:55:37+00:00","article_modified_time":"2025-07-07T04:55:41+00:00","og_image":[{"width":1020,"height":600,"url":"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/HOW-TO-INSTALL-UFW-on-DEBIAN-12.jpg","type":"image\/jpeg"}],"author":"Karim Buzdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Karim Buzdar","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/#article","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/"},"author":{"name":"Karim Buzdar","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8"},"headline":"How to Install UFW on Debian 12","datePublished":"2025-07-07T04:55:37+00:00","dateModified":"2025-07-07T04:55:41+00:00","mainEntityOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/"},"wordCount":938,"commentCount":0,"publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/HOW-TO-INSTALL-UFW-on-DEBIAN-12.jpg","keywords":["Debian 12","Firewall","UFW","Uncomplicated Firewall"],"articleSection":["Security","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/","url":"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/","name":"How to Install UFW on Debian 12 - Greenwebpage Community","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/#primaryimage"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/HOW-TO-INSTALL-UFW-on-DEBIAN-12.jpg","datePublished":"2025-07-07T04:55:37+00:00","dateModified":"2025-07-07T04:55:41+00:00","description":"In this tutorial, we will walk you through several ways to install UFW (Uncomplicated Firewall) on Debian 12. Learn more!","breadcrumb":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/#primaryimage","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/HOW-TO-INSTALL-UFW-on-DEBIAN-12.jpg","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/07\/HOW-TO-INSTALL-UFW-on-DEBIAN-12.jpg","width":1020,"height":600,"caption":"HOW TO INSTALL UFW on DEBIAN 12"},{"@type":"BreadcrumbList","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-ufw-on-debian-12\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greenwebpage.com\/community\/"},{"@type":"ListItem","position":2,"name":"How to Install UFW on Debian 12"}]},{"@type":"WebSite","@id":"https:\/\/greenwebpage.com\/community\/#website","url":"https:\/\/greenwebpage.com\/community\/","name":"Greenwebpage Community","description":"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.","publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greenwebpage.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/greenwebpage.com\/community\/#organization","name":"Greenwebpage Community","url":"https:\/\/greenwebpage.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","width":512,"height":512,"caption":"Greenwebpage Community"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8","name":"Karim Buzdar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","caption":"Karim Buzdar"},"sameAs":["https:\/\/greenwebpage.com"],"url":"https:\/\/greenwebpage.com\/community\/author\/karim\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/14655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/comments?post=14655"}],"version-history":[{"count":2,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/14655\/revisions"}],"predecessor-version":[{"id":14677,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/14655\/revisions\/14677"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media\/14678"}],"wp:attachment":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media?parent=14655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/categories?post=14655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/tags?post=14655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}