[GH-ISSUE #3143] Windows 11: AmneziaWG 3.1 shows Connected, but no traffic passes through VPN #1457

Open
opened 2026-10-14 03:42:48 +07:00 by bsakaguchi · 10 comments
Owner

Originally created by @witchlock1111-jpg on GitHub (Sep 7, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/3143

On Windows 11, AmneziaVPN 5.0.1.5 connects to my AmneziaWG server and shows "Connected", but actual Internet traffic does not pass through the VPN tunnel.

The same server and configuration work correctly on my phone and on another PC.

The problem appeared after updating/reinstalling AmneziaVPN on this Windows PC.

Environment

  • OS: Windows 11
  • AmneziaVPN: 5.0.1.5
  • Build: 7d4f3e0f5
  • Protocol: AmneziaWG 3.1
  • Server: 185.112.240.182:443
  • Internet connection: MTS PPP connection over Ethernet

What happens

  1. AmneziaVPN starts normally.
  2. WireGuard tunnel interface is created.
  3. AmneziaVPN shows "Connected".
  4. The log contains a successful WireGuard handshake response.
  5. However, Internet traffic does not pass through the VPN tunnel.
  6. For example, ping to 1.1.1.1 goes through the MTS connection instead of AmneziaVPN.
  7. With Kill Switch enabled, Internet traffic fails completely.

Split tunneling is disabled.

Tests performed

  • Reinstalled AmneziaVPN 5.0.1.5.
  • Completely removed and reinstalled the client.
  • Tested AmneziaVPN 4.8.21.0.
  • On 4.8.21.0 the WireGuard interface and routes were created, but the connection stayed indefinitely on "Connecting".
  • Disabled Split Tunneling.
  • Disabled Kill Switch for testing.
  • Checked Windows routes and network interfaces.
  • Tested the same VPN configuration on another device — it works correctly.
  • Base Internet connection on this PC works correctly without VPN.

The problem therefore appears to be specific to the Windows client/network handling rather than the VPN server.

Logs

I can provide the AmneziaVPN logs and Windows network diagnostics if needed.

Originally created by @witchlock1111-jpg on GitHub (Sep 7, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/3143 On Windows 11, AmneziaVPN 5.0.1.5 connects to my AmneziaWG server and shows "Connected", but actual Internet traffic does not pass through the VPN tunnel. The same server and configuration work correctly on my phone and on another PC. The problem appeared after updating/reinstalling AmneziaVPN on this Windows PC. ### Environment - OS: Windows 11 - AmneziaVPN: 5.0.1.5 - Build: 7d4f3e0f5 - Protocol: AmneziaWG 3.1 - Server: 185.112.240.182:443 - Internet connection: MTS PPP connection over Ethernet ### What happens 1. AmneziaVPN starts normally. 2. WireGuard tunnel interface is created. 3. AmneziaVPN shows "Connected". 4. The log contains a successful WireGuard handshake response. 5. However, Internet traffic does not pass through the VPN tunnel. 6. For example, ping to 1.1.1.1 goes through the MTS connection instead of AmneziaVPN. 7. With Kill Switch enabled, Internet traffic fails completely. Split tunneling is disabled. ### Tests performed - Reinstalled AmneziaVPN 5.0.1.5. - Completely removed and reinstalled the client. - Tested AmneziaVPN 4.8.21.0. - On 4.8.21.0 the WireGuard interface and routes were created, but the connection stayed indefinitely on "Connecting". - Disabled Split Tunneling. - Disabled Kill Switch for testing. - Checked Windows routes and network interfaces. - Tested the same VPN configuration on another device — it works correctly. - Base Internet connection on this PC works correctly without VPN. The problem therefore appears to be specific to the Windows client/network handling rather than the VPN server. ### Logs I can provide the AmneziaVPN logs and Windows network diagnostics if needed.
Author
Owner

@e-losha commented on GitHub (Sep 9, 2026):

Same problem here, connected succesfully but everything works from my main provider wihout VPN. But I am using windows 10 and it happened right after latest update on windows. I did uninstall the latest windows update but it didnt help :(

<!-- gh-comment-id:5602799609 --> @e-losha commented on GitHub (Sep 9, 2026): Same problem here, connected succesfully but everything works from my main provider wihout VPN. But I am using windows 10 and it happened right after latest update on windows. I did uninstall the latest windows update but it didnt help :(
Author
Owner

@HeisLuka commented on GitHub (Sep 9, 2026):

I checked this against both 5.0.1.5 and current dev.

I think there is a concrete Windows full-tunnel routing bug here that matches the reported PPP behavior quite closely.

The important detail is not the route metric alone

For a normal full-tunnel AWG connection, LocalSocketController produces:

allowedIPAddressRanges:
    0.0.0.0/0
    ::/0

Daemon::activate() then roughly does:

addInterface()
add exclusion route for VPN endpoint
updatePeer()
updateRoutePrefix(0.0.0.0/0)

On WiPrefix()` installs the default route directly into the AWG interface:

entry->InterfaceLuid.Value = m_luid;
entry->Metric = 0;
CreateIpForwardEntry2(&entry);

At first sight that looks sufficient.

But on Windows the effective routing preference is not just:

route metric

It is:

route metric
+
interface metric

Microsoft documents MIB_IPFORWARD_ROW2::Metric explicitly as only the route-metric offset.

Amnezia bypasses the normal AWG interface-metric setup

The exact AWG Windows package used by 5.0.1.5 is:

amneziawg-windows v3.1.20260814

In its configureInterface() implementation, when a default AllowedIP is present, it normally does:

if foundDefault4 {
    ipif.UseAutomaticMetric = false
    ipif.Metric = 0
}

The same exists for IPv6.

That is important because it guarantees that a route with:

route Metric = 0

also has:

interface Metric = 0

for the full-tunnel interface.

However Amnezia does not let the AWG tunnel service see the peer during initial interface configuration.

WireguardUtilsWindows::addInterface() explicitly builds the config and then removes the entire [Peer] section:

extraConfig["Table"] = "off";

QString configString = config.toWgConf(extraConfig);

qsizetype peerStart =
    configString.indexOf("[Peer]", 0, Qt::CaseSensitive);

if (peerStart >= 0) {
    configString.truncate(peerStart);
}

The tunnel service therefore starts with effectively:

[Interface]
...
Table = off

(no Peer)
(no AllowedIPs)

Inside amneziawg-windows this means:

foundDefault4 = false
foundDefault6 = false

and consequently the normal:

UseAutomaticMetric = false
Metric = 0

path is not executed.

The peer is added only afterwards through UAPI:

set=1
...
replace_allowed_ips=true
allowed_ip=0.0.0.0/0

but that UAPI update changes the AWG device configuration; it does not replace the original conf.Config retained by the Windows tunnel interface watcher.

So adding 0.0.0.0/0 later does not retroactively execute the interface-metric setup.

Effective state

The resulting state can therefore be:

AWG route:
    0.0.0.0/0
    route metric = 0

AWG interface:
    automatic metric still enabled
    interface metric = N

PPP route:
    0.0.0.0/0
    route metric = X
    interface metric = Y

Windows compares:

AWG total = 0 + N
PPP total = X + Y

If:

X + Y < N

the physical PPP default route wins.

That matches the report extremely well:

AWG handshake succeeds
UI says Connected

but:

ping 1.1.1.1
    -> MTS PPP
    -> not AWG

Why the handshake can still work

The successful WireGuard handshake does not contradict this.

Before configuring the peer, Amnezia creates an exclusion route for the VPN server endpoint.

So the control path can be healthy:

AWG UDP endpoint
    -> explicit physical-underlay route
    -> server
    -> handshake succeeds

while the ordinary data path remains wrong:

1.1.1.1
    -> competing default routes
    -> PPP route wins

Daemon::checkHandshake() subsequently uses the successful peer handshake to emit connected.

So:

HANDSHAKE_OK

currently does not imply:

FULL_TUNNEL_ROUTE_IS_ACTIVE

Why Kill Switch makes the failure complete

The report also says:

Kill Switch off:
    traffic goes through MTS directly

Kill Switch on:
    Internet stops completely

That is exactly what I would expect from this route state.

Without the Kill Switch, Windows can use the winning PPP route.

With the Kill Switch, that untunneled path is blocked by WFP, but routing still does not prefer the AWG interface.

Therefore traffic becomes:

selected route = physical PPP
WFP             = physical traffic forbidden

=> no connectivity

rather than being redirected into AWG.

This is still present in current dev

The relevant WireguardUtilsWindows::addInterface() / updatePeer() / updateRoutePrefix() implementation in current dev is the same as in 5.0.1.5.

Current dev still:

  1. starts the tunnel service with Table=off;
  2. removes [Peer] before startup;
  3. adds AllowedIPs later through UAPI;
  4. manually creates the 0/0 route with route metric 0;
  5. does not explicitly set the AWG IP-interface metric when activating that default route.

One diagnostic would confirm this on the affected machine

While the broken connection is active, capture:

Get-NetIPInterface -AddressFamily IPv4 |
    Sort-Object InterfaceMetric

Get-NetRoute -AddressFamily IPv4 |
    Where-Object DestinationPrefix -eq "0.0.0.0/0"

Find-NetRoute -RemoteIPAddress 1.1.1.1

The useful values are:

AWG InterfaceIndex
AWG InterfaceMetric

PPP InterfaceIndex
PPP InterfaceMetric

route metric of both 0.0.0.0/0 entries

winning interface for 1.1.1.1

If the AWG default route exists but:

Find-NetRoute 1.1.1.1

selects the PPP interface due to the combined metric, that confirms this mechanism directly.

A very simple A/B would be:

broken state
    -> temporarily lower AWG interface metric
    -> re-check Find-NetRoute 1.1.1.1

If the winner immediately changes from PPP to AWG and traffic starts flowing, the regression is isolated.

Fix direction

I would not rely on the route metric alone.

When Amnezia activates a full-tunnel prefix on Windows:

0.0.0.0/0
or
::/0

it should explicitly establish the same interface invariant that the underlying amneziawg-windows tunnel normally establishes when it sees a default AllowedIP:

UseAutomaticMetric = false
InterfaceMetric = 0

This can be done after the interface LUID is known and before the default route is made authoritative.

Conceptually:

create AWG interface
        ↓
obtain LUID
        ↓
configure full-tunnel interface metric
        ↓
install endpoint exclusion
        ↓
add peer
        ↓
install 0/0 route
        ↓
verify Windows best route
        ↓
wait for handshake
        ↓
Connected

An alternative would be to preserve enough routing intent in the initial tunnel-service configuration for amneziawg-windows to perform its normal metric setup, while still using Table=off.

I would also add a routing postcondition

For a full-tunnel session, successful activation should verify that a non-excluded public destination resolves to the AWG LUID.

For example, conceptually:

AllowedIPs contains 0.0.0.0/0

GetBestRoute2(non-excluded IPv4)
    must return AWG interface

before the session is considered healthy.

That is stronger than:

CreateIpForwardEntry2() returned success

because a successfully created route can still lose route selection due to the interface metric.

Regression cases

  1. PPP underlay with a very low interface metric:
AWG full tunnel
expected best route(public IP) = AWG
  1. Ethernet/Wi-Fi underlay with automatic metrics:
AWG full tunnel
expected = AWG wins regardless of underlay metric
  1. Default AllowedIP added after interface creation through UAPI:
expected = same routing semantics as
default AllowedIP present at initial startup
  1. Kill Switch disabled:
full-tunnel routing must not silently leak via physical interface
  1. Kill Switch enabled:
routing must already prefer AWG;
WFP must not be relied upon to compensate for a wrong route
  1. Endpoint exclusion:
VPN server endpoint -> physical interface
ordinary public destination -> AWG interface
  1. Split-tunnel connection without 0/0:
do not unnecessarily force global AWG interface preference

So I would currently classify this as:

high-confidence Windows routing bug.

The source shows that Amnezia removes the default AllowedIP before the Windows tunnel service gets the opportunity to disable automatic interface metrics, then later installs only a zero-metric route. On a PPP/multi-route system that can leave the physical default route preferred even though the AWG handshake succeeds.

The affected reporter's route/interface metrics would provide the final runtime confirmation.

<!-- gh-comment-id:5608670451 --> @HeisLuka commented on GitHub (Sep 9, 2026): I checked this against both `5.0.1.5` and current `dev`. I think there is a concrete Windows full-tunnel routing bug here that matches the reported PPP behavior quite closely. ### The important detail is not the route metric alone For a normal full-tunnel AWG connection, `LocalSocketController` produces: ```text allowedIPAddressRanges: 0.0.0.0/0 ::/0 ``` `Daemon::activate()` then roughly does: ```text addInterface() add exclusion route for VPN endpoint updatePeer() updateRoutePrefix(0.0.0.0/0) ``` On WiPrefix()` installs the default route directly into the AWG interface: ```cpp entry->InterfaceLuid.Value = m_luid; entry->Metric = 0; CreateIpForwardEntry2(&entry); ``` At first sight that looks sufficient. But on Windows the effective routing preference is not just: ```text route metric ``` It is: ```text route metric + interface metric ``` Microsoft documents `MIB_IPFORWARD_ROW2::Metric` explicitly as only the route-metric offset. ### Amnezia bypasses the normal AWG interface-metric setup The exact AWG Windows package used by `5.0.1.5` is: ```text amneziawg-windows v3.1.20260814 ``` In its `configureInterface()` implementation, when a default AllowedIP is present, it normally does: ```go if foundDefault4 { ipif.UseAutomaticMetric = false ipif.Metric = 0 } ``` The same exists for IPv6. That is important because it guarantees that a route with: ```text route Metric = 0 ``` also has: ```text interface Metric = 0 ``` for the full-tunnel interface. However Amnezia does not let the AWG tunnel service see the peer during initial interface configuration. `WireguardUtilsWindows::addInterface()` explicitly builds the config and then removes the entire `[Peer]` section: ```cpp extraConfig["Table"] = "off"; QString configString = config.toWgConf(extraConfig); qsizetype peerStart = configString.indexOf("[Peer]", 0, Qt::CaseSensitive); if (peerStart >= 0) { configString.truncate(peerStart); } ``` The tunnel service therefore starts with effectively: ```text [Interface] ... Table = off (no Peer) (no AllowedIPs) ``` Inside `amneziawg-windows` this means: ```text foundDefault4 = false foundDefault6 = false ``` and consequently the normal: ```go UseAutomaticMetric = false Metric = 0 ``` path is not executed. The peer is added only afterwards through UAPI: ```cpp set=1 ... replace_allowed_ips=true allowed_ip=0.0.0.0/0 ``` but that UAPI update changes the AWG device configuration; it does not replace the original `conf.Config` retained by the Windows tunnel interface watcher. So adding `0.0.0.0/0` later does not retroactively execute the interface-metric setup. ### Effective state The resulting state can therefore be: ```text AWG route: 0.0.0.0/0 route metric = 0 AWG interface: automatic metric still enabled interface metric = N PPP route: 0.0.0.0/0 route metric = X interface metric = Y ``` Windows compares: ```text AWG total = 0 + N PPP total = X + Y ``` If: ```text X + Y < N ``` the physical PPP default route wins. That matches the report extremely well: ```text AWG handshake succeeds UI says Connected but: ping 1.1.1.1 -> MTS PPP -> not AWG ``` ### Why the handshake can still work The successful WireGuard handshake does not contradict this. Before configuring the peer, Amnezia creates an exclusion route for the VPN server endpoint. So the control path can be healthy: ```text AWG UDP endpoint -> explicit physical-underlay route -> server -> handshake succeeds ``` while the ordinary data path remains wrong: ```text 1.1.1.1 -> competing default routes -> PPP route wins ``` `Daemon::checkHandshake()` subsequently uses the successful peer handshake to emit `connected`. So: ```text HANDSHAKE_OK ``` currently does not imply: ```text FULL_TUNNEL_ROUTE_IS_ACTIVE ``` ### Why Kill Switch makes the failure complete The report also says: ```text Kill Switch off: traffic goes through MTS directly Kill Switch on: Internet stops completely ``` That is exactly what I would expect from this route state. Without the Kill Switch, Windows can use the winning PPP route. With the Kill Switch, that untunneled path is blocked by WFP, but routing still does not prefer the AWG interface. Therefore traffic becomes: ```text selected route = physical PPP WFP = physical traffic forbidden => no connectivity ``` rather than being redirected into AWG. ### This is still present in current dev The relevant `WireguardUtilsWindows::addInterface()` / `updatePeer()` / `updateRoutePrefix()` implementation in current `dev` is the same as in `5.0.1.5`. Current `dev` still: 1. starts the tunnel service with `Table=off`; 2. removes `[Peer]` before startup; 3. adds `AllowedIPs` later through UAPI; 4. manually creates the `0/0` route with route metric `0`; 5. does not explicitly set the AWG IP-interface metric when activating that default route. ### One diagnostic would confirm this on the affected machine While the broken connection is active, capture: ```powershell Get-NetIPInterface -AddressFamily IPv4 | Sort-Object InterfaceMetric Get-NetRoute -AddressFamily IPv4 | Where-Object DestinationPrefix -eq "0.0.0.0/0" Find-NetRoute -RemoteIPAddress 1.1.1.1 ``` The useful values are: ```text AWG InterfaceIndex AWG InterfaceMetric PPP InterfaceIndex PPP InterfaceMetric route metric of both 0.0.0.0/0 entries winning interface for 1.1.1.1 ``` If the AWG default route exists but: ```text Find-NetRoute 1.1.1.1 ``` selects the PPP interface due to the combined metric, that confirms this mechanism directly. A very simple A/B would be: ```text broken state -> temporarily lower AWG interface metric -> re-check Find-NetRoute 1.1.1.1 ``` If the winner immediately changes from PPP to AWG and traffic starts flowing, the regression is isolated. ### Fix direction I would not rely on the route metric alone. When Amnezia activates a full-tunnel prefix on Windows: ```text 0.0.0.0/0 or ::/0 ``` it should explicitly establish the same interface invariant that the underlying `amneziawg-windows` tunnel normally establishes when it sees a default AllowedIP: ```text UseAutomaticMetric = false InterfaceMetric = 0 ``` This can be done after the interface LUID is known and before the default route is made authoritative. Conceptually: ```text create AWG interface ↓ obtain LUID ↓ configure full-tunnel interface metric ↓ install endpoint exclusion ↓ add peer ↓ install 0/0 route ↓ verify Windows best route ↓ wait for handshake ↓ Connected ``` An alternative would be to preserve enough routing intent in the initial tunnel-service configuration for `amneziawg-windows` to perform its normal metric setup, while still using `Table=off`. ### I would also add a routing postcondition For a full-tunnel session, successful activation should verify that a non-excluded public destination resolves to the AWG LUID. For example, conceptually: ```text AllowedIPs contains 0.0.0.0/0 GetBestRoute2(non-excluded IPv4) must return AWG interface ``` before the session is considered healthy. That is stronger than: ```text CreateIpForwardEntry2() returned success ``` because a successfully created route can still lose route selection due to the interface metric. ### Regression cases 1. PPP underlay with a very low interface metric: ```text AWG full tunnel expected best route(public IP) = AWG ``` 2. Ethernet/Wi-Fi underlay with automatic metrics: ```text AWG full tunnel expected = AWG wins regardless of underlay metric ``` 3. Default AllowedIP added after interface creation through UAPI: ```text expected = same routing semantics as default AllowedIP present at initial startup ``` 4. Kill Switch disabled: ```text full-tunnel routing must not silently leak via physical interface ``` 5. Kill Switch enabled: ```text routing must already prefer AWG; WFP must not be relied upon to compensate for a wrong route ``` 6. Endpoint exclusion: ```text VPN server endpoint -> physical interface ordinary public destination -> AWG interface ``` 7. Split-tunnel connection without `0/0`: ```text do not unnecessarily force global AWG interface preference ``` So I would currently classify this as: **high-confidence Windows routing bug.** The source shows that Amnezia removes the default `AllowedIP` before the Windows tunnel service gets the opportunity to disable automatic interface metrics, then later installs only a zero-metric route. On a PPP/multi-route system that can leave the physical default route preferred even though the AWG handshake succeeds. The affected reporter's route/interface metrics would provide the final runtime confirmation.
Author
Owner

@witchlock1111-jpg commented on GitHub (Sep 10, 2026):

I tested the A/B you suggested.

Initially, the routing state was:

AWG:

  • RouteMetric = 0
  • InterfaceMetric = 4230

MTS PPP:

  • RouteMetric = 1
  • InterfaceMetric = 35

Find-NetRoute -RemoteIPAddress 1.1.1.1 selected the MTS interface (ifIndex 41).

I then temporarily changed the interface metrics:

AWG:

  • AutomaticMetric = Disabled
  • InterfaceMetric = 0
  • RouteMetric = 0

MTS PPP:

  • AutomaticMetric = Disabled
  • InterfaceMetric = 5000
  • RouteMetric = 1

Surprisingly, Find-NetRoute -RemoteIPAddress 1.1.1.1 still selected the MTS interface (ifIndex 41).

Actual traffic also continued to use MTS:

  • ping 1.1.1.1 worked
  • tracert -d 1.1.1.1 showed the MTS gateway 100.78.0.1 as the first hop

So in my case, changing the interface metrics alone does not change the selected route, even when AWG has 0/0 with RouteMetric 0 and InterfaceMetric 0, while the MTS interface has InterfaceMetric 5000.

I restored both interfaces to AutomaticMetric afterwards.

<!-- gh-comment-id:5621914946 --> @witchlock1111-jpg commented on GitHub (Sep 10, 2026): I tested the A/B you suggested. Initially, the routing state was: AWG: - RouteMetric = 0 - InterfaceMetric = 4230 MTS PPP: - RouteMetric = 1 - InterfaceMetric = 35 Find-NetRoute -RemoteIPAddress 1.1.1.1 selected the MTS interface (ifIndex 41). I then temporarily changed the interface metrics: AWG: - AutomaticMetric = Disabled - InterfaceMetric = 0 - RouteMetric = 0 MTS PPP: - AutomaticMetric = Disabled - InterfaceMetric = 5000 - RouteMetric = 1 Surprisingly, Find-NetRoute -RemoteIPAddress 1.1.1.1 still selected the MTS interface (ifIndex 41). Actual traffic also continued to use MTS: - ping 1.1.1.1 worked - tracert -d 1.1.1.1 showed the MTS gateway 100.78.0.1 as the first hop So in my case, changing the interface metrics alone does not change the selected route, even when AWG has 0/0 with RouteMetric 0 and InterfaceMetric 0, while the MTS interface has InterfaceMetric 5000. I restored both interfaces to AutomaticMetric afterwards.
Author
Owner

@Gmel2004 commented on GitHub (Sep 10, 2026):

Same problem. VLESS works correctly

<!-- gh-comment-id:5623581460 --> @Gmel2004 commented on GitHub (Sep 10, 2026): Same problem. VLESS works correctly
Author
Owner

@HeisLuka commented on GitHub (Sep 10, 2026):

Thanks, this rules out interface metrics as the sole cause.

Could you please capture one more snapshot while the VPN is connected but traffic is still going through MTS? Run PowerShell as Administrator and paste the full output:

$awg = (Get-NetIPInterface `
    -InterfaceAlias "AmneziaVPN" `
    -AddressFamily IPv4).InterfaceIndex

Get-NetIPInterface `
    -AddressFamily IPv4 `
    -IncludeAllCompartments |
    Where-Object {
        $_.InterfaceIndex -eq $awg -or
        $_.InterfaceIndex -eq 41
    } |
    Format-List `
        InterfaceAlias,
        InterfaceIndex,
        ConnectionState,
        CompartmentId,
        AutomaticMetric,
        InterfaceMetric,
        IgnoreDefaultRoutes,
        WeakHostSend,
        WeakHostReceive

Get-NetIPAddress `
    -InterfaceIndex $awg `
    -AddressFamily IPv4 `
    -IncludeAllCompartments |
    Format-List *

Find-NetRoute -RemoteIPAddress 1.1.1.1 | Format-List *

Find-NetRoute `
    -RemoteIPAddress 1.1.1.1 `
    -InterfaceIndex $awg |
    Format-List *

Get-NetRoute `
    -AddressFamily IPv4 `
    -IncludeAllCompartments |
    Where-Object DestinationPrefix -eq "0.0.0.0/0" |
    Format-List *

The most important fields are:

  • IgnoreDefaultRoutes
  • CompartmentId
  • AddressState
  • DestinationPrefix of the route selected by Find-NetRoute

There is another suspicious detail in the Amnezia Windows code: when a full-tunnel /0 route is enabled, route capture is turned on, but already-existing more-specific PPP routes may not be captured immediately.

So the DestinationPrefix of the route Windows actually selects for 1.1.1.1 is especially important now.

<!-- gh-comment-id:5624268386 --> @HeisLuka commented on GitHub (Sep 10, 2026): Thanks, this rules out interface metrics as the sole cause. Could you please capture one more snapshot while the VPN is connected but traffic is still going through MTS? Run PowerShell as Administrator and paste the full output: ```powershell $awg = (Get-NetIPInterface ` -InterfaceAlias "AmneziaVPN" ` -AddressFamily IPv4).InterfaceIndex Get-NetIPInterface ` -AddressFamily IPv4 ` -IncludeAllCompartments | Where-Object { $_.InterfaceIndex -eq $awg -or $_.InterfaceIndex -eq 41 } | Format-List ` InterfaceAlias, InterfaceIndex, ConnectionState, CompartmentId, AutomaticMetric, InterfaceMetric, IgnoreDefaultRoutes, WeakHostSend, WeakHostReceive Get-NetIPAddress ` -InterfaceIndex $awg ` -AddressFamily IPv4 ` -IncludeAllCompartments | Format-List * Find-NetRoute -RemoteIPAddress 1.1.1.1 | Format-List * Find-NetRoute ` -RemoteIPAddress 1.1.1.1 ` -InterfaceIndex $awg | Format-List * Get-NetRoute ` -AddressFamily IPv4 ` -IncludeAllCompartments | Where-Object DestinationPrefix -eq "0.0.0.0/0" | Format-List * ``` The most important fields are: * `IgnoreDefaultRoutes` * `CompartmentId` * `AddressState` * `DestinationPrefix` of the route selected by `Find-NetRoute` There is another suspicious detail in the Amnezia Windows code: when a full-tunnel `/0` route is enabled, route capture is turned on, but already-existing more-specific PPP routes may not be captured immediately. So the `DestinationPrefix` of the route Windows actually selects for `1.1.1.1` is especially important now.
Author
Owner

@witchlock1111-jpg commented on GitHub (Sep 11, 2026):

Thanks. I captured the requested snapshot while AmneziaVPN was connected, but traffic was still going through MTS.

Here are the results:

AmneziaVPN:

  • InterfaceIndex: 46
  • ConnectionState: Connected
  • CompartmentId: 1
  • AutomaticMetric: Disabled
  • InterfaceMetric: 4230
  • IgnoreDefaultRoutes: Enabled
  • WeakHostSend: Disabled
  • WeakHostReceive: Disabled
  • IPv4Address: 10.8.1.22
  • AddressState: Preferred
  • PrefixLength: 32

MTS:

  • InterfaceIndex: 41
  • ConnectionState: Connected
  • CompartmentId: 1
  • AutomaticMetric: Enabled
  • InterfaceMetric: 35
  • IgnoreDefaultRoutes: Disabled
  • WeakHostSend: Disabled
  • WeakHostReceive: Disabled

Find-NetRoute -RemoteIPAddress 1.1.1.1 selected MTS:

  • InterfaceIndex: 41
  • InterfaceAlias: MTS
  • IPv4Address: 100.126.140.49
  • AddressState: Preferred
  • DestinationPrefix: 0.0.0.0/0
  • RouteMetric: 1
  • InterfaceMetric: 35
  • NextHop: 0.0.0.0
  • CompartmentId: 1

When I explicitly requested Find-NetRoute through the AmneziaVPN interface (InterfaceIndex 46), Windows returned:

"Windows System Error 1231"
"Сетевая папка недоступна"

The full-tunnel route for AmneziaVPN is present:

  • InterfaceIndex: 46
  • InterfaceAlias: AmneziaVPN
  • DestinationPrefix: 0.0.0.0/0
  • RouteMetric: 0
  • InterfaceMetric: 4230
  • NextHop: 0.0.0.0
  • CompartmentId: 1
  • State: Alive

So the interesting part seems to be that the AmneziaVPN /0 route exists in the routing table, but Find-NetRoute cannot find a usable route to 1.1.1.1 through interface 46, while it successfully selects the MTS /0 route.

Also, AmneziaVPN has IgnoreDefaultRoutes = Enabled, while MTS has IgnoreDefaultRoutes = Disabled.

This may be relevant to the routing issue you mentioned.

<!-- gh-comment-id:5638609997 --> @witchlock1111-jpg commented on GitHub (Sep 11, 2026): Thanks. I captured the requested snapshot while AmneziaVPN was connected, but traffic was still going through MTS. Here are the results: AmneziaVPN: - InterfaceIndex: 46 - ConnectionState: Connected - CompartmentId: 1 - AutomaticMetric: Disabled - InterfaceMetric: 4230 - IgnoreDefaultRoutes: Enabled - WeakHostSend: Disabled - WeakHostReceive: Disabled - IPv4Address: 10.8.1.22 - AddressState: Preferred - PrefixLength: 32 MTS: - InterfaceIndex: 41 - ConnectionState: Connected - CompartmentId: 1 - AutomaticMetric: Enabled - InterfaceMetric: 35 - IgnoreDefaultRoutes: Disabled - WeakHostSend: Disabled - WeakHostReceive: Disabled Find-NetRoute -RemoteIPAddress 1.1.1.1 selected MTS: - InterfaceIndex: 41 - InterfaceAlias: MTS - IPv4Address: 100.126.140.49 - AddressState: Preferred - DestinationPrefix: 0.0.0.0/0 - RouteMetric: 1 - InterfaceMetric: 35 - NextHop: 0.0.0.0 - CompartmentId: 1 When I explicitly requested Find-NetRoute through the AmneziaVPN interface (InterfaceIndex 46), Windows returned: "Windows System Error 1231" "Сетевая папка недоступна" The full-tunnel route for AmneziaVPN is present: - InterfaceIndex: 46 - InterfaceAlias: AmneziaVPN - DestinationPrefix: 0.0.0.0/0 - RouteMetric: 0 - InterfaceMetric: 4230 - NextHop: 0.0.0.0 - CompartmentId: 1 - State: Alive So the interesting part seems to be that the AmneziaVPN /0 route exists in the routing table, but Find-NetRoute cannot find a usable route to 1.1.1.1 through interface 46, while it successfully selects the MTS /0 route. Also, AmneziaVPN has IgnoreDefaultRoutes = Enabled, while MTS has IgnoreDefaultRoutes = Disabled. This may be relevant to the routing issue you mentioned.
Author
Owner

@HeisLuka commented on GitHub (Sep 11, 2026):

Thanks — this snapshot is very useful. I re-checked the code against the exact client build you are running (7d4f3e0f5) and the exact Windows backend it uses (awg-windows/3.1.20260814).

The interface metric part is now confirmed.

Amnezia starts the AWG tunnel service with:

Table = off

and deliberately removes the entire [Peer] section before startup.

The AWG Windows backend normally detects a default AllowedIP during initial interface configuration and does:

UseAutomaticMetric = false
Metric = 0

for the tunnel IP interface.

However, because Amnezia removes [Peer] before starting the service, the backend never sees 0.0.0.0/0 at that stage.

Amnezia later adds the peer and:

allowed_ip=0.0.0.0/0

through UAPI, but that does not update the original configuration retained by the interface watcher, so the interface-metric setup is not re-run.

Amnezia then creates the /0 route itself with route metric 0.

That leaves exactly the state from your snapshot:

AmneziaVPN:
route metric       0
interface metric   4230
effective metric   4230

MTS:
route metric       1
interface metric   35
effective metric   36

Windows uses route metric + interface metric for route preference, so MTS winning Find-NetRoute 1.1.1.1 is expected in this state.

There is a second interesting value:

IgnoreDefaultRoutes = Enabled

I could not find code in either the Amnezia client or awg-windows/3.1.20260814 that explicitly enables DisableDefaultRoutes on this interface, so I do not want to assume its origin yet.

But Windows documents this flag as disabling use of default routes on that interface, so it may explain why the interface-constrained lookup returns error 1231.

Could you please do two small A/B tests while the broken VPN connection is still active?

Please keep Kill Switch OFF and split tunneling OFF for these tests, and do not reconnect between the steps.

Test A — change only the AmneziaVPN interface metric
Set-NetIPInterface -InterfaceIndex 46 `
    -AddressFamily IPv4 `
    -AutomaticMetric Disabled `
    -InterfaceMetric 1

Get-NetIPInterface -InterfaceIndex 46 -AddressFamily IPv4 |
    Format-List InterfaceIndex,InterfaceAlias,AutomaticMetric,InterfaceMetric,IgnoreDefaultRoutes,ConnectionState

Find-NetRoute -RemoteIPAddress 1.1.1.1
Find-NetRoute -InterfaceIndex 46 -RemoteIPAddress 1.1.1.1
ping 1.1.1.1

Then restore the original metric before the next test:

Set-NetIPInterface -InterfaceIndex 46 `
    -AddressFamily IPv4 `
    -AutomaticMetric Disabled `
    -InterfaceMetric 4230
Test B — change only IgnoreDefaultRoutes
Set-NetIPInterface -InterfaceIndex 46 `
    -AddressFamily IPv4 `
    -IgnoreDefaultRoutes Disabled

Get-NetIPInterface -InterfaceIndex 46 -AddressFamily IPv4 |
    Format-List InterfaceIndex,InterfaceAlias,AutomaticMetric,InterfaceMetric,IgnoreDefaultRoutes,ConnectionState

Find-NetRoute -RemoteIPAddress 1.1.1.1
Find-NetRoute -InterfaceIndex 46 -RemoteIPAddress 1.1.1.1
ping 1.1.1.1

Then restore it:

Set-NetIPInterface -InterfaceIndex 46 `
    -AddressFamily IPv4 `
    -IgnoreDefaultRoutes Enabled

If neither change works independently, one final combined test would be useful:

Set-NetIPInterface -InterfaceIndex 46 `
    -AddressFamily IPv4 `
    -AutomaticMetric Disabled `
    -InterfaceMetric 1 `
    -IgnoreDefaultRoutes Disabled

Find-NetRoute -RemoteIPAddress 1.1.1.1
Find-NetRoute -InterfaceIndex 46 -RemoteIPAddress 1.1.1.1
ping 1.1.1.1

The distinction matters for the fix:

if Test A alone fixes routing, the client only needs to restore the full-tunnel interface metric invariant;
if Test B is also required, the full-tunnel setup must normalize DisableDefaultRoutes as well.

Thanks — this should let us isolate the exact Windows state that needs to be fixed rather than changing both settings blindly.
<!-- gh-comment-id:5641090965 --> @HeisLuka commented on GitHub (Sep 11, 2026): Thanks — this snapshot is very useful. I re-checked the code against the exact client build you are running (`7d4f3e0f5`) and the exact Windows backend it uses (`awg-windows/3.1.20260814`). The interface metric part is now confirmed. Amnezia starts the AWG tunnel service with: ```text Table = off and deliberately removes the entire [Peer] section before startup. The AWG Windows backend normally detects a default AllowedIP during initial interface configuration and does: UseAutomaticMetric = false Metric = 0 for the tunnel IP interface. However, because Amnezia removes [Peer] before starting the service, the backend never sees 0.0.0.0/0 at that stage. Amnezia later adds the peer and: allowed_ip=0.0.0.0/0 through UAPI, but that does not update the original configuration retained by the interface watcher, so the interface-metric setup is not re-run. Amnezia then creates the /0 route itself with route metric 0. That leaves exactly the state from your snapshot: AmneziaVPN: route metric 0 interface metric 4230 effective metric 4230 MTS: route metric 1 interface metric 35 effective metric 36 Windows uses route metric + interface metric for route preference, so MTS winning Find-NetRoute 1.1.1.1 is expected in this state. There is a second interesting value: IgnoreDefaultRoutes = Enabled I could not find code in either the Amnezia client or awg-windows/3.1.20260814 that explicitly enables DisableDefaultRoutes on this interface, so I do not want to assume its origin yet. But Windows documents this flag as disabling use of default routes on that interface, so it may explain why the interface-constrained lookup returns error 1231. Could you please do two small A/B tests while the broken VPN connection is still active? Please keep Kill Switch OFF and split tunneling OFF for these tests, and do not reconnect between the steps. Test A — change only the AmneziaVPN interface metric Set-NetIPInterface -InterfaceIndex 46 ` -AddressFamily IPv4 ` -AutomaticMetric Disabled ` -InterfaceMetric 1 Get-NetIPInterface -InterfaceIndex 46 -AddressFamily IPv4 | Format-List InterfaceIndex,InterfaceAlias,AutomaticMetric,InterfaceMetric,IgnoreDefaultRoutes,ConnectionState Find-NetRoute -RemoteIPAddress 1.1.1.1 Find-NetRoute -InterfaceIndex 46 -RemoteIPAddress 1.1.1.1 ping 1.1.1.1 Then restore the original metric before the next test: Set-NetIPInterface -InterfaceIndex 46 ` -AddressFamily IPv4 ` -AutomaticMetric Disabled ` -InterfaceMetric 4230 Test B — change only IgnoreDefaultRoutes Set-NetIPInterface -InterfaceIndex 46 ` -AddressFamily IPv4 ` -IgnoreDefaultRoutes Disabled Get-NetIPInterface -InterfaceIndex 46 -AddressFamily IPv4 | Format-List InterfaceIndex,InterfaceAlias,AutomaticMetric,InterfaceMetric,IgnoreDefaultRoutes,ConnectionState Find-NetRoute -RemoteIPAddress 1.1.1.1 Find-NetRoute -InterfaceIndex 46 -RemoteIPAddress 1.1.1.1 ping 1.1.1.1 Then restore it: Set-NetIPInterface -InterfaceIndex 46 ` -AddressFamily IPv4 ` -IgnoreDefaultRoutes Enabled If neither change works independently, one final combined test would be useful: Set-NetIPInterface -InterfaceIndex 46 ` -AddressFamily IPv4 ` -AutomaticMetric Disabled ` -InterfaceMetric 1 ` -IgnoreDefaultRoutes Disabled Find-NetRoute -RemoteIPAddress 1.1.1.1 Find-NetRoute -InterfaceIndex 46 -RemoteIPAddress 1.1.1.1 ping 1.1.1.1 The distinction matters for the fix: if Test A alone fixes routing, the client only needs to restore the full-tunnel interface metric invariant; if Test B is also required, the full-tunnel setup must normalize DisableDefaultRoutes as well. Thanks — this should let us isolate the exact Windows state that needs to be fixed rather than changing both settings blindly.
Author
Owner

@witchlock1111-jpg commented on GitHub (Sep 12, 2026):

Thanks. I completed all three A/B tests while keeping the VPN connected, Kill Switch OFF, and split tunneling OFF.

Test A — InterfaceMetric only

I changed the AmneziaVPN interface metric from 4230 to 1, while keeping IgnoreDefaultRoutes = Enabled.

Result:

  • Find-NetRoute -RemoteIPAddress 1.1.1.1 still selected MTS (InterfaceIndex 41).
  • Find-NetRoute -InterfaceIndex 46 -RemoteIPAddress 1.1.1.1 still returned Windows System Error 1231.
  • ping 1.1.1.1 succeeded, but traffic was still using MTS.

So changing the interface metric alone does not fix the routing.

Test B — IgnoreDefaultRoutes only

I restored the interface metric to 4230 and changed only:

IgnoreDefaultRoutes = Disabled

Result:

  • Find-NetRoute -RemoteIPAddress 1.1.1.1 still selected MTS (InterfaceIndex 41).

  • However, Find-NetRoute -InterfaceIndex 46 -RemoteIPAddress 1.1.1.1 no longer returned Error 1231.

  • It successfully found the AmneziaVPN /0 route:

    InterfaceIndex: 46
    InterfaceAlias: AmneziaVPN
    IPv4Address: 10.8.1.22
    DestinationPrefix: 0.0.0.0/0
    RouteMetric: 0
    InterfaceMetric: 4230
    State: Alive

  • ping 1.1.1.1 succeeded, but the normal route was still MTS.

So changing IgnoreDefaultRoutes alone also does not fix the routing.

Combined test — InterfaceMetric 1 + IgnoreDefaultRoutes Disabled

I then changed both parameters:

  • InterfaceMetric = 1
  • IgnoreDefaultRoutes = Disabled

Result:

Find-NetRoute -RemoteIPAddress 1.1.1.1 selected AmneziaVPN:

InterfaceIndex: 46
InterfaceAlias: AmneziaVPN
IPv4Address: 10.8.1.22
DestinationPrefix: 0.0.0.0/0
RouteMetric: 0
InterfaceMetric: 1
State: Alive

ping 1.1.1.1:

  • 4/4 received
  • average ~72 ms

Most importantly, tracert -d 1.1.1.1 confirmed that the actual traffic was going through the VPN:

1 ~70 ms 10.8.1.0
2 ~70 ms 172.29.172.1
3 ~70 ms 194.87.61.1
...
12 ~72 ms 1.1.1.1

Previously, when traffic was bypassing the VPN, the first hop was the MTS gateway (100.78.x.x).

Therefore, in my case, both changes are required for the full-tunnel traffic to work:

  1. InterfaceMetric must be low (1 in the test)
  2. IgnoreDefaultRoutes must be Disabled

Changing either one independently is not sufficient.

After the tests I restored the original settings:

  • AutomaticMetric = Enabled
  • IgnoreDefaultRoutes = Enabled

The current AmneziaVPN interface state is:

  • InterfaceIndex: 46
  • AutomaticMetric: Enabled
  • InterfaceMetric: 5
  • IgnoreDefaultRoutes: Enabled
  • ConnectionState: Connected

So the test settings have been fully restored.

<!-- gh-comment-id:5644093459 --> @witchlock1111-jpg commented on GitHub (Sep 12, 2026): Thanks. I completed all three A/B tests while keeping the VPN connected, Kill Switch OFF, and split tunneling OFF. Test A — InterfaceMetric only I changed the AmneziaVPN interface metric from 4230 to 1, while keeping IgnoreDefaultRoutes = Enabled. Result: - Find-NetRoute -RemoteIPAddress 1.1.1.1 still selected MTS (InterfaceIndex 41). - Find-NetRoute -InterfaceIndex 46 -RemoteIPAddress 1.1.1.1 still returned Windows System Error 1231. - ping 1.1.1.1 succeeded, but traffic was still using MTS. So changing the interface metric alone does not fix the routing. Test B — IgnoreDefaultRoutes only I restored the interface metric to 4230 and changed only: IgnoreDefaultRoutes = Disabled Result: - Find-NetRoute -RemoteIPAddress 1.1.1.1 still selected MTS (InterfaceIndex 41). - However, Find-NetRoute -InterfaceIndex 46 -RemoteIPAddress 1.1.1.1 no longer returned Error 1231. - It successfully found the AmneziaVPN /0 route: InterfaceIndex: 46 InterfaceAlias: AmneziaVPN IPv4Address: 10.8.1.22 DestinationPrefix: 0.0.0.0/0 RouteMetric: 0 InterfaceMetric: 4230 State: Alive - ping 1.1.1.1 succeeded, but the normal route was still MTS. So changing IgnoreDefaultRoutes alone also does not fix the routing. Combined test — InterfaceMetric 1 + IgnoreDefaultRoutes Disabled I then changed both parameters: - InterfaceMetric = 1 - IgnoreDefaultRoutes = Disabled Result: Find-NetRoute -RemoteIPAddress 1.1.1.1 selected AmneziaVPN: InterfaceIndex: 46 InterfaceAlias: AmneziaVPN IPv4Address: 10.8.1.22 DestinationPrefix: 0.0.0.0/0 RouteMetric: 0 InterfaceMetric: 1 State: Alive ping 1.1.1.1: - 4/4 received - average ~72 ms Most importantly, tracert -d 1.1.1.1 confirmed that the actual traffic was going through the VPN: 1 ~70 ms 10.8.1.0 2 ~70 ms 172.29.172.1 3 ~70 ms 194.87.61.1 ... 12 ~72 ms 1.1.1.1 Previously, when traffic was bypassing the VPN, the first hop was the MTS gateway (100.78.x.x). Therefore, in my case, both changes are required for the full-tunnel traffic to work: 1. InterfaceMetric must be low (1 in the test) 2. IgnoreDefaultRoutes must be Disabled Changing either one independently is not sufficient. After the tests I restored the original settings: - AutomaticMetric = Enabled - IgnoreDefaultRoutes = Enabled The current AmneziaVPN interface state is: - InterfaceIndex: 46 - AutomaticMetric: Enabled - InterfaceMetric: 5 - IgnoreDefaultRoutes: Enabled - ConnectionState: Connected So the test settings have been fully restored.
Author
Owner

@witchlock1111-jpg commented on GitHub (Sep 13, 2026):

Thanks for looking into this and fixing the issue! I really appreciate it.

<!-- gh-comment-id:5651948128 --> @witchlock1111-jpg commented on GitHub (Sep 13, 2026): Thanks for looking into this and fixing the issue! I really appreciate it.
Author
Owner

@witchlock1111-jpg commented on GitHub (Oct 23, 2026):

Hello!

I'd like to follow up on this issue.

During our previous tests, we confirmed that VPN traffic works correctly only when both settings are changed:

  • InterfaceMetric = 1
  • IgnoreDefaultRoutes = Disabled

However, this was only a manual workaround, not a permanent fix in the application.

Has there been any progress on fixing this issue in the Windows client?

Is an official fix planned for an upcoming release, or has it already been addressed in a newer version?

Thank you for your work!

<!-- gh-comment-id:6358273565 --> @witchlock1111-jpg commented on GitHub (Oct 23, 2026): Hello! I'd like to follow up on this issue. During our previous tests, we confirmed that VPN traffic works correctly only when both settings are changed: - `InterfaceMetric = 1` - `IgnoreDefaultRoutes = Disabled` However, this was only a manual workaround, not a permanent fix in the application. Has there been any progress on fixing this issue in the Windows client? Is an official fix planned for an upcoming release, or has it already been addressed in a newer version? Thank you for your work!
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#1457
No description provided.