Skip to content

AOVPN Network Interface sporadically reverts AutomaticMetric to Enabled #57

Description

@togoboldly

DPC Version 5.3.0

Within our tenant, we have DPC controlling a device tunnel with a backup user tunnel, with both set to have an InterfaceMetric of 1, to ensure that internal DNS queries are routed through the VPN tunnel before being sent externally towards the internet.

This works 99% of the time, but in some random cases it appears that Windows (we are running Win11 25H2, latest patches) is reverting the AutomaticMetric setting on the interface to Enabled, resulting in the InterfaceMetric being reverted to the default of 25. This in turn results in DNS queries being blackholed, and internal (network drive) access is then prevented.

This can be resolved in one of two ways:

  • Switch to the backup user tunnel and then back to the device tunnel - this then re-applies the AutomaticMetric / Disabled setting, and the InterfaceMetric returns to 1.
  • Manually utilise Set-NetIpInterface to specifically set the AutomaticMetric setting to Disabled. This also reverts the InterfaceMetric to 1.

We are unable to intentionally replicate this issue at will, and it does appear to be a Windows issue specifically, since allowing DPC to "reapply" its settings - by switching to another tunnel and back - restores functionality, implying that DPC is functioning as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions