I need some help with the Windows Server firewall.

雪峰 冯 0 Reputation points
2024-07-23T05:15:02.1066667+00:00

I want to allow only specific IPs to access specific ports of this server through the firewall. Now I have configured a policy of denying all and a policy of allowing specific IPs and ports, but this allowing policy is not effective. Now I'm not sure if it's because the denying policy has a higher priority, so I need help

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,083 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,613 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Karlie Weng 16,351 Reputation points Microsoft Vendor
    2024-07-23T07:04:19.9166667+00:00

    Hello,

    Ensure that your allow-specific IPs and ports rule is placed above the deny-all rule in the firewall configuration.

    The firewall applies the first rule that matches the traffic, and subsequent rules are ignored.

    You can adjust the order of rules by right-clicking on the rule and selecting "Move Up" or "Move Down" until it's at the top of the list.


    If the Answer is helpful, please click Accept Answer and upvote it.