Introduction
In this article, we will discuss how to allow group IPs exclusive access to a single NIC on a Windows Server 2022. Specifically, we will cover the scenario where remote users want exclusive access to one NIC, while no one else should have access to it.
Scenario Background
Suppose you have a Windows Server 2022 with three NICs, and remote users want exclusive access to one of those NICs. You need to configure the server to allow only the remote users' IPs to access the specific NIC, while denying access to all other IPs.
Prerequisites
Before we begin, ensure that you have the following:
- A Windows Server 2022 with at least three NICs.
- A list of remote users' IPs that need exclusive access to one NIC.
Configuring NIC Binding Order
The first step is to configure the NIC binding order. This will ensure that the server uses the correct NIC for remote users' access.
Steps
- Press Windows key + X and select Network Connections.
- Right-click on the NIC that you want to set as the exclusive NIC and select Properties.
- Click on Internet Protocol Version 4 (TCP/IPv4) and select Properties.
- Uncheck the box that says Automatically detect settings.
- Click on Advanced.
- Under the IP Settings tab, click on Add.
- Enter the IP address and subnet mask for the exclusive NIC.
- Click Add and then OK.
- Repeat steps 4-8 for all the NICs except the exclusive NIC.
- Click OK to close all the windows.
Creating an Access Group
The next step is to create a group that will contain the remote users' IPs.
Steps
- Press Windows key + R and enter secpol.msc to open the Local Security Policy.
- Expand Security Settings and then Local Policies.
- Click on Security Groups.
- Right-click on Security Groups and select New Local Group.
- Enter a name for the group, such as ExclusiveNICAccess.
- Click Add and enter the remote users' IPs, separated by a semicolon.
- Click OK twice to create the group.
Configuring Windows Firewall
The final step is to configure the Windows Firewall to allow only the remote users' IPs to access the exclusive NIC.
Steps
- Press Windows key + R and enter wf.msc to open the Windows Firewall with Advanced Security.
- Expand Inbound Rules and right-click on New Rule.
- Select Port and click Next.
- Enter the port number that the remote users will use to access the exclusive NIC and click Next.
- Select Allow the connection and click Next.
- Select Public and click Next.
- Enter a name for the rule, such as ExclusiveNICAccess.
- Click Finish.
- Right-click on the newly created rule and select Properties.
- Under the Scope tab, click Add.
- Select These IP addresses and click Add.
- Enter the remote users' IPs, separated by a semicolon, and click OK.
- Click OK twice to close all the windows.
In this article, we discussed how to allow group IPs exclusive access to a single NIC on a Windows Server 2022. We covered the following key concepts:
- Configuring NIC binding order
- Creating an access group
- Configuring Windows Firewall
References
-
Windows Server 2022 - https://docs.microsoft.com/en-us/windows-server/
-
Configure NIC Teaming - https://docs.microsoft.com/en-us/windows-server/networking/technologies/nic-teaming/nic-teaming
-
Create a Local Group - https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/manage/create-local-groups
-
Configure Windows Defender Firewall - https://docs.microsoft.com/en-us/windows/security/threshold/windows-defender-firewall/configure