mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-12-03 19:50:19 +07:00
[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
No Branch/Tag specified
dev
feat/pages-ui-tests
feat/otp-free-users-login
fix/refresh-external-ip-and-proxy-config-in-start-sh
fix/ios-keep-nav-bar-below-status-bar-and-lift-rename-sheet-over-keyboard
fix/ios-stop-hev-before-restarting-xray-tunnel
feat/whatsapp-proxy
fix/keep-socks-and-pfx-secrets-out-of-command-lines
fix/pass-the-tunnel-config-over-a-named-pipe
feat/test-xray-pages-ui
fix/expect-server-xray-v26.10.31
fix/align-xray-settings-with-core-defaults-and-add-contract-tests
feat/xtun
feat/separated-ui-models-and-controllers-tests
fix/keep-default-godebug-when-disabling-async-preemption
feat/otp-login
feat/android-tests
fix/server-removal-navigation-and-sheet-reopen
feat/add-deep-link
feat_copy_docker_configs
fix/gateway-requests-on-slow-or-blocked-dns
fix/bypass-proxy
feat/api-tests
fix/serialize-log-record-writes-and-pin-log-date-format-locale
fix/libagw-review-fixes
fix/ios-xray-ipv6-leak
fix/macos-xray-ipv6-leak
feat/add-support-include-split-tunnel
fix/win-xray-app-split-tunneling
fix/bug-when-saving-after-canceling
fix/xray-reconnect-crash
fix/share-empty-config-on-ssh-timeout
fix/ssh-credentials-input
fix/updater-verify-signature
fix/async-ssh-threading
fix/xray-check-inet-and-liveness-monitor
fix/selfhosted-server-installations
feat/add-support-ikev2-macos
fix/icons-different-color-themes
feat/add_support_arm_windows
feat/fixed-push-notifications-on-VPN-connect-disconnect-2
feat/implement-QR-code-generation-and-scanning
feat/file-password-protection
feat/add-support-split-tunnel-macos
feat/tests
fix/android-register-unacknowledged-purchase
fix/share_on_linux
mirroring-to-outside
feat/self-diagnostics-log
feat/amnezia-free-vless-switch
fix/conan_build_android_on_win
fix/linux-reconnect-dns-reliability
fix/windows-connection-stability
fix/linux-reconnect-refactoring
fix/ios-groupidentifier-order
feat/xray-subscription-link
fix/minor-fixes
fix/xray-config-inplace-edit
feat/amnezia-sdk-typed-api
feat/amnezia-sdk-integration
feat/force-update-native
refactor/marketplace-update-popup
feat/force-update
fix/valnurability_dev
chore-xcode-version
fix/empty-i1-i5
build_qt_6_10_1
master
feat/protocol-selection
fix/openvpn_install
feat/locations_change
feat/locations_change_rework
feature/local-proxy-integration
fix/filepicker_atv
fix_valnurability
fix/macos-ne-codesign-4.8.19.0
temp-branch-for-testing
fix/rebased_4_8_19_linux_fix_error
feat/proxy-storage-cache
fix/zeroed-params
fix/killswitch-blocknets-linux
update/translation_RU
fix/self_hosted_reinstall_error
feat/selfhosted-dns
fix/agp_version_up
feat/switch_to_alive_protocol
feat/support_multipeer
server_scripts_update
fix/extended-vless-configuration
chore/apple-ci-cd-macos-versions
feat/add-telemt
fix/android_keystore_read_error
feat/add-mtproxy
chore/bump-qt-version
fix/make_dbus_async
feature/dns
rebase/apple-tv-target-on-conan
fix/outbound_freedom_xray_with_dns_fix
feat/apk_support
feat/fallback-proxy
feat/apple-tv-target
fix/dns_reconnection_issue
feat/fixed-push-notifications-on-VPN-connect-disconnect
fix/linux-firewall
docker-regional-locks
appstore-review-popup
feat/storekit2
fix/uninstall-split-tunnelling-driver
revert-2376-chore/license-file
support_16kb_android
bump_version
feat_add_review_android
bugfix/translation-absence-on-subscription-key-page
feat/location-separation-by-region
bugfix/text-moving-when-resing-window
fix_backup
feature/add-purchase-android
bugfix/moved-text-while-resizing-window
bugfix/incorrect-killswitch-restore-from-backup
fix/backup-exclude-secondary-api-configs
feat/proxy-fields-for-dev-console
bugfix/ovpn-ios-fix
bugfix/linux-bundle-libraries
fix/xray-app-split-win
fix/upload-to-s3
chore/add-release-date-upload
feat_add_webview_support
feature/configuration-transfer-through-qr
feat/bot-key-unlink-device
fix/ad-link-lang-support
fix/qsecuresettings-with-android
feat/add-support-arm64-win
spanish-translations
fix/context-menu
feat/add-system-dns-support
fix/qt6-9-support
fix/qt6_9_support
bugfix/strict-killswitch-ui
android-7
chore/minor-bugfixes
feature/awg-net-fix-macos-wakeup
fixbug/ios18
bugfix/ios-ne-crash
fix/linux-tray-quit-button
cryptpad-support
bugfix/disable-linux-killswitch
fix/minor-ui-fixes
feature/setup-guid-tun2socks
feature/linux-ipsec
feature/ipsec-linux
refactoring/server-config-in-classes
feature/macos-ipsec
fix/ui-fixes-after-merge-with-d20ed4a
chore/focus_control_after_qt_6.9_migration
feature/integrate-xray-as-a-library
maxos-awg-fix
feature/add-new-awg-docker-image
chore/update-3rd-prebuild
feature/test-news
fix/api-conf-files
bugfix/split-tunneling-with-api-config
bugfix/ios-awg-new-fields
feature/special-handshake-2
feat/xray-api-support
fix/desktop-entry
bugfix/shadowsocks-cipher-setting-not-changing
feature/update-tap
bugfix/openvpn_import_fix
feature/ability-to-change-port-after-installing-xray
bugfix/strict-mode-ovpn
bugfix/win-ipv6-ovpn
bugfix/subnet-adress-setting
exception-podman-docker
bugfix/fix-listviewtype-scrolling
bugfix/win-disabled-ipv6
bugfix/win-ipv6-disabled-ovpn
feature/killswitch-strict-mode
feature/awg-network-check
feature/empty-split-tunneling-list
feature/support-info
chore/update-go-version
checking-Linux-version
update_server_scripts
bugfix/button-selection-easy-setup-page
feature/old-api-proxy
patch/user-checking
fix/correcting-version
support-podman
support_podman
user-checking-patch
feature/check-docker-version
feature/allowed-dns-list
without_lsof
chore/error-body
Update-amneziavpn_ru_RU
shiroow-patch-8
shiroow-patch-7
shiroow-patch-6
shiroow-patch-5
shiroow-patch-4
shiroow-patch-3
shiroow-patch-2
shiroow-patch-1
check_sudo_permissions
feature/euphoria
add_next_octet_to_ip_settings
bugfix/mobile-controllers-init
euphoria
bugfix/android-crush
feature/macox-network-extension
bugfix/pre-release-hotfixes
bugfix/ipsec-pfs
chore/ios-site-links
checking_sudo_permissions
feature/android-tv
improve_navigation_cpp
bugfix/linux-firewall-install
fixbug/wireguard-handshake-time
ReadmeRu_full
feature/xray-user-management
feature/subscription-end-date
chore/clang-format
feature/ru-in-readme
chore/increased-api-timeout
chore/deploy-workflow
bugfix/services-list-scroll
wheel_group_suppor
chore/bump-xcode-version
fixbug/mac-network-extension
feature/android-gpb
feature/page-home-drawer-country-selection
checking-sudo-users
bugfix/service-info-from-response
fixbug/build-macos-ne-2
android-qt-6.7.3
fixbug/build-macos-ne
bugfix/wg-windows-log-folder
feature/psk-key-api-request
bugfix/user-management-qml-warnings
fix/macos-network-extension
fixbug/macos-NE-build
bugfix/fixed-isDevEnv-initialization
bugfix/revert-ios-ovpn
feature/tun2socksSrv
fix/disable_singleapp
feature/awg-wg-name-resolving
feature/disable-dhcp
bugfix/allowed-ips-old-configs
feature/goodbyedpi
feature/add-exception-log
refactoring/remove-ipv6-from-default-routes
refactoring/singleapplication-submodule
macos-dirty-build
test/gateway
Update-amneziavpn_fa_IR.ts
bugfix/ipsec-win
fix/xray-custom-port
improve-tab-navigation
test-win-11
feature/android-tv-remote-control-support
KsZnak-patch-1
feature/awg-wg-qr
bugfix/fix-loopback-splittunel
fix/setup_host_firewall
feature/android-xray
feature/openvpn-pass
feature/connection-string
fix/clickable-errors
bugfix/api_1100_fix
feature/graphview
testsvg
feature/update-win-awg
feature/open-as-amnezia
feature/update-mozilla-upstream
bugfix/qr-code-cutting
feature/native-wg-psk
test/awg-centos
bugfix/hide_error
feature/add-uninstaller-checkbox
bugfix/cancel-button-on-install-page
bugfix/anchors-page-home-warning
awg-udptlspipe
button-focus-fix
revert-677-fix/logger
bugfix/Revert_PR_596
bugfix/allowed-ips-api-configs
bugfix/on-escape-pressed
feature/auto-scroll-for-server-selection-list
fix/ui-fixes
translations/update_fa_IR.ts
feature/new-awg-docker-container
bugfix/awg_ipv6_fix
feature/tab-navigation
fix/username-no-autocapitalization
sure
refactoring/servers-model-cleanup
feature/wg-mtu-setup-ios
3rd_adaptation_to_diff_OS
sudo_not_found
test/docker-ce
bugfix/double_clear_server_from_amnezia
fix/android
client/3rd-prebuilt
revert-559-KsZnak-translation-ru-ex
KsZnak-translation-ru-ex
KsZnak-br1
KsZnak-text-change
feature/api-awg
feature/error-code-output
feature/win_x32_builds
text/debug-output
feature/ovpn3-desktop-cli
bugfix/secureqsettings-deadlock
refactoring/change-settings-when-connected
files_check
ArchLinux-support
second_adaptation_to_diff_os
sudo
refactoring/android-build
adaptation_to_different_os
feature/online_installer_for_v4
update_to_r2
bugfix/return-after-installation
feature/custom_drawer_component
bugfix/split-tunneling
bugfix/existing-awg-container
revert-370-feature/custom_drawer_component
bugfix/adapted_awg_questiondrawer
bugfix/updated_drawer_height_pageserverdata
bugfix/translated_new_source_strings_to_chinese
feature/split-tunneling-config
feature/accessibility-support
branch_connectivity_change_fix
feature/ikev2_android
android_ss_transport
bugfix/macos_fixes
feature/nextcloud-support
feature/macos_network_extension
android_pt_transport_source
feature/ios-openvpn3-pluggable-transport-Cloak
bugfix/cloak_for_desktops_fix
arm-build-macos
fix-macos-build-brew
bugfix/ios-build-openvpnadapter-from-source
feature/download-native-wireguard-config-on-connect
feature/v2ray-container
bugfix/dpkg-busy-checking-stuck
feature/online-installer
dev-killswitch
dev-netadapters
5.1.0.6
5.0.4.2
5.0.4.1
5.0.4.0
5.0.3.0
5.0.2.1
5.0.2.0
5.0.1.5
5.0.0.5
5.0.0.2
4.8.21.0
4.8.19.0
4.8.18.0
4.8.17.0
4.8.16.0
4.8.15.4
4.8.15.0
4.8.14.5
4.8.14.1
4.8.12.9
4.8.12.8
4.8.12.7
4.8.12.6
4.8.11.4
4.8.11.3
4.8.11.2
4.8.11.1
4.8.11.0
4.8.10.0
4.8.9.2
4.8.9.1
4.8.9.0
4.8.8.3
4.8.8.2
4.8.8.1
4.8.7.2
4.8.7.1
4.8.7.0
4.8.6.0
4.8.5.0
4.8.4.5
4.8.4.4
4.8.4.3
4.8.4.2
4.8.4.1
4.8.4.0
4.8.3.2
4.8.3.1
4.8.2.3
4.8.1.9
4.8.1.0
4.8.0.5
4.7.0.0
4.6.0.3
4.6.0.1
4.5.3.0
4.5.0.0
4.4.0.0
4.3.0.0
4.2.1.0
4.2.0.1
4.1.2.0_cloak_pt_experimental
4.1.0.1
4.0.8
3.1.0
3.0.8
3.0.7
3.0.5
2.1.2
2.1.0
2.0.10
2.0.9
2.0.8
2.0.7
2.0.6
2.0.5
2.0.1
2.0
1.9.1
1.9
1.8
1.7
1.6
1.5
1.4
1.3
1.2
1.1
1.0
No labels
pull-request
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
7d4f3e0f5What happens
Split tunneling is disabled.
Tests performed
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.
@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 :(
@HeisLuka commented on GitHub (Sep 9, 2026):
I checked this against both
5.0.1.5and currentdev.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,
LocalSocketControllerproduces:Daemon::activate()then roughly does:On WiPrefix()` installs the default route directly into the AWG interface:
At first sight that looks sufficient.
But on Windows the effective routing preference is not just:
It is:
Microsoft documents
MIB_IPFORWARD_ROW2::Metricexplicitly as only the route-metric offset.Amnezia bypasses the normal AWG interface-metric setup
The exact AWG Windows package used by
5.0.1.5is:In its
configureInterface()implementation, when a default AllowedIP is present, it normally does:The same exists for IPv6.
That is important because it guarantees that a route with:
also has:
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:The tunnel service therefore starts with effectively:
Inside
amneziawg-windowsthis means:and consequently the normal:
path is not executed.
The peer is added only afterwards through UAPI:
but that UAPI update changes the AWG device configuration; it does not replace the original
conf.Configretained by the Windows tunnel interface watcher.So adding
0.0.0.0/0later does not retroactively execute the interface-metric setup.Effective state
The resulting state can therefore be:
Windows compares:
If:
the physical PPP default route wins.
That matches the report extremely well:
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:
while the ordinary data path remains wrong:
Daemon::checkHandshake()subsequently uses the successful peer handshake to emitconnected.So:
currently does not imply:
Why Kill Switch makes the failure complete
The report also says:
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:
rather than being redirected into AWG.
This is still present in current dev
The relevant
WireguardUtilsWindows::addInterface()/updatePeer()/updateRoutePrefix()implementation in currentdevis the same as in5.0.1.5.Current
devstill:Table=off;[Peer]before startup;AllowedIPslater through UAPI;0/0route with route metric0;One diagnostic would confirm this on the affected machine
While the broken connection is active, capture:
The useful values are:
If the AWG default route exists but:
selects the PPP interface due to the combined metric, that confirms this mechanism directly.
A very simple A/B would be:
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:
it should explicitly establish the same interface invariant that the underlying
amneziawg-windowstunnel normally establishes when it sees a default AllowedIP:This can be done after the interface LUID is known and before the default route is made authoritative.
Conceptually:
An alternative would be to preserve enough routing intent in the initial tunnel-service configuration for
amneziawg-windowsto perform its normal metric setup, while still usingTable=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:
before the session is considered healthy.
That is stronger than:
because a successfully created route can still lose route selection due to the interface metric.
Regression cases
0/0:So I would currently classify this as:
high-confidence Windows routing bug.
The source shows that Amnezia removes the default
AllowedIPbefore 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.
@witchlock1111-jpg commented on GitHub (Sep 10, 2026):
I tested the A/B you suggested.
Initially, the routing state was:
AWG:
MTS PPP:
Find-NetRoute -RemoteIPAddress 1.1.1.1 selected the MTS interface (ifIndex 41).
I then temporarily changed the interface metrics:
AWG:
MTS PPP:
Surprisingly, Find-NetRoute -RemoteIPAddress 1.1.1.1 still selected the MTS interface (ifIndex 41).
Actual traffic also continued to use MTS:
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.
@Gmel2004 commented on GitHub (Sep 10, 2026):
Same problem. VLESS works correctly
@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:
The most important fields are:
IgnoreDefaultRoutesCompartmentIdAddressStateDestinationPrefixof the route selected byFind-NetRouteThere is another suspicious detail in the Amnezia Windows code: when a full-tunnel
/0route is enabled, route capture is turned on, but already-existing more-specific PPP routes may not be captured immediately.So the
DestinationPrefixof the route Windows actually selects for1.1.1.1is especially important now.@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:
MTS:
Find-NetRoute -RemoteIPAddress 1.1.1.1 selected MTS:
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:
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.
@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:
@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:
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:
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:
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:
Changing either one independently is not sufficient.
After the tests I restored the original settings:
The current AmneziaVPN interface state is:
So the test settings have been fully restored.
@witchlock1111-jpg commented on GitHub (Sep 13, 2026):
Thanks for looking into this and fixing the issue! I really appreciate it.
@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 = 1IgnoreDefaultRoutes = DisabledHowever, 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!