[GH-ISSUE #2932] Windows: Application Split Tunneling ignores excluded applications and injects conflicting host routes #1338

Open
opened 2026-10-14 03:40:29 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @GhostlyMist on GitHub (Aug 4, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/2932

Environment
OS: Windows 11 25H2
AmneziaVPN: 5.0.0.5
Protocol: AmneziaWG
KillSwitch: Disabled
Split tunneling mode:
Applications from the list should NOT use VPN
Problem

Application Split Tunneling does not work.

Applications added to the exclusion list continue to use the VPN interface instead of the local network.

The issue has been reproduced with multiple applications:

1cv8c.exe
1cv8s.exe
browser.exe (Yandex Browser)
ping.exe

None of the excluded applications bypass the VPN.

Network topology
Windows PC
|
192.168.40.4 (Linux gateway)
|
Corporate VPN
|
192.168.99.220 (1C Server)

The Windows PC has no direct route to the remote network.

All traffic is normally sent to the Linux gateway (192.168.40.4), which forwards packets through a corporate VPN.

Everything works correctly until AmneziaVPN is enabled.

WireGuard configuration

The generated WireGuard configuration is standard:

AllowedIPs = 0.0.0.0/0
AllowedIPs = ::/0

No routes for:

192.168.40.0/24
192.168.99.220

exist in the WireGuard configuration.

Steps to reproduce
Enable Application Split Tunneling.
Select Applications from the list should NOT use VPN.
Add an application (for example ping.exe).
Connect to AmneziaWG.
Run:
tracert 8.8.8.8

Expected:

192.168.40.4

Actual:

10.8.1.0
172.29.172.1
...

The excluded application still uses the VPN.

The same behavior is observed with:

browser.exe
1cv8c.exe
1cv8s.exe
Additional investigation

While AmneziaVPN is running, it dynamically injects additional routes into the Windows routing table.

Example:

192.168.40.0/24 On-link 10.8.1.8
192.168.40.119/32 On-link 10.8.1.8
192.168.99.220/32 On-link 10.8.1.8

These routes are not present in the WireGuard configuration.

After closing the AmneziaVPN client, these dynamically created routes immediately disappear.

Additional test

A manual route was added:

route add 192.168.99.220 mask 255.255.255.255 192.168.40.4 if 15

Windows routing table then contained:

192.168.99.220/32 -> 192.168.40.4 (Ethernet)
192.168.99.220/32 -> On-link 10.8.1.8

Despite the manual route, Windows still selected the VPN route created by Amnezia.

Expected behavior

Applications listed in Split Tunneling should bypass the VPN.

The client should not inject conflicting host routes that force excluded applications through the VPN interface.

Actual behavior

Excluded applications continue using the VPN because dynamically created host routes redirect traffic to the WireGuard interface.

Notes

The issue was reproduced after upgrading to AmneziaVPN 5.0.0.5.

The same behavior was also observed on the previous client version.

The investigation included route analysis, traceroute testing, manual route injection, WireGuard configuration verification, and comparison of the routing table before connection, during connection, and after closing the client.

Investigation performed collaboratively with ChatGPT using a step-by-step diagnostic approach.

Originally created by @GhostlyMist on GitHub (Aug 4, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/2932 Environment OS: Windows 11 25H2 AmneziaVPN: 5.0.0.5 Protocol: AmneziaWG KillSwitch: Disabled Split tunneling mode: Applications from the list should NOT use VPN Problem Application Split Tunneling does not work. Applications added to the exclusion list continue to use the VPN interface instead of the local network. The issue has been reproduced with multiple applications: 1cv8c.exe 1cv8s.exe browser.exe (Yandex Browser) ping.exe None of the excluded applications bypass the VPN. Network topology Windows PC | 192.168.40.4 (Linux gateway) | Corporate VPN | 192.168.99.220 (1C Server) The Windows PC has no direct route to the remote network. All traffic is normally sent to the Linux gateway (192.168.40.4), which forwards packets through a corporate VPN. Everything works correctly until AmneziaVPN is enabled. WireGuard configuration The generated WireGuard configuration is standard: AllowedIPs = 0.0.0.0/0 AllowedIPs = ::/0 No routes for: 192.168.40.0/24 192.168.99.220 exist in the WireGuard configuration. Steps to reproduce Enable Application Split Tunneling. Select Applications from the list should NOT use VPN. Add an application (for example ping.exe). Connect to AmneziaWG. Run: tracert 8.8.8.8 Expected: 192.168.40.4 Actual: 10.8.1.0 172.29.172.1 ... The excluded application still uses the VPN. The same behavior is observed with: browser.exe 1cv8c.exe 1cv8s.exe Additional investigation While AmneziaVPN is running, it dynamically injects additional routes into the Windows routing table. Example: 192.168.40.0/24 On-link 10.8.1.8 192.168.40.119/32 On-link 10.8.1.8 192.168.99.220/32 On-link 10.8.1.8 These routes are not present in the WireGuard configuration. After closing the AmneziaVPN client, these dynamically created routes immediately disappear. Additional test A manual route was added: route add 192.168.99.220 mask 255.255.255.255 192.168.40.4 if 15 Windows routing table then contained: 192.168.99.220/32 -> 192.168.40.4 (Ethernet) 192.168.99.220/32 -> On-link 10.8.1.8 Despite the manual route, Windows still selected the VPN route created by Amnezia. Expected behavior Applications listed in Split Tunneling should bypass the VPN. The client should not inject conflicting host routes that force excluded applications through the VPN interface. Actual behavior Excluded applications continue using the VPN because dynamically created host routes redirect traffic to the WireGuard interface. Notes The issue was reproduced after upgrading to AmneziaVPN 5.0.0.5. The same behavior was also observed on the previous client version. The investigation included route analysis, traceroute testing, manual route injection, WireGuard configuration verification, and comparison of the routing table before connection, during connection, and after closing the client. Investigation performed collaboratively with ChatGPT using a step-by-step diagnostic approach.
Author
Owner

@TheHett commented on GitHub (Aug 21, 2026):

same

<!-- gh-comment-id:5368042864 --> @TheHett commented on GitHub (Aug 21, 2026): same
Author
Owner

@ikonnikoff commented on GitHub (Sep 21, 2026):

Same problem there. Application Split Tunneling does not work correctly with excluded apps.
Seems like its old problem, as there was several issues and reddit posts with this problem. Current solution - switch from amnezia VPN, which is sad.

<!-- gh-comment-id:5757370918 --> @ikonnikoff commented on GitHub (Sep 21, 2026): Same problem there. Application Split Tunneling does not work correctly with excluded apps. Seems like its old problem, as there was several issues and reddit posts with this problem. Current solution - switch from amnezia VPN, which is sad.
Author
Owner

@Rockivan007 commented on GitHub (Oct 7, 2026):

Same problem

<!-- gh-comment-id:6048882332 --> @Rockivan007 commented on GitHub (Oct 7, 2026): Same problem
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#1338
No description provided.