{"id":2480,"date":"2026-11-18T03:53:20","date_gmt":"2026-11-18T09:23:20","guid":{"rendered":"https:\/\/rackbank.com\/blog\/?p=2480"},"modified":"2026-11-18T03:53:24","modified_gmt":"2026-11-18T09:23:24","slug":"open-port-dedicated-server-ufw-firewalld-windows-firewall","status":"publish","type":"post","link":"https:\/\/rackbank.com\/blog\/open-port-dedicated-server-ufw-firewalld-windows-firewall\/","title":{"rendered":"Open Port on Dedicated Server ufw firewalld Windows Firewall"},"content":{"rendered":"<figure class=\"wp-block-table\">\n<table>\n<tbody>\n<tr>\n<td><strong>TL;DR<\/strong><\/p>\n<ul>\n<li>\n<p data-pm-slice=\"1 1 [&quot;list&quot;,{&quot;spread&quot;:false,&quot;start&quot;:11,&quot;end&quot;:347},&quot;regular_list_item&quot;,{&quot;start&quot;:11,&quot;end&quot;:147}]\">This guide explains how to open a specific port, such as 8080 or 443, on a dedicated server using UFW, firewalld, or Windows Firewall.<\/p>\n<\/li>\n<li>\n<p data-pm-slice=\"1 1 [&quot;list&quot;,{&quot;spread&quot;:false,&quot;start&quot;:11,&quot;end&quot;:347},&quot;regular_list_item&quot;,{&quot;start&quot;:11,&quot;end&quot;:147}]\">You need sudo or Administrator privileges and the client IP addresses to configure firewall access.<\/p>\n<\/li>\n<li>\n<p data-pm-slice=\"1 1 [&quot;list&quot;,{&quot;spread&quot;:false,&quot;start&quot;:11,&quot;end&quot;:347},&quot;regular_list_item&quot;,{&quot;start&quot;:250,&quot;end&quot;:347}]\">Follow four steps during a planned maintenance window to apply and verify the firewall changes.<\/p>\n<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>An application runs on your server, but nobody outside can reach it. This guide shows how to open port on dedicated server ufw firewalld Windows Firewall setups, limit who can connect and prove it works. It was written against Ubuntu Server 24.04 Long Term Support (LTS) with ufw, Windows Server 2022 or 2025, and AlmaLinux 9 using the upstream firewalld manual.<\/p>\n<p>Our <a href=\"https:\/\/rackbank.com\/blog\/manage-your-own-dedicated-server-checklist\/\">owner&#8217;s checklist for managing your own dedicated server<\/a> covers turning ufw on and limiting Secure Shell (SSH) to one address. This post adds one application port.<\/p>\n<figure class=\"wp-block-table\">\n<table>\n<tbody>\n<tr>\n<td><strong>BEFORE YOU START<\/strong><\/p>\n<ul>\n<li><strong>Access<\/strong>: sudo on Linux, or PowerShell as Administrator on Windows.<br \/>\nThe application&#8217;s port and protocol, the client IP addresses, and a second network such as a phone hotspot.<\/li>\n<li><strong>Backup first<\/strong>: save the current rules. ufw: <code>sudo ufw status numbered &gt; ~\/ufw-before.txt<\/code>. firewalld: <code>sudo firewall-cmd --list-all-zones &gt; ~\/firewalld-before.txt<\/code>. Windows: <code>Get-NetFirewallRule | Out-File fw-before.txt<\/code> lists the rules but not their addresses and ports, which Microsoft says are held in separate filter objects, so also save the New-NetFirewallRule commands in the change log.<br \/>\nRollback: the undo command for each firewall is in Step 4.<\/li>\n<li><strong>SAFETY NOTE<\/strong>: these are general steps, written against Ubuntu Server 24.04 LTS with ufw, AlmaLinux 9 with firewalld and Windows Server 2022 or 2025. Every server differs in roles, firewall, applications and network, so a technical person who knows this server should review each step before it is run, and try it on a test or non-production server first where one exists.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<figure class=\"wp-block-table\">\n<table>\n<tbody>\n<tr>\n<td><strong>CRITICAL<\/strong><\/p>\n<ul>\n<li><strong>Step 2, ufw<\/strong>: run <code>sudo ufw enable<\/code> only after an SSH rule is listed and a console path that does not depend on SSH is open.<\/li>\n<li><strong>Step 2, firewalld:<\/strong> run <code>firewall-cmd --reload<\/code> only when every runtime change you want to keep is saved, because a reload drops runtime-only changes.<\/li>\n<li><strong>Step 4, Windows:<\/strong> run <code style=\"font-size: inherit;\">Remove-NetFirewallRule<\/code><span style=\"font-family: inherit; font-size: inherit;\"> only with the exact display name from your record, never with a broad query.<\/span><\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<h2 class=\"wp-block-heading\">Step 1: Check the Service Is Listening on the Right Address<\/h2>\n<p>Is the application listening on the port that the firewall rule opens? On Linux, run <code>sudo ss -tlnp<\/code> on the server.<\/p>\n<p>In the <a href=\"https:\/\/man7.org\/linux\/man-pages\/man8\/ss.8.html\">ss manual, -t selects Transmission Control Protocol (TCP) sockets, -l shows only listening sockets, -n keeps ports numeric and -p shows the process<\/a>. Look for <code>0.0.0.0:8080<\/code>, <code>[::]:8080<\/code> or the server&#8217;s public IP next to your application&#8217;s process.<\/p>\n<p>Is there a line for the port? If not, is the application running and using this port? Does the line show <code>127.0.0.1:8080<\/code> instead of <code>0.0.0.0:8080<\/code>? If so, check the bind address in the application&#8217;s configuration.<\/p>\n<p>On Windows, run <code>Test-NetConnection -ComputerName localhost -Port 8080<\/code> on the server. The output should end with <code>TcpTestSucceeded : True<\/code>. If it shows False, is the service running and set to this port?<\/p>\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"2560\" height=\"1429\" class=\"wp-image-2479\" src=\"https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2026\/11\/open-port-dedicated-server-ufw-firewalld-windows-firewall-fig-1-scaled.jpg\" alt=\"Flow from checking the service is listening, to the firewall rule, source restriction, outside test and recording the rule\" srcset=\"https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2026\/11\/open-port-dedicated-server-ufw-firewalld-windows-firewall-fig-1-scaled.jpg 2560w, https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2026\/11\/open-port-dedicated-server-ufw-firewalld-windows-firewall-fig-1-300x167.jpg 300w, https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2026\/11\/open-port-dedicated-server-ufw-firewalld-windows-firewall-fig-1-1024x572.jpg 1024w, https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2026\/11\/open-port-dedicated-server-ufw-firewalld-windows-firewall-fig-1-768x429.jpg 768w, https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2026\/11\/open-port-dedicated-server-ufw-firewalld-windows-firewall-fig-1-1536x857.jpg 1536w, https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2026\/11\/open-port-dedicated-server-ufw-firewalld-windows-firewall-fig-1-2048x1143.jpg 2048w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><\/figure>\n<p><em>Figure 1. The order of the job: Service listening, Firewall rule, Source restriction, Outside test and Rule recorded. After a failed Outside test, is the Firewall rule listed and correct before any wider opening is considered?<\/em><\/p>\n<h2 class=\"wp-block-heading\">Step 2: Open the Port on a Dedicated Server in ufw, firewalld or Windows Firewall<\/h2>\n<p>Which addresses use the port: an office, a virtual private network (VPN) or a partner? Or is it a public website on 443 with no fixed client list? The examples use 203.0.113.10 as the allowed client; replace it with your own address.<\/p>\n<h3 class=\"wp-block-heading\">ufw on Ubuntu<\/h3>\n<p>Check the state with <code>sudo ufw status verbose<\/code>. The <a href=\"https:\/\/ubuntu.com\/server\/docs\/how-to\/security\/firewalls\/\">Ubuntu Server documentation notes that ufw is initially disabled<\/a>, so an inactive result means the CRITICAL line applies. Canonical&#8217;s <code>--dry-run<\/code> option prints the resulting rules without applying them, so preview first:<\/p>\n<pre class=\"wp-block-code\"><code>sudo ufw --dry-run allow proto tcp from 203.0.113.10 to any port 8080\nsudo ufw allow proto tcp from 203.0.113.10 to any port 8080<\/code><\/pre>\n<p>For a public site, use <code>sudo ufw allow 443<\/code>. Then run <code>sudo ufw status numbered<\/code> and look for 8080 with your source address. If an older line allows 8080 from Anywhere, it still admits everyone, so delete it as in Step 4.<\/p>\n<h3 class=\"wp-block-heading\">firewalld on AlmaLinux<\/h3>\n<p>Run <code>sudo firewall-cmd --state<\/code>, which prints the daemon state. Then <code>sudo firewall-cmd --get-active-zones<\/code> shows the zone that holds the public interface; the examples assume <code>public<\/code>.<\/p>\n<pre class=\"wp-block-code\"><code>sudo firewall-cmd --zone=public --add-rich-rule='rule family=\"ipv4\" source address=\"203.0.113.10\" port port=\"8080\" protocol=\"tcp\" accept'\nsudo firewall-cmd --zone=public --add-port=443\/tcp<\/code><\/pre>\n<p>The <a href=\"https:\/\/firewalld.org\/documentation\/man-pages\/firewall-cmd.html\">firewall-cmd manual lists &#8211;add-rich-rule and &#8211;add-port<\/a>. The <a href=\"https:\/\/firewalld.org\/documentation\/man-pages\/firewalld.richlanguage.html\">firewalld.richlanguage manual page defines the rule family, source address, port and accept elements<\/a> of the first line. Line two opens 443 to all addresses.<\/p>\n<p>Both commands change only the runtime configuration. In the firewall-cmd manual, a reload replaces runtime with permanent configuration. So if Step 3 fails, <code>sudo firewall-cmd --reload<\/code> discards the test rule.<\/p>\n<p>Check with <code>sudo firewall-cmd --zone=public --list-all<\/code>. The rich rules line should show your rule. If the ports line also lists 8080\/tcp, the port is open to everyone; remove it with <code>--remove-port=8080\/tcp<\/code>.<\/p>\n<h3 class=\"wp-block-heading\">Windows Firewall on Windows Server<\/h3>\n<p>In PowerShell as Administrator, run:<\/p>\n<pre class=\"wp-block-code\"><code>New-NetFirewallRule -DisplayName \"Allow App 8080\" -Direction Inbound -Protocol TCP -LocalPort 8080 -RemoteAddress 203.0.113.10 -Action Allow<\/code><\/pre>\n<p>Microsoft&#8217;s <a href=\"https:\/\/learn.microsoft.com\/en-us\/windows\/security\/operating-system-security\/network-security\/windows-firewall\/configure-with-command-line\">command line guide says a rule created this way becomes effective immediately<\/a>. For a public site on 443, does the rule need <code>-RemoteAddress<\/code> at all? Does the new rule cover the Domain, Private or Public profile of the server&#8217;s internet-facing network?<\/p>\n<h2 class=\"wp-block-heading\">Step 3: Test Reachability From Outside the Server<\/h2>\n<p>Does the port also answer from a client outside the server? Run this test from a Windows PC at the allowed address:<\/p>\n<pre class=\"wp-block-code\"><code>Test-NetConnection -ComputerName &lt;server IP&gt; -Port 8080<\/code><\/pre>\n<p><a href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/nettcpip\/test-netconnection?view=windowsserver2025-ps\">Microsoft documents Test-NetConnection as supporting a TCP test<\/a>, reported in the <code>TcpTestSucceeded<\/code> line. Expect True.<\/p>\n<p>Next, repeat the test from an address outside the rule, such as a phone hotspot. For a restricted port, expect False. If the test from outside the rule returns True, does a wider rule or another network path still admit that address? Is the rule list in Step 2 checked?<\/p>\n<p>If the allowed address gets False, does <code>ss<\/code> still show the port listening, and is the rule listed?<\/p>\n<p>On firewalld, save the tested rule with <code>sudo firewall-cmd --runtime-to-permanent<\/code>, which writes the active runtime configuration over the permanent one.<\/p>\n<h2 class=\"wp-block-heading\">Step 4: Record the Rule So It Can Be Rolled Back or Restored<\/h2>\n<p>Is there a change log off the server for each rule? Does it record the date, port, source, reason and owner, plus the add and undo commands?<\/p>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>Firewall<\/th>\n<th>Undo command<\/th>\n<th>What it does<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>ufw<\/td>\n<td><code>sudo ufw delete allow proto tcp from 203.0.113.10 to any port 8080<\/code><\/td>\n<td>Removes the rule, using delete followed by the rule<\/td>\n<\/tr>\n<tr>\n<td>firewalld<\/td>\n<td><code>sudo firewall-cmd --permanent --zone=public --remove-rich-rule='rule family=\"ipv4\" source address=\"203.0.113.10\" port port=\"8080\" protocol=\"tcp\" accept'<\/code> then <code>sudo firewall-cmd --reload<\/code><\/td>\n<td>Removes the saved rule, then loads the permanent configuration<\/td>\n<\/tr>\n<tr>\n<td>Windows, reversible<\/td>\n<td><code>Disable-NetFirewallRule<\/code> on the Allow App 8080 rule<\/td>\n<td>Leaves the rule on the system, disabled; Enable-NetFirewallRule turns it back on<\/td>\n<\/tr>\n<tr>\n<td>Windows, final<\/td>\n<td><code>Remove-NetFirewallRule -DisplayName \"Allow App 8080\"<\/code><\/td>\n<td>Removes the rule definition permanently<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>Sources: Ubuntu Server documentation, firewall-cmd and firewalld.richlanguage manuals, Microsoft Learn command line guide.<\/p>\n<p>Disabling the rule first is the reversible option, as Microsoft Learn&#8217;s command line guide describes.<\/p>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>WHAT TO CHECK AFTER<\/th>\n<th>Command or page<\/th>\n<th>Expected result<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Service listening<\/td>\n<td><code>sudo ss -tlnp<\/code> or Test-NetConnection to localhost<\/td>\n<td>Port on a non-loopback address; True<\/td>\n<\/tr>\n<tr>\n<td>Rule present<\/td>\n<td><code>sudo ufw status numbered<\/code>, <code>sudo firewall-cmd --zone=public --list-all<\/code> or Get-NetFirewallRule<\/td>\n<td>Linux: one rule with your source, no Anywhere rule for a restricted port. Windows: is a rule with the display name Allow App 8080 listed?<\/td>\n<\/tr>\n<tr>\n<td>Allowed and other source<\/td>\n<td>Test-NetConnection from each<\/td>\n<td>True from the allowed address, False from the hotspot<\/td>\n<\/tr>\n<tr>\n<td>Saved rule on firewalld<\/td>\n<td><code>sudo firewall-cmd --permanent --zone=public --list-all<\/code><\/td>\n<td>The rich rule is listed<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<hr \/>\n<h2 class=\"wp-block-heading\">When to Stop and Hand Over<\/h2>\n<p>Is this a single service with a short list of known clients? If not, hand over.<\/p>\n<ul class=\"wp-block-list\">\n<li>Is the port for a database or remote desktop that would be open to all addresses? Would a VPN fit better?<\/li>\n<li>Does the allowed address still fail while ss shows the port listening and the rule is listed? Has the provider&#8217;s support been asked about a network firewall outside the server?<\/li>\n<li>Do several people change rules with no shared change log? Our <a href=\"https:\/\/rackbank.com\/blog\/managed-vs-unmanaged-dedicated-servers-what-to-choose\/\">comparison of managed and unmanaged dedicated servers<\/a> helps decide who should own the firewall.<\/li>\n<\/ul>\n<hr \/>\n<h2 class=\"wp-block-heading\">FAQs<\/h2>\n<p><strong>Why is the port open in ufw but the application still does not load?<\/strong><\/p>\n<p>Does <code>sudo ss -tlnp<\/code> show 127.0.0.1 in front of the port? If so, check the application&#8217;s bind address before changing ufw.<\/p>\n<p><strong>Why did my firewalld port close after a reload?<\/strong><\/p>\n<p>Was the rule added without <code>--permanent<\/code>? The firewall-cmd manual says runtime-only changes are lost with a reload.<\/p>\n<hr \/>\n<h2 class=\"wp-block-heading\">Where This Leaves You<\/h2>\n<p data-pm-slice=\"1 1 []\">The required service is now accessible through the configured port and permitted IP addresses. You have also verified external connectivity and documented the rollback command to restore the previous firewall configuration if needed.<\/p>\n<figure class=\"wp-block-table\">\n<table>\n<tbody>\n<tr>\n<td><strong>NEXT STEP<\/strong><\/p>\n<p data-pm-slice=\"1 1 []\">Planning to deploy an application on a dedicated server? Explore RackBank&#8217;s <a href=\"https:\/\/www.rackbank.com\/datacenter-services\/high-performance-dedicated-servers.html\">dedicated and bare metal server solutions<\/a> to compare processor, memory, and storage configurations based on your workload requirements.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to open one application port on a dedicated server with ufw, firewalld or Windows Firewall: confirm the service listens, limit the source, test from outside and record a rollback.<\/p>\n","protected":false},"author":2,"featured_media":2478,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[56,79,148,219],"class_list":["post-2480","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dedicated-server","tag-dedicated-server","tag-dedicated-servers","tag-linux-hosting","tag-unmanaged-dedicated-server-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Open Port on Dedicated Server: ufw, firewalld, Windows<\/title>\n<meta name=\"description\" content=\"Learn how to open a port on a dedicated server using UFW, firewalld or Windows Firewall. Configure access, verify connectivity and secure your server.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/rackbank.com\/blog\/open-port-dedicated-server-ufw-firewalld-windows-firewall\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Open Port on Dedicated Server: ufw, firewalld, Windows\" \/>\n<meta property=\"og:description\" content=\"Learn how to open a port on a dedicated server using UFW, firewalld or Windows Firewall. Configure access, verify connectivity and secure your server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rackbank.com\/blog\/open-port-dedicated-server-ufw-firewalld-windows-firewall\/\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RackBank\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-18T09:23:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-18T09:23:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2026\/11\/open-port-dedicated-server-ufw-firewalld-windows-firewall-featured-scaled.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1429\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Tanvi Ausare\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rackbank\" \/>\n<meta name=\"twitter:site\" content=\"@rackbank\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tanvi Ausare\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/open-port-dedicated-server-ufw-firewalld-windows-firewall\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/open-port-dedicated-server-ufw-firewalld-windows-firewall\\\/\"},\"author\":{\"name\":\"Tanvi Ausare\",\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/#\\\/schema\\\/person\\\/8e06632331def2e4ee1b5180342b641c\"},\"headline\":\"Open Port on Dedicated Server ufw firewalld Windows Firewall\",\"datePublished\":\"2026-11-18T09:23:20+00:00\",\"dateModified\":\"2026-11-18T09:23:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/open-port-dedicated-server-ufw-firewalld-windows-firewall\\\/\"},\"wordCount\":1335,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/open-port-dedicated-server-ufw-firewalld-windows-firewall\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/open-port-dedicated-server-ufw-firewalld-windows-firewall-featured-scaled.jpg\",\"keywords\":[\"Dedicated Server\",\"dedicated servers\",\"Linux hosting\",\"Unmanaged Dedicated Server Hosting\"],\"articleSection\":[\"Dedicated Server\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/rackbank.com\\\/blog\\\/open-port-dedicated-server-ufw-firewalld-windows-firewall\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/open-port-dedicated-server-ufw-firewalld-windows-firewall\\\/\",\"url\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/open-port-dedicated-server-ufw-firewalld-windows-firewall\\\/\",\"name\":\"Open Port on Dedicated Server: ufw, firewalld, Windows\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/open-port-dedicated-server-ufw-firewalld-windows-firewall\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/open-port-dedicated-server-ufw-firewalld-windows-firewall\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/open-port-dedicated-server-ufw-firewalld-windows-firewall-featured-scaled.jpg\",\"datePublished\":\"2026-11-18T09:23:20+00:00\",\"dateModified\":\"2026-11-18T09:23:24+00:00\",\"description\":\"Learn how to open a port on a dedicated server using UFW, firewalld or Windows Firewall. Configure access, verify connectivity and secure your server.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/open-port-dedicated-server-ufw-firewalld-windows-firewall\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/rackbank.com\\\/blog\\\/open-port-dedicated-server-ufw-firewalld-windows-firewall\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/open-port-dedicated-server-ufw-firewalld-windows-firewall\\\/#primaryimage\",\"url\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/open-port-dedicated-server-ufw-firewalld-windows-firewall-featured-scaled.jpg\",\"contentUrl\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/open-port-dedicated-server-ufw-firewalld-windows-firewall-featured-scaled.jpg\",\"width\":2560,\"height\":1429,\"caption\":\"Generic rack server with one network port lit in green and the other ports dark\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/open-port-dedicated-server-ufw-firewalld-windows-firewall\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Open Port on Dedicated Server ufw firewalld Windows Firewall\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/\",\"name\":\"rackbank.com\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/#organization\",\"name\":\"RackBank Datacenters pvt ltd\",\"url\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/cropped-rackbank-logo-1.png\",\"contentUrl\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/cropped-rackbank-logo-1.png\",\"width\":94,\"height\":42,\"caption\":\"RackBank Datacenters pvt ltd\"},\"image\":{\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RackBank\\\/\",\"https:\\\/\\\/x.com\\\/rackbank\",\"https:\\\/\\\/in.linkedin.com\\\/company\\\/rackbank\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/#\\\/schema\\\/person\\\/8e06632331def2e4ee1b5180342b641c\",\"name\":\"Tanvi Ausare\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fe5feb60fe7f80f01a49352fc22bb3a233db8a5f2ba1582cd6f9157d716102b3?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fe5feb60fe7f80f01a49352fc22bb3a233db8a5f2ba1582cd6f9157d716102b3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fe5feb60fe7f80f01a49352fc22bb3a233db8a5f2ba1582cd6f9157d716102b3?s=96&d=mm&r=g\",\"caption\":\"Tanvi Ausare\"},\"url\":\"https:\\\/\\\/rackbank.com\\\/blog\\\/author\\\/tanvi\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Open Port on Dedicated Server: ufw, firewalld, Windows","description":"Learn how to open a port on a dedicated server using UFW, firewalld or Windows Firewall. Configure access, verify connectivity and secure your server.","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:\/\/rackbank.com\/blog\/open-port-dedicated-server-ufw-firewalld-windows-firewall\/","og_locale":"en_US","og_type":"article","og_title":"Open Port on Dedicated Server: ufw, firewalld, Windows","og_description":"Learn how to open a port on a dedicated server using UFW, firewalld or Windows Firewall. Configure access, verify connectivity and secure your server.","og_url":"https:\/\/rackbank.com\/blog\/open-port-dedicated-server-ufw-firewalld-windows-firewall\/","article_publisher":"https:\/\/www.facebook.com\/RackBank\/","article_published_time":"2026-11-18T09:23:20+00:00","article_modified_time":"2026-11-18T09:23:24+00:00","og_image":[{"width":2560,"height":1429,"url":"https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2026\/11\/open-port-dedicated-server-ufw-firewalld-windows-firewall-featured-scaled.jpg","type":"image\/jpeg"}],"author":"Tanvi Ausare","twitter_card":"summary_large_image","twitter_creator":"@rackbank","twitter_site":"@rackbank","twitter_misc":{"Written by":"Tanvi Ausare","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/rackbank.com\/blog\/open-port-dedicated-server-ufw-firewalld-windows-firewall\/#article","isPartOf":{"@id":"https:\/\/rackbank.com\/blog\/open-port-dedicated-server-ufw-firewalld-windows-firewall\/"},"author":{"name":"Tanvi Ausare","@id":"https:\/\/rackbank.com\/blog\/#\/schema\/person\/8e06632331def2e4ee1b5180342b641c"},"headline":"Open Port on Dedicated Server ufw firewalld Windows Firewall","datePublished":"2026-11-18T09:23:20+00:00","dateModified":"2026-11-18T09:23:24+00:00","mainEntityOfPage":{"@id":"https:\/\/rackbank.com\/blog\/open-port-dedicated-server-ufw-firewalld-windows-firewall\/"},"wordCount":1335,"commentCount":0,"publisher":{"@id":"https:\/\/rackbank.com\/blog\/#organization"},"image":{"@id":"https:\/\/rackbank.com\/blog\/open-port-dedicated-server-ufw-firewalld-windows-firewall\/#primaryimage"},"thumbnailUrl":"https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2026\/11\/open-port-dedicated-server-ufw-firewalld-windows-firewall-featured-scaled.jpg","keywords":["Dedicated Server","dedicated servers","Linux hosting","Unmanaged Dedicated Server Hosting"],"articleSection":["Dedicated Server"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/rackbank.com\/blog\/open-port-dedicated-server-ufw-firewalld-windows-firewall\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/rackbank.com\/blog\/open-port-dedicated-server-ufw-firewalld-windows-firewall\/","url":"https:\/\/rackbank.com\/blog\/open-port-dedicated-server-ufw-firewalld-windows-firewall\/","name":"Open Port on Dedicated Server: ufw, firewalld, Windows","isPartOf":{"@id":"https:\/\/rackbank.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/rackbank.com\/blog\/open-port-dedicated-server-ufw-firewalld-windows-firewall\/#primaryimage"},"image":{"@id":"https:\/\/rackbank.com\/blog\/open-port-dedicated-server-ufw-firewalld-windows-firewall\/#primaryimage"},"thumbnailUrl":"https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2026\/11\/open-port-dedicated-server-ufw-firewalld-windows-firewall-featured-scaled.jpg","datePublished":"2026-11-18T09:23:20+00:00","dateModified":"2026-11-18T09:23:24+00:00","description":"Learn how to open a port on a dedicated server using UFW, firewalld or Windows Firewall. Configure access, verify connectivity and secure your server.","breadcrumb":{"@id":"https:\/\/rackbank.com\/blog\/open-port-dedicated-server-ufw-firewalld-windows-firewall\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rackbank.com\/blog\/open-port-dedicated-server-ufw-firewalld-windows-firewall\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/rackbank.com\/blog\/open-port-dedicated-server-ufw-firewalld-windows-firewall\/#primaryimage","url":"https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2026\/11\/open-port-dedicated-server-ufw-firewalld-windows-firewall-featured-scaled.jpg","contentUrl":"https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2026\/11\/open-port-dedicated-server-ufw-firewalld-windows-firewall-featured-scaled.jpg","width":2560,"height":1429,"caption":"Generic rack server with one network port lit in green and the other ports dark"},{"@type":"BreadcrumbList","@id":"https:\/\/rackbank.com\/blog\/open-port-dedicated-server-ufw-firewalld-windows-firewall\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/rackbank.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Open Port on Dedicated Server ufw firewalld Windows Firewall"}]},{"@type":"WebSite","@id":"https:\/\/rackbank.com\/blog\/#website","url":"https:\/\/rackbank.com\/blog\/","name":"rackbank.com","description":"","publisher":{"@id":"https:\/\/rackbank.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rackbank.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/rackbank.com\/blog\/#organization","name":"RackBank Datacenters pvt ltd","url":"https:\/\/rackbank.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/rackbank.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2025\/09\/cropped-rackbank-logo-1.png","contentUrl":"https:\/\/rackbank.com\/blog\/wp-content\/uploads\/2025\/09\/cropped-rackbank-logo-1.png","width":94,"height":42,"caption":"RackBank Datacenters pvt ltd"},"image":{"@id":"https:\/\/rackbank.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RackBank\/","https:\/\/x.com\/rackbank","https:\/\/in.linkedin.com\/company\/rackbank"]},{"@type":"Person","@id":"https:\/\/rackbank.com\/blog\/#\/schema\/person\/8e06632331def2e4ee1b5180342b641c","name":"Tanvi Ausare","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/fe5feb60fe7f80f01a49352fc22bb3a233db8a5f2ba1582cd6f9157d716102b3?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/fe5feb60fe7f80f01a49352fc22bb3a233db8a5f2ba1582cd6f9157d716102b3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fe5feb60fe7f80f01a49352fc22bb3a233db8a5f2ba1582cd6f9157d716102b3?s=96&d=mm&r=g","caption":"Tanvi Ausare"},"url":"https:\/\/rackbank.com\/blog\/author\/tanvi\/"}]}},"_links":{"self":[{"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/posts\/2480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/comments?post=2480"}],"version-history":[{"count":1,"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/posts\/2480\/revisions"}],"predecessor-version":[{"id":2486,"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/posts\/2480\/revisions\/2486"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/media\/2478"}],"wp:attachment":[{"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/media?parent=2480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/categories?post=2480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rackbank.com\/blog\/wp-json\/wp\/v2\/tags?post=2480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}