10
9
Fork
You've already forked linux-app
14

NM WG: Fix allow LAN handling with split tunneling #637

Merged
jwijenbergh merged 1 commit from fix-split-tunnel-lan into master 2025年05月20日 13:29:11 +02:00

In the more strict allow LAN handling since 4.4.99.0, we made sure that VPN interface IP ranges
were never taken from the main routing table by first checking the non-default routes
of the WG routing table. But as in split tunneling all routes are in the WireGuard routing
table, this can lead to LAN being blocked as well if the AllowedIPs contains these private IP
ranges. Additionally, this can lead to ProxyGuard not working if the AllowedIPs contains the
ProxyGuard server peer IP address.

This fix makes sure that the WG routing table is only checked first for packets going to the VPN
interface IPs. We make sure to only do this when the VPN interface IP addresses are contained in
one of the LAN whitelist. As we do not want to check the WG routing table first for non-LAN IPs.

In the more strict allow LAN handling since 4.4.99.0, we made sure that VPN interface IP ranges were never taken from the main routing table by first checking the non-default routes of the WG routing table. But as in split tunneling *all* routes are in the WireGuard routing table, this can lead to LAN being blocked as well if the AllowedIPs contains these private IP ranges. Additionally, this can lead to ProxyGuard not working if the AllowedIPs contains the ProxyGuard server peer IP address. This fix makes sure that the WG routing table is only checked first for packets going to the VPN interface IPs. We make sure to only do this when the VPN interface IP addresses are contained in one of the LAN whitelist. As we do not want to check the WG routing table first for non-LAN IPs.
NM WG: Fix allow LAN handling with split tunneling
All checks were successful
/ test (push) Successful in 3m53s
db52410b25
In the more strict allow LAN handling since 4.4.99.0, we made sure that VPN interface IP ranges
were never taken from the main routing table by first checking the non-default routes
of the WG routing table. But as in split tunneling *all* routes are in the WireGuard routing
table, this can lead to LAN being blocked as well if the AllowedIPs contains these private IP
ranges. Additionally, this can lead to ProxyGuard not working if the AllowedIPs contains the
ProxyGuard server peer IP address.
This fix makes sure that the WG routing table is only checked first for packets going to the VPN
interface IPs. We make sure to only do this when the VPN interface IP addresses are contained in
one of the LAN whitelist. As we do not want to check the WG routing table first for non-LAN IPs.
Author
Owner
Copy link

Fixes: #635

Fixes: #635
jwijenbergh deleted branch fix-split-tunnel-lan 2025年05月20日 13:29:13 +02:00
Sign in to join this conversation.
No reviewers
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
eduVPN/linux-app!637
Reference in a new issue
eduVPN/linux-app
No description provided.
Delete branch "fix-split-tunnel-lan"

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?