WSL2 mirrored networking fails with Fortinet VPN-V IP-media adapter: ARP unresolved, TCP SYN dropped by Hyper-V (Unauthorized MAC)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- cpp, linux
- Ambito
- networking
Direzione di ricerca
Start by comparing this report with related issue #41443 and trace how WSL mirrored networking handles Windows adapters reported as MediaType: IP. The report provides packet captures showing failed ARP resolution and Hyper-V Unauthorized MAC drops, but does not identify a WSL file, test, or confirmed owner for the fix. Done means establishing whether this adapter type is supported and identifying a safe fix or supported workaround.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Windows Version
Microsoft Windows [Version 10.0.26200.9711]
WSL Version
2.7.13.0
Are you using WSL 1, WSL 2, or WSLC?
- WSL 2
- WSL 1
- WSLC
Kernel Version
6.18.33.2-2
Distro Version
Ubuntu 24.04.4
Other Software
FortiClient 7.4.8.2066
Repro Steps
-
Configure WSL2 mirrored networking.
-
Connect a Fortinet VPN on the Windows host.
-
Confirm that a private HTTPS endpoint is reachable from Windows through the VPN.
-
Start WSL and identify the mirrored Fortinet interface. Its Linux interface name may change between VPN reconnections or WSL restarts.
-
Verify the route and neighbor state:
ip -4 route get <PRIVATE_SERVER_IP> ip neigh show -
Capture traffic on the mirrored VPN interface:
sudo tcpdump -ni <VPN_INTERFACE> -e \ 'arp or (host <PRIVATE_SERVER_IP> and tcp port 443)' -
Attempt a TCP connection:
curl -4 -vk --noproxy '*' \ --interface <VPN_INTERFACE> \ --connect-timeout 5 \ https://<PRIVATE_SERVER_IP>/
Expected Behavior
The private HTTPS endpoint should be reachable from WSL through the VPN, just as it is from the Windows host.
Actual Behavior
The connection times out because the VPN gateway cannot be resolved through ARP.
Diagnostic Logs
WSL2 in networkingMode=mirrored cannot access private networks through a Fortinet VPN-V adapter, although the same destinations are reachable from the Windows host.
Packet captures reveal two failure modes:
- Normal ARP enabled: WSL repeatedly sends ARP requests for the VPN gateway, but receives no replies. Neighbor resolution fails, preventing TCP SYN transmission.
- ARP disabled (
NOARP): WSL generates TCP SYN packets, but Windows Packet Monitor recordsDropReason Unauthorized MACat a Hyper-V virtual-switch component (VmsVmNic,vmswitch.sys).
The Fortinet VPN adapter is reported as MediaType: IP on Windows but is exposed as an Ethernet (link/ether) interface inside WSL.
WSL NAT networking works with the same VPN. Mirrored networking works when the VPN is disconnected.
1. Windows reports an IP-media VPN adapter
PowerShell:
Get-NetAdapter |
Where-Object InterfaceDescription -Like '*Fortinet VPN-V*' |
Format-List InterfaceDescription, MediaType,
PhysicalMediaType, Status
Output (environment-specific values omitted):
InterfaceDescription : Fortinet VPN-V Network Adapter
MediaType : IP
PhysicalMediaType : Unspecified
Status : Up
The Windows neighbor table shows the VPN gateway with an all-zero link-layer address:
IPAddress LinkLayerAddress State
--------- ---------------- ---------
<VPN_GATEWAY_IP> 00-00-00-00-00-00 Reachable
This is consistent with the VPN adapter not using conventional Ethernet gateway resolution.
2. WSL exposes the adapter as Ethernet
ip -d link show dev <VPN_INTERFACE>
Relevant output:
<VPN_INTERFACE>: <BROADCAST,MULTICAST,UP,LOWER_UP>
mtu 1280
link/ether <VPN_ADAPTER_MAC>
parentbus vmbus
The route points to the correct VPN interface:
<PRIVATE_SERVER_IP> via <VPN_GATEWAY_IP>
dev <VPN_INTERFACE>
src <VPN_CLIENT_IP>
However, the gateway neighbor entry fails:
<VPN_GATEWAY_IP> FAILED
3. Normal operation fails during ARP resolution
WSL tcpdump output, with addresses redacted:
<VPN_ADAPTER_MAC> > ff:ff:ff:ff:ff:ff, ARP:
Request who-has <VPN_GATEWAY_IP> tell <VPN_CLIENT_IP>
<VPN_ADAPTER_MAC> > ff:ff:ff:ff:ff:ff, ARP:
Request who-has <VPN_GATEWAY_IP> tell <VPN_CLIENT_IP>
<VPN_ADAPTER_MAC> > ff:ff:ff:ff:ff:ff, ARP:
Request who-has <VPN_GATEWAY_IP> tell <VPN_CLIENT_IP>
No ARP reply is observed. The neighbor state becomes FAILED, and no TCP SYN is transmitted.
4. Disabling ARP allows TCP SYN transmission, but Hyper-V drops the frames
As a temporary diagnostic experiment, ARP was disabled on the mirrored VPN interface:
sudo ip link set dev <VPN_INTERFACE> arp off
The interface then reports:
<BROADCAST,MULTICAST,NOARP,UP,LOWER_UP>
WSL generates TCP SYN packets, but the Ethernet source and destination MAC addresses are identical:
<VPN_ADAPTER_MAC> > <VPN_ADAPTER_MAC>
<VPN_CLIENT_IP>.<EPHEMERAL_PORT> >
<PRIVATE_SERVER_IP>.443: Flags [S]
The connection still times out.
Windows Packet Monitor was used to trace these packets:
pktmon filter remove
pktmon filter add WSLCorporate `
-i <PRIVATE_SERVER_IP> -t TCP -p 443
pktmon start --capture --pkt-size 0 `
--file-name C:\Temp\NoArp.etl
# Reproduce the TCP connection timeout inside WSL.
pktmon stop
pktmon format C:\Temp\NoArp.etl `
-o C:\Temp\NoArp.txt
Relevant Packet Monitor output, with network identifiers redacted:
Drop:
Direction Ingress
Type Ethernet
Component 680
DropReason Unauthorized MAC
DropLocation 0xE0002019
OriginalSize 74
LoggedSize 74
<VPN_ADAPTER_MAC> > <VPN_ADAPTER_MAC>
<VPN_CLIENT_IP>.<EPHEMERAL_PORT> >
<PRIVATE_SERVER_IP>.443: Flags [S]
The same drop repeats for subsequent TCP SYN retransmissions.
The component was identified in the trace as:
Component 680
Type VmsVmNic
Name vmswitch.sys
VmsExtIfIndex = 72
VMSwitchName = <VIRTUAL_SWITCH_NAME>
This confirms that the TCP SYN packets produced under NOARP reach the Hyper-V virtual-switch path and are rejected with Unauthorized MAC.
A separate diagnostic experiment using a static neighbor entry pointing to the VPN adapter's own MAC produced the same drop reason. That MAC was not verified as a valid gateway MAC, so the static-neighbor result should not be interpreted as evidence that an ordinary, correctly addressed Ethernet frame would also be rejected.
The original failure occurs earlier, during gateway ARP resolution. The NOARP test demonstrates what happens when that stage is bypassed.
ARP was restored after testing:
sudo ip link set dev <VPN_INTERFACE> arp on
sudo ip neigh flush dev <VPN_INTERFACE>
Suspected cause
There appears to be a compatibility issue between WSL mirrored networking and Windows VPN adapters that use MediaType: IP rather than conventional Ethernet link semantics.
Windows handles the Fortinet VPN adapter as an IP-media interface, while WSL mirrors it as an Ethernet interface requiring neighbor resolution.
Under normal operation, ARP resolution fails. Disabling ARP allows Linux to generate TCP SYN packets, but the resulting Ethernet frames are rejected by the Hyper-V virtual-switch path.
The evidence establishes these failure points, but does not conclusively identify whether the required fix belongs in WSL, Hyper-V, or Fortinet's adapter implementation.
Questions for maintainers
- Is mirroring Windows
MediaType: IPVPN adapters as Linux Ethernet interfaces supported? - Should WSL provide special neighbor-resolution handling for IP-only or point-to-point VPN adapters?
- Is
vmswitch.sysrejecting theseNOARP-generated frames withUnauthorized MACexpected behavior? - Is there a supported workaround that preserves mirrored networking without disabling virtual-switch security protections?
Workaround
Switching WSL to NAT networking restores access to private destinations through the Fortinet VPN.
Possibly related issue
- #41443 — Mirrored networking: reply from TUN-based VPN adapter dropped before reaching WSL vNIC
That issue involves a different VPN client and packet direction, but may be related to how mirrored networking handles non-Ethernet VPN adapters.
- Lingua principale
- C++
- Stelle
- 34.4k
- Fork
- 1.9k
- Merge medio
- 1g 23h
- PR unite (30g)
- 166
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/WSL
-
feature wsl2
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
microsoft/WSL#42306 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
microsoft/WSL#42114 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
feature kernel wsl2
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
microsoft/WSL#41107 · 3 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
feature kernel
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
microsoft/WSL#41054 · 9 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
feature GPU
Difficoltà 1/5 1-3 ore Idoneità per principianti 70/100
microsoft/WSL#13592 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di microsoft/WSL
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
nextcloud/passman-android#214 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
2026.11.0 fails to install on Intel macOS: requirements.txt pins cryptography==50.0.2 for Darwin x86_64Forse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 87/100
esphome/esphome#22892 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
sec_touch: a corrupted panel ACK ends a GET as malformed while its data frame is still comingApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
distante/esphome-components#50 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
arch-based hyprland
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
noctalia-dev/noctalia#5423 ·
I maintainer di solito rispondono entro 1 giorno