Share via

Server IP block issue

Scott Huang 3,326 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 for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
Windows for business | Windows Server | User experience | Other
0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.