{"id":1093,"date":"2025-09-23T16:36:27","date_gmt":"2025-09-23T13:36:27","guid":{"rendered":"https:\/\/narhost.com\/destek\/?p=1093"},"modified":"2026-09-12T12:31:21","modified_gmt":"2026-09-12T09:31:21","slug":"windows-firewall-nasil-yapilandirilir","status":"publish","type":"post","link":"https:\/\/narhost.com\/destek\/windows-firewall-nasil-yapilandirilir\/","title":{"rendered":"Windows Firewall Nas\u0131l Yap\u0131land\u0131r\u0131l\u0131r (Sunucuda)"},"content":{"rendered":"<p class=\"kb-dogrulama\">Son g\u00f6zden ge\u00e7irme: Eyl\u00fcl 2026 \u00b7 Windows Server 2019\/2022 i\u00e7in Microsoft Learn dok\u00fcman\u0131na g\u00f6re<\/p>\n<div id=\"hizli-cozum\" class=\"ai-box ai-box--cozum\">\n<p class=\"ai-box-title\">H\u0131zl\u0131 \u00e7\u00f6z\u00fcm<\/p>\n<p><strong>Windows Firewall nas\u0131l yap\u0131land\u0131r\u0131l\u0131r<\/strong> sorusunun k\u0131sa yan\u0131t\u0131: mevcut kurallar\u0131 bozmadan, yaln\u0131zca ihtiyac\u0131n\u0131z olan port i\u00e7in yeni bir gelen (inbound) kural eklemektir.<\/p>\n<ol>\n<li>PowerShell&#8217;i sunucunuzda y\u00f6netici olarak a\u00e7\u0131n.<\/li>\n<li><code>New-NetFirewallRule -DisplayName 'Uygulama-8080-TCP-In' -Direction Inbound -Action Allow -Protocol TCP -LocalPort 8080<\/code> ile yeni portu a\u00e7\u0131n.<\/li>\n<li><code>Get-NetFirewallRule -DisplayName 'Uygulama-8080-TCP-In'<\/code> ile kural\u0131n olu\u015ftu\u011funu do\u011frulay\u0131n.<\/li>\n<li>Mevcut Uzak Masa\u00fcst\u00fc (RDP) kural\u0131na dokunmay\u0131n; 3389 portu kapan\u0131rsa sunucuya eri\u015fiminiz kesilir.<\/li>\n<\/ol>\n<\/div>\n<table class=\"kb-uyg\">\n<tr>\n<th>Panel<\/th>\n<td>Yok \u2014 Windows Defender G\u00fcvenlik Duvar\u0131 Windows&#8217;un kendi bile\u015fenidir<\/td>\n<\/tr>\n<tr>\n<th>Sistem<\/th>\n<td>Windows Server 2019, Windows Server 2022<\/td>\n<\/tr>\n<tr>\n<th>Yetki<\/th>\n<td>Sunucuda y\u00f6netici (Administrator) hesab\u0131<\/td>\n<\/tr>\n<tr>\n<th>Narhost \u00fcr\u00fcn\u00fc<\/th>\n<td><a href=\"https:\/\/narhost.com\/vds-sunucu\" title=\"Narhost VDS Sunucu \u2014 Windows Server se\u00e7enekleri\">VDS Sunucu<\/a><\/td>\n<\/tr>\n<\/table>\n<div class=\"kb-once\">\n<p class=\"label\">Ba\u015flamadan \u00f6nce<\/p>\n<ul>\n<li>Sunucunuzda y\u00f6netici yetkili bir hesapla PowerShell&#8217;e ya da Windows Defender G\u00fcvenlik Duvar\u0131 konsoluna (<code>wf.msc<\/code>) eri\u015febildi\u011finizi do\u011frulay\u0131n.<\/li>\n<li>A\u00e7\u0131k kalmas\u0131 gereken Uzak Masa\u00fcst\u00fc (RDP) kural\u0131n\u0131n ad\u0131n\u0131 not edin; a\u015fa\u011f\u0131daki ad\u0131mlarda ona dokunmayacaks\u0131n\u0131z.<\/li>\n<li>A\u00e7mak istedi\u011finiz portu, protokol\u00fc (TCP\/UDP) ve bu portu hangi uygulaman\u0131n kulland\u0131\u011f\u0131n\u0131 \u00f6nceden belirleyin.<\/li>\n<li>Kural\u0131n hangi a\u011f profiline (Domain, Private, Public) uygulanaca\u011f\u0131na karar verin; VDS\/VPS&#8217;de genelde Public profili etkindir.<\/li>\n<\/ul>\n<\/div>\n<h2>Windows Firewall Nas\u0131l Yap\u0131land\u0131r\u0131l\u0131r \u2014 Ne \u0130\u015fe Yarar<\/h2>\n<p>Windows Defender G\u00fcvenlik Duvar\u0131, sunucunuza gelen ve sunucudan \u00e7\u0131kan trafi\u011fi kural baz\u0131nda s\u00fczer. Varsay\u0131lan kurulumda tan\u0131ms\u0131z gelen ba\u011flant\u0131lar\u0131n \u00e7o\u011fu reddedilir; bir web uygulamas\u0131, \u00f6zel bir API ya da veritaban\u0131 motoru kurdu\u011funuzda o servisin portu siz a\u00e7mad\u0131k\u00e7a d\u0131\u015far\u0131dan eri\u015filemez. <a href=\"https:\/\/learn.microsoft.com\/en-us\/windows\/security\/operating-system-security\/network-security\/windows-firewall\/\" title=\"Windows Firewall genel bak\u0131\u015f \u2014 Microsoft Learn resmi dok\u00fcman\u0131\" target=\"_blank\" rel=\"noopener\">Microsoft&#8217;un resmi dok\u00fcman\u0131na g\u00f6re<\/a> g\u00fcvenlik duvar\u0131, ana bilgisayar\u0131 hedef alan yetkisiz eri\u015fimi \u00f6nlemek i\u00e7in tasarlanm\u0131\u015ft\u0131r. Windows Firewall nas\u0131l yap\u0131land\u0131r\u0131l\u0131r sorusunun cevab\u0131 bu y\u00fczden &#8220;kapatmak&#8221; de\u011fil, yaln\u0131zca gerekli portlara izin veren dar kapsaml\u0131 kurallar eklemektir.<\/p>\n<div class=\"highlight-box\">\n<p class=\"label\">Bilgi<\/p>\n<p>G\u00fcvenlik duvar\u0131n\u0131 tamamen kapatmak (<code>Set-NetFirewallProfile -All -Enabled False<\/code>) bu rehberin konusu de\u011fildir ve \u00f6nerilmez; sunucunuzu do\u011frudan internete a\u00e7\u0131k h\u00e2le getirir ve tarama ara\u00e7lar\u0131n\u0131n ilk hedefi yapar.<\/p>\n<\/div>\n<figure class=\"nh-sema\"><img src=\"https:\/\/narhost.com\/destek\/wp-content\/uploads\/2026\/09\/windows-firewall-nasil-yapilandirilir-sema-narhost.webp\" alt=\"Windows firewall nas\u0131l yap\u0131land\u0131r\u0131l\u0131r ak\u0131\u015f \u015femas\u0131 \u2014 PowerShell a\u00e7ma, kural ekleme, do\u011frulama ve RDP kural\u0131n\u0131 koruma ad\u0131mlar\u0131\" width=\"1200\" height=\"500\" loading=\"lazy\" decoding=\"async\"><figcaption>Yeni bir gelen kural d\u00f6rt ad\u0131mda eklenir: PowerShell&#x27;i a\u00e7ma, kural\u0131 yazma, do\u011frulama, mevcut RDP kural\u0131n\u0131 koruma.<\/figcaption><\/figure>\n<h2>Windows Firewall&#8217;da Yeni Kural Ekleme \u2014 Ad\u0131m Ad\u0131m<\/h2>\n<h3>Y\u00f6ntem 1 \u2014 PowerShell ile (\u00f6nerilen)<\/h3>\n<ol class=\"kb-adimlar\">\n<li><strong>PowerShell&#8217;i Y\u00f6netici olarak a\u00e7\u0131n.<\/strong> Ba\u015flat men\u00fcs\u00fcnde &#8220;PowerShell&#8221; yaz\u0131n, sonucu sa\u011f t\u0131klay\u0131p Y\u00f6netici olarak \u00e7al\u0131\u015ft\u0131r&#8217;\u0131 se\u00e7in.\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: pencere ba\u015fl\u0131\u011f\u0131nda &#8220;Y\u00f6netici: Windows PowerShell&#8221; yazar.<\/p>\n<\/li>\n<li><strong>Mevcut etkin kurallar\u0131 listeleyin.<\/strong> Neyi de\u011fi\u015ftirece\u011finizi g\u00f6rmek i\u00e7in \u00f6nce mevcut durumu kontrol edin.\n<pre><code class=\"language-powershell\">Get-NetFirewallRule -Direction Inbound -Enabled True | Select-Object DisplayName,Profile | Sort-Object DisplayName<\/code><\/pre>\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: aralar\u0131nda Uzak Masa\u00fcst\u00fc (RDP) kural\u0131n\u0131n da bulundu\u011fu etkin kurallar listelenir.<\/p>\n<\/li>\n<li><strong>Yeni portu a\u00e7an kural\u0131 olu\u015fturun.<\/strong><code>8080<\/code> yerine kendi uygulaman\u0131z\u0131n portunu, <code>Uygulama-8080-TCP-In<\/code> yerine tan\u0131yaca\u011f\u0131n\u0131z bir ad kullan\u0131n. <a href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/netsecurity\/new-netfirewallrule\" title=\"New-NetFirewallRule cmdlet referans\u0131 \u2014 Microsoft Learn\" target=\"_blank\" rel=\"noopener\">New-NetFirewallRule cmdlet&#8217;i<\/a> ile:\n<pre><code class=\"language-powershell\">New-NetFirewallRule -DisplayName 'Uygulama-8080-TCP-In' -Direction Inbound -Action Allow -Protocol TCP -LocalPort 8080 -Profile Public<\/code><\/pre>\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: komut hatas\u0131z tamamlan\u0131r; bir sonraki ad\u0131mda kural listede g\u00f6r\u00fcn\u00fcr.<\/p>\n<\/li>\n<li><strong>Kural\u0131n olu\u015ftu\u011funu do\u011frulay\u0131n.<\/strong>\n<pre><code class=\"language-powershell\">Get-NetFirewallRule -DisplayName 'Uygulama-8080-TCP-In'<\/code><\/pre>\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: <code>Enabled : True<\/code> ve <code>Action : Allow<\/code> sat\u0131rlar\u0131 g\u00f6r\u00fcn\u00fcr.<\/p>\n<\/li>\n<\/ol>\n<h3>Y\u00f6ntem 2 \u2014 Grafik aray\u00fczden (wf.msc)<\/h3>\n<ol class=\"kb-adimlar\">\n<li><strong>Geli\u015fmi\u015f G\u00fcvenlik Windows Defender G\u00fcvenlik Duvar\u0131<\/strong> konsolunu a\u00e7mak i\u00e7in Ba\u015flat men\u00fcs\u00fcnde <code>wf.msc<\/code> yaz\u0131p Enter&#8217;a bas\u0131n.\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: sol panelde Gelen Kurallar ve Giden Kurallar klas\u00f6rleri g\u00f6r\u00fcn\u00fcr.<\/p>\n<\/li>\n<li><strong>Gelen Kurallar<\/strong> \u00fczerine sa\u011f t\u0131klay\u0131p <strong>Yeni Kural<\/strong>&#8216;\u0131 se\u00e7in, kural t\u00fcr\u00fc olarak <strong>Port<\/strong>&#8216;u i\u015faretleyin.\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: sihirbaz TCP\/UDP ve port numaras\u0131 soran ekrana ge\u00e7er.<\/p>\n<\/li>\n<li>Protokol\u00fc (TCP veya UDP) ve port numaras\u0131n\u0131 girin, <strong>Ba\u011flant\u0131ya izin ver<\/strong> se\u00e7ene\u011fini i\u015faretleyip profilleri se\u00e7in, kurala bir ad verip tamamlay\u0131n.\n<p class=\"kb-cikti\">Beklenen sonu\u00e7: yeni kural Gelen Kurallar listesinde etkin (ye\u015fil onay i\u015faretli) g\u00f6r\u00fcn\u00fcr.<\/p>\n<\/li>\n<\/ol>\n<div class=\"warn-box\">\n<p class=\"label\">Dikkat<\/p>\n<p>Mevcut Uzak Masa\u00fcst\u00fc (RDP) kural\u0131n\u0131 devre d\u0131\u015f\u0131 b\u0131rakmay\u0131n ya da silmeyin; 3389 portunu kapatan bir de\u011fi\u015fiklik sunucudan kendinizi kilitler. Bu rehberde RDP kural\u0131na dokunulmaz, yaln\u0131zca yeni bir kural eklenir.<\/p>\n<\/div>\n<h2>Do\u011frulama<\/h2>\n<div class=\"success-box\">\n<p class=\"label\">Sonu\u00e7<\/p>\n<p><code>Get-NetFirewallRule -DisplayName 'Uygulama-8080-TCP-In' | Select DisplayName,Enabled,Direction,Action<\/code> \u00e7al\u0131\u015ft\u0131r\u0131n; <code>Enabled : True<\/code> g\u00f6rmelisiniz. Ard\u0131ndan ilgili uygulamay\u0131 ba\u015fka bir cihazdan yeni portla test edin; ba\u011flant\u0131 a\u00e7\u0131l\u0131yorsa kural do\u011fru \u00e7al\u0131\u015f\u0131yor demektir. Son olarak Uzak Masa\u00fcst\u00fc ba\u011flant\u0131n\u0131z\u0131 eskisi gibi test edin, RDP&#8217;nin etkilenmedi\u011fini do\u011frulay\u0131n.<\/p>\n<\/div>\n<h2>H\u00e2l\u00e2 \u00c7\u00f6z\u00fclmediyse<\/h2>\n<ul>\n<li><strong>Kural eklendi ama ba\u011flant\u0131 h\u00e2l\u00e2 a\u00e7\u0131lm\u0131yor.<\/strong> Uygulaman\u0131n kendisi o portu dinlemiyor olabilir; sunucuda <code>netstat -ano | findstr :8080<\/code> ile portun LISTENING durumunda olup olmad\u0131\u011f\u0131n\u0131 kontrol edin.<\/li>\n<li><strong>Kural yanl\u0131\u015f profile eklenmi\u015f.<\/strong> Genel a\u011f (Public) yerine Domain veya Private i\u015faretlenmi\u015f olabilir; <code>Get-NetFirewallRule<\/code> ile Profile s\u00fctununu kontrol edip d\u00fczeltin.<\/li>\n<li><strong>RDP ba\u011flant\u0131n\u0131z\u0131 kaybettiniz.<\/strong> Narhost panelindeki konsol\/KVM eri\u015fimiyle sunucuya ba\u011flan\u0131p <a href=\"https:\/\/narhost.com\/destek\/windows-rdp-baglanti-problemi-cozumu\/\" title=\"Windows RDP ba\u011flant\u0131 problemi \u00e7\u00f6z\u00fcm\u00fc - Narhost Destek\">RDP ba\u011flant\u0131 sorunlar\u0131n\u0131 giderme<\/a> rehberini izleyin.<\/li>\n<\/ul>\n<div class=\"cta-box\">\n<p class=\"label\">Narhost deste\u011fi<\/p>\n<p>Talebe \u015funlar\u0131 ekleyin: sunucu ad\u0131, a\u00e7maya \u00e7al\u0131\u015ft\u0131\u011f\u0131n\u0131z port ve protokol, kulland\u0131\u011f\u0131n\u0131z y\u00f6ntem (PowerShell\/GUI), ald\u0131\u011f\u0131n\u0131z hata mesaj\u0131 birebir.<\/p>\n<p><a class=\"cta-btn\" href=\"https:\/\/narhost.com\/submitticket.php\" title=\"Narhost destek talebi olu\u015ftur\">Destek talebi a\u00e7<\/a><\/div>\n<div class=\"kb-ilgili\">\n<p class=\"label\">Sonraki ad\u0131mlar<\/p>\n<ul>\n<li><a href=\"https:\/\/narhost.com\/destek\/windows-sunucu-rdp-yonetimi-rehberi\/\" title=\"Windows Sunucu RDP Y\u00f6netimi Rehberi - Narhost Destek\">Windows sunucu y\u00f6netimi kartlar\u0131n\u0131n tamam\u0131<\/a><\/li>\n<li><a href=\"https:\/\/narhost.com\/destek\/windows-uzak-masaustu-portu-degistirme\/\" title=\"Windows uzak masa\u00fcst\u00fc portu de\u011fi\u015ftirme - Narhost Destek\">RDP portunu de\u011fi\u015ftirme<\/a><\/li>\n<li><a href=\"https:\/\/narhost.com\/destek\/windows-rdp-baglanti-problemi-cozumu\/\" title=\"Windows RDP ba\u011flant\u0131 problemi \u00e7\u00f6z\u00fcm\u00fc - Narhost Destek\">RDP ba\u011flant\u0131 sorunlar\u0131n\u0131 giderme<\/a><\/li>\n<li><a href=\"https:\/\/narhost.com\/destek\/windows-cmd-ile-kullanici-parolasi-degistirme\/\" title=\"Windows CMD ile kullan\u0131c\u0131 parolas\u0131 de\u011fi\u015ftirme - Narhost Destek\">Windows CMD ile kullan\u0131c\u0131 parolas\u0131 de\u011fi\u015ftirme<\/a><\/li>\n<\/ul>\n<\/div>\n<div class=\"kb-faq\">\n<h2>S\u0131k\u00e7a Sorulan Sorular<\/h2>\n<h3>Windows Firewall nas\u0131l yap\u0131land\u0131r\u0131l\u0131r, RDP ba\u011flant\u0131m\u0131 kaybetmeden yapabilir miyim?<\/h3>\n<p>Evet. Yeni bir kural eklemek mevcut kurallar\u0131 etkilemez; bu rehberdeki ad\u0131mlar Uzak Masa\u00fcst\u00fc kural\u0131na hi\u00e7 dokunmaz, yaln\u0131zca ek bir gelen kural olu\u015fturur.<\/p>\n<h3>Hangi profili (Domain, Private, Public) se\u00e7meliyim?<\/h3>\n<p>VDS\/VPS sunucularda genelde Public profili etkindir. Emin de\u011filseniz <code>Get-NetFirewallProfile<\/code> ile hangi profilin aktif oldu\u011funu kontrol edip kural\u0131 ona g\u00f6re ekleyin.<\/p>\n<h3>Bu i\u015flem payla\u015f\u0131ml\u0131 Windows Hosting hesab\u0131nda da yap\u0131labilir mi?<\/h3>\n<p>Hay\u0131r. Windows Hosting paketlerinde panel Plesk&#8217;tir ve m\u00fc\u015fteri, sunucunun i\u015fletim sistemi g\u00fcvenlik duvar\u0131na do\u011frudan eri\u015femez. Bu ad\u0131mlar yaln\u0131zca kendi Windows Server&#8217;\u0131n\u0131z\u0131n \u00e7al\u0131\u015ft\u0131\u011f\u0131 VDS\/VPS \u00fcr\u00fcnlerinde uygulan\u0131r.<\/p>\n<h3>TCP ve UDP i\u00e7in ayr\u0131 kural m\u0131 gerekir?<\/h3>\n<p>Evet, Windows Firewall protokolleri ayr\u0131 de\u011ferlendirir. Uygulaman\u0131z her iki protokol\u00fc de kullan\u0131yorsa <code>-Protocol TCP<\/code> ve <code>-Protocol UDP<\/code> ile iki ayr\u0131 kural eklemeniz gerekir.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Windows Firewall nas\u0131l yap\u0131land\u0131r\u0131l\u0131r: mevcut RDP kural\u0131na dokunmadan PowerShell&#8217;de New-NetFirewallRule ile ya da wf.msc \u00fczerinden yeni bir gelen kural eklemenin ad\u0131mlar\u0131 ve do\u011frulamas\u0131.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,12],"tags":[221,233],"class_list":["post-1093","post","type-post","status-publish","format-standard","hentry","category-windows-hosting","category-vds-server","tag-windows-server","tag-guvenlik-duvari"],"meta_box":[],"_links":{"self":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts\/1093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/comments?post=1093"}],"version-history":[{"count":4,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts\/1093\/revisions"}],"predecessor-version":[{"id":1456,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/posts\/1093\/revisions\/1456"}],"wp:attachment":[{"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/media?parent=1093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/categories?post=1093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/narhost.com\/destek\/wp-json\/wp\/v2\/tags?post=1093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}