Securing the Skunkworks API with Windows Firewall
The Skunkworks API binds to http://+:8124/, meaning it listens on all network interfaces (loopback, LAN, VPN, etc.). To prevent the API from being exposed to untrusted networks, Windows Firewall must be configured to allow inbound traffic on TCP port 8124 only from the desired subnet(s).
This guide walks through creating a restrictive inbound rule using the Windows Defender Firewall with Advanced Security GUI.
Prerequisites
Administrator rights on the Windows machine running Skunkworks.
Knowledge of the subnet(s) that should be allowed to reach the API (e.g.
172.18.12.0/24). If you are unsure, ask your network administrator or runipconfig /alland look at the subnet mask of the relevant network adapter.
Step 1 — Open Windows Defender Firewall with Advanced Security
Press
Win + R, typewf.msc, and press Enter.The Windows Defender Firewall with Advanced Security console opens.

Step 2 — Remove any pre-existing rules for port 8124
If you previously added a permissive rule (e.g. New-NetFirewallRule -LocalPort 8124 -Profile Any), remove it first to avoid conflicts.
In the left pane, click Inbound Rules.
In the middle pane, scroll or sort by Local Port and look for any rule referencing port
8124(e.g. "Skunkworks API 8124").Right-click the rule and select Delete. Confirm.

Step 3 — Create a new restrictive inbound rule
In the left pane, click Inbound Rules.
In the right pane (Actions), click New Rule....

Step 4 — Rule Type: Port
In the New Inbound Rule Wizard, select Port.
Click Next.

Step 5 — Protocol and Ports
Select TCP.
Select Specific local ports and enter
8124.Click Next.

Step 6 — Action: Allow the connection
Select Allow the connection.
Click Next.

Step 7 — Profile: select all three
Check Domain, Private, and Public.
Click Next.

Step 8 — Name the rule
Name:
Skunkworks API — Restricted (TCP 8124)Description (optional):
Allows inbound API traffic on port 8124 only from the desired subnet(s).Click Finish.

Step 9 — Restrict the rule to the desired subnet(s) (the important part)
The rule currently allows port 8124 from anywhere. We now restrict it to only the desired subnet(s).
Find your new rule in the Inbound Rules list.
Right-click it → Properties.
Go to the Scope tab.
Under Remote IP address, select These IP addresses and click Add....
Enter your desired subnet, for example:
172.18.12.0/24To add multiple subnets, click Add... again for each.
Click OK to close the Add dialog.
Click OK to close Properties.

Step 10 — Verify
From your own machine (should still work via localhost)
From a machine on the allowed subnet (should work)
From a machine NOT on the allowed subnet (should fail with timeout or no response)
This confirms the firewall scoping is working.
Optional — PowerShell equivalent
For automated deployment or scripting, the same rule can be created with:
To later modify the allowed range:
To remove the rule entirely:
Defense-in-depth recommendations
The firewall rule above is the primary barrier, but consider adding these layers as well:
Authentication on the API — even with a firewall in place, anyone on the allowed subnet can hit the API. Add an API key, bearer token, or Windows Authentication to your OWIN pipeline.
HTTPS — replace
http://+:8124/withhttps://+:8124/and bind a TLS certificate vianetsh http add sslcertto encrypt traffic.Rate limiting / logging — log all incoming requests (IP, endpoint, timestamp) so unusual access patterns can be detected.
Disable the API when not needed — if the API only needs to be reachable during work hours or specific sessions, don't run Skunkworks outside that window.
Troubleshooting
Symptom | Likely cause |
|---|---|
| API not running, or bound to wrong prefix ( |
| HTTP.sys has the port reserved but no listener attached. Verify with |
Request times out | Firewall rule scope is excluding the client's IP. Verify with |
| Missing URL ACL. Re-add with |
Dual-Train Configuration (Port 8125)
If this machine is running Skunkworks in dual-train mode, a second API instance will be listening on port 8125 in addition to the primary port 8124. In that case, the firewall must be configured to protect both ports.
Repeat all of the steps above (Steps 1–10) for port 8125, with the following substitutions:
Where the guide says... | Use instead... |
|---|---|
|
|
|
|
|
|
PowerShell equivalent for the second rule
Verification
After creating the second rule, confirm both are active:
You should see two rules, both Enabled: True and Action: Allow, one for each port.