Server IP block issue

Peter_1985 2,691 Reputation points
2024-11-21T08:46:41.9533333+00:00

Hi,

On Win 2019 server or above, I used to block the IP range on Firewall. How to ensure one exact IP is whitelisted?

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,359 questions
Windows Network
Windows Network
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.Network: A group of devices that communicate either wirelessly or via a physical connection.
782 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Daisy Zhou 26,326 Reputation points Microsoft Vendor
    2024-11-22T10:17:53.5+00:00

    Hello Peter_1985,

    Thank you for posting in Q&A forum.

    To whitelist a specific IP address on a Windows Server 2019 firewall, you could create an inbound rule for it.

    Then you could use PowerShell to Verify:

    Open PowerShell as an administrator.

    Run the following command to list all firewall rules and check for your specific rule:

    Get-NetFirewallRule | Where-Object { $_.DisplayName -eq "Whitelist Specific IP" }

    To check the IP addresses associated with the rule, use:

    Get-NetFirewallAddressFilter -AssociatedNetFirewallRule (Get-NetFirewallRule -DisplayName "Whitelist Specific IP")

    Reference:

    Get-NetFirewallRule (NetSecurity) | Microsoft Learn

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

    Best Regards,

    Daisy Zhou

    ============================================

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

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.