Skip to content

Fix recreating NLA profile after reconnect on Windows - #2602

Open
Accurio wants to merge 1 commit into
zerotier:devfrom
Accurio:nla
Open

Fix recreating NLA profile after reconnect on Windows#2602
Accurio wants to merge 1 commit into
zerotier:devfrom
Accurio:nla

Conversation

@Accurio

@Accurio Accurio commented Jul 11, 2026

Copy link
Copy Markdown

The fake ARP entry used to trick Windows NLA into recognizing this adapter as a real network derived its gateway MAC from the tap adapter's NetCfgInstanceId GUID. Since Disconnect then Reconnect in ZeroTier fully uninstalls and recreates the tap adapter, each reconnect produced a new random GUID and therefore a new fake gateway MAC. NLA treats this as a distinct network and ignores the previously configured network profile each time.

This change derives the fake gateway MAC from the ZeroTier network ID instead of the device GUID, so the NLA signature stays stable across tap adapter recreation as long as the network ID is unchanged.

The fake ARP entry used to trick Windows NLA into recognizing this
adapter as a real network derived its gateway MAC from the tap adapter's
NetCfgInstanceId GUID. Since Disconnect then Reconnect in ZeroTier fully
uninstalls and recreates the tap adapter, each reconnect produced a new
random GUID and therefore a new fake gateway MAC. NLA treats this as a
distinct network and ignores the previously configured network profile
each time.

This change derives the fake gateway MAC from the ZeroTier network ID
instead of the device GUID, so the NLA signature stays stable across tap
adapter recreation as long as the network ID is unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant