From 0ec47624b821994e4acaa69c29da1641e674de27 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Fri, 7 Apr 2023 14:06:13 +0530 Subject: [PATCH] DnsServiceWorker: removed additional windows firewall rule for web console port since its not needed after replacing the web service to use kestrel. --- DnsServerWindowsService/DnsServiceWorker.cs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/DnsServerWindowsService/DnsServiceWorker.cs b/DnsServerWindowsService/DnsServiceWorker.cs index ec8ce504..e44ae556 100644 --- a/DnsServerWindowsService/DnsServiceWorker.cs +++ b/DnsServerWindowsService/DnsServiceWorker.cs @@ -107,21 +107,6 @@ namespace DnsServerWindowsService WindowsFirewall.AddRuleVista("Technitium DNS Server", "Allows incoming connection request to the DNS server.", FirewallAction.Allow, appPath, Protocol.ANY, null, null, null, null, InterfaceTypeFlags.All, true, Direction.Inbound, true); - //add web console rule - try - { - WindowsFirewall.RemoveRuleVista("Technitium DNS Server Web Console", ""); - } - catch - { } - - try - { - WindowsFirewall.AddRuleVista("Technitium DNS Server Web Console", "Allows access to the DNS server web console.", FirewallAction.Allow, null, Protocol.TCP, _service.WebServiceHttpPort + ", " + _service.WebServiceTlsPort, null, null, null, InterfaceTypeFlags.All, true, Direction.Inbound, true); - } - catch - { } - return true; } catch