Scanned my own trusted segment from the lab segment, expecting to be blocked. I wasn't.
The lab VLAN — the one running Kali and a deliberately vulnerable victim host — had full network access to the trusted VLAN where my workstation lives. Not because a rule was missing, but because a rule I wrote to permit internet access permitted everything else too.
| Before | After | |
|---|---|---|
| Ports 135 / 1801 / 3389 on the workstation | open |
filtered |
| Response time | Instant | No response, scan times out |
| Firewall log | Nothing | Block entries naming the rule |
The scan also surfaced a service I didn't know was running — MSMQ, enabled in June 2020 and untouched since — and, on follow-up, a second scan result I had attributed to the wrong machine entirely.
The point of the exercise: I built the segmentation, assumed it worked, and it didn't. The only reason I know is that I tested it from the position an attacker would actually occupy. A rule that reads correctly in the UI is not evidence of anything.
The lab VLAN's ruleset ended like this:
| # | Action | Source | Destination | Purpose |
|---|---|---|---|---|
| 1–4 | Pass | LAB net | specific management hosts | Admin access |
| 5 | Pass | LAB net | LAB net | Intra-lab traffic |
| 6 | Pass | LAB net | any | Internet |
Rule 6 is the problem, and it's easy to write without noticing. "Any" includes every RFC1918 range on the network — the trusted VLAN, IoT, wireless, management. The rule was written to mean internet, and a firewall has no concept of "internet." It has a destination, and the destination was everything.
Nothing above it constrained that. Rules 1–4 grant specific access; they don't deny anything. The intent was default-deny with exceptions, and the implementation was allow-all with some redundant permits in front of it.
Kali sits on VLAN 30 behind a dedicated physical switch port. That matters — the traffic has to cross OPNsense to reach anything on VLAN 10, so the result reflects the firewall rather than a local segment.
First attempt reported the host as down:
nmap <workstation-ip>
# Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn
That is not evidence of segmentation. nmap performs host discovery before scanning ports and skips the host entirely if discovery fails. Against an off-subnet target its default probes are ICMP echo, ICMP timestamp, TCP SYN to 443 and TCP ACK to 80. Windows Defender Firewall drops ICMP by default and nothing was listening on 80 or 443 — so all four probes got silence, and nmap concluded the host was offline.
The firewall dropping unsolicited probes is correct behavior. Reading it as isolation is a mistake that would have ended the audit with a false pass.
nmap -Pn <workstation-ip>
Seven open ports.
| Port | Service | Note |
|---|---|---|
| 135 | MSRPC endpoint mapper | Standard Windows |
| 1801 | MSMQ | Not enabled by default |
| 2103 / 2105 / 2107 | MSMQ RPC | |
| 2179 | Hyper-V VMConnect | Hypervisor console service |
| 3389 | RDP |
open rather than filtered is the finding. Open means the TCP handshake completed — packets
crossed the firewall from the lab segment to the trusted segment and were answered.
An explicit block above the permissive rule, using an alias containing the RFC1918 ranges:
| # | Action | Source | Destination | Port | Log |
|---|---|---|---|---|---|
| 1 | Pass | LAB net | LAB address | 53 | |
| 2 | Pass | LAB net | firewall | 443 | |
| 3 | Pass | LAB net | switch | 22 | |
| 4 | Pass | LAB net | hypervisor | 8006 | |
| 5 | Pass | LAB net | LAB net | any | |
| 6 | Block | LAB net | RFC1918 | any | yes |
| 7 | Pass | LAB net | any | any |
Order is the whole mechanism. Rules evaluate top-down, first match wins. The management exceptions have to sit above the block or administration from the lab segment breaks. The block has to sit above the internet rule or it never gets reached.
Logging on rule 6 is not optional for an audit — it's the difference between inferring a fix and demonstrating one.
Re-running the same scan appeared to hang. That was the result.
With a drop rule, nothing comes back. nmap waits out the timeout on every probe and retries before moving on, so a 1000-port scan that previously took seconds now takes a very long time.
nmap -Pn -T4 -p 135,1801,3389 --max-retries 1 <workstation-ip>
All three filtered. The firewall log showed the corresponding drops with the rule attached.
A firewall has no concept of the internet. It has destinations. A trailing any rule intended to
give a segment outbound access gives it access to every other segment as well, and reads as
perfectly reasonable in the UI.
The fix is not a different permit rule — it's an explicit deny for internal ranges placed above it. Segmentation is enforced by what you block, not by what you decline to permit.
Windows drops ICMP by default. nmap's host discovery interprets silence as absence and never scans. An auditor who stops there concludes the segment is isolated when it's wide open.
Always -Pn when auditing. And when comparing before and after, use it on both runs —
otherwise discovery failure masks the actual change and you learn nothing from either scan.
A block rule that silently drops forces the scanner to wait out every timeout. A reject answers immediately with an RST, which is faster and more polite and tells the attacker the host exists.
Drop costs an attacker time and gives them no confirmation. The cost is that legitimate troubleshooting is slower and ambiguous — "no response" looks the same as "host is off."
Worth knowing so the slow scan reads as success rather than as a broken tool.
MSMQ was listening on the workstation. It is not a default Windows feature — something enabled it, most likely an installer that automatically turns on required Windows features in the background. That's the documented mechanism behind how it ends up on machines nobody deliberately configured it on.
It matters because of CVE-2023-21554, "QueueJumper" — unauthenticated remote code execution via TCP 1801. No credentials required. Patched in April 2023, with further MSMQ CVEs following that year.
Checking it out before removing anything:
| Check | Result |
|---|---|
| Enabled sub-features | MSMQ-Container, MSMQ-Server. Everything else disabled. |
| Queues present | None |
CPU consumed by mqsvc.exe |
0.16 seconds, total |
| Storage directory created | June 2020 — same day as the OS install |
| Last modified | Same date. Never written to again. |
The minimal sub-feature set is the fingerprint of a dependency declared by an installer, not of someone configuring MSMQ deliberately.
So: a listener enabled the day the machine was built, which has never queued a message, has consumed a fraction of a second of CPU in six years, and was present and reachable throughout the QueueJumper disclosure window.
Patching and attack surface reduction are different activities. The CVE is fixed. The listener is still there for the next one. Removal:
Disable-WindowsOptionalFeature -Online -FeatureName MSMQ-Container
Scanning your own network finds things no inventory has. I could not have told you MSMQ was running on that machine, and I own it.
The same scan appeared to show MSMQ on a second machine. It didn't.
Checking that host directly — rather than by scanning it — showed every MSMQ feature disabled, no service, nothing listening, and no MSMQ storage directory at all. The directory is created on first service start, so its absence proves MSMQ has never run there. The machine is also a Windows install from four months ago, which wouldn't have it by default.
The ports were real. The host attribution was wrong. On a network with DHCP, the address I scanned was not necessarily the machine I believed held it.
This is the same failure mode as the -Pn problem above, inverted: one produces a confident
false negative, the other a confident false positive. Both look like clean results.
Verify what you scanned, not just what you found. Where it matters, confirm the target's identity out of band — a lease table, an ARP or MAC table, or by checking the host directly — before attaching a finding to a machine name.
Everything here was configured correctly by inspection. The VLANs were right, the interfaces were right, the rules existed and were applied. The gap only appeared when traffic was generated from the segment being constrained, toward a target that should have been unreachable.
That's the same lesson as Lab 01 — ARP Poisoning & Dynamic ARP Inspection from a different angle — there, a control was active and logging while the attack succeeded, because the traffic never crossed the device enforcing it. Here, a control was written and applied while the traffic passed, because the rule below it said yes.
A configured control and an effective control are different claims, and only one of them can be verified by looking at a screen.