Isolate AI Systems with Network Segments and Deny-by-Default Rules
Segmentation limits the damage when an AI system is misused, misconfigured or compromised. If a model server can only talk to the one application that calls it, a problem inside the model does not become a problem for the whole network. This guide shows how to build that boundary with the tools most Windows networks already have.
Principle: deny by default, allow by exception
Start with the rule that nothing is allowed unless it is written down. Each AI segment gets:
- an inbound rule set that allows only the named clients to reach the service port;
- an outbound rule set that allows only the named destinations;
- a logged default action for everything else, so you see what was blocked.
Step 1: Create the segment
Use a separate VLAN and subnet for the AI servers. Keep the addressing simple, for example one /27 for model servers and one /28 for their gateway. Document the address range in your inventory, so firewall rules can refer to it.
Step 2: Restrict inbound traffic on the AI servers
On a Windows AI host, enable Windows Defender Firewall with Advanced Security and create inbound rules that allow only the port the service listens on, and only from the calling application server. Example:
New-NetFirewallRule -DisplayName "AI API from app server" -Direction Inbound -Protocol TCP -LocalPort 8443 `
-RemoteAddress 10.20.5.10 -Action Allow -Profile Domain
Then review the default inbound action. Keep it at Block.
Step 3: Restrict traffic between segments
The firewall between the AI segment and the data segment should allow only the database or file share the system needs. Do not allow the whole data subnet. A model that only needs one read-only share should not have access to the finance server.
Step 4: Test the rules from both sides
Testing is the step most teams skip. From a client in the allowed group, confirm the service answers. From a client outside the group, confirm it does not. From the AI server, confirm it cannot reach a host it should not reach:
Test-NetConnection -ComputerName 10.30.1.20 -Port 445
Expect TcpTestSucceeded : False for hosts outside the allowed list.
Step 5: Log and review
Enable logging for dropped packets on the AI profile and send the logs to your central log store. Review blocked attempts weekly for the first month. A blocked attempt that you did not expect is either a broken application or the first sign that something is wrong.
Common mistakes
- Putting the AI servers in the same subnet as workstations “for now”. The temporary setup usually stays.
- Allowing a whole subnet instead of the specific host.
- Opening outbound “any” because a tool failed to start. Find the destination and allow only that.