Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split tunnel search domains do not work #524

Open
ghost opened this issue Sep 19, 2023 · 1 comment
Open

Split tunnel search domains do not work #524

ghost opened this issue Sep 19, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 19, 2023

We found out in #496 that WireGuard does not support "match domains" on macOS, but it also does not properly support search domains in "split tunnel" configurations.

Take the below example, the PrivateKey value has been replaced by an invalid key.

# Portal: https://vpn-next.tuxed.net/vpn-user-portal/
# Profile: Default (default)
# Expires: 2024-09-19T19:30:20+00:00

[Interface]
MTU = 1392
PrivateKey = iH7dv30D/4M2Ld00hyywI2owsp6Kuxhh5vh3KPKj40w=
Address = 10.146.176.17/24,fdee:1ead:29e8:22a2::11/64
DNS = 9.9.9.9,2620:fe::fe,tuxed.net

[Peer]
PublicKey = Jw13c6BQ1f8YEoq/XPLRPvyrD9J0Ak/bceChbDD5u3Q=
AllowedIPs = 10.146.176.0/24,192.168.1.0/24,fd11::/64,fdee:1ead:29e8:22a2::/64
Endpoint = vpn-next.tuxed.net:51820

If we make AllowedIPs the following, it does work: AllowedIPs = 0.0.0.0/0,::/0

By "it", we mean here, typing for example ping www in the Terminal which would result in macOS figuring out it can put .tuxed.net (as listed under DNS) behind www, which then results in an actual ping of www.tuxed.net.

See also: https://lists.zx2c4.com/pipermail/wireguard/2021-July/006927.html

It seems it has been fixed in Tailscale (link to fix in above mailing list post), but never upstreamed to WireGuard proper?

@ghost ghost changed the title (WireGuard) Split tunnel search domains do not work Split tunnel search domains do not work Sep 19, 2023
@roop
Copy link
Collaborator

roop commented Oct 5, 2023

I can reproduce the issue. Will investigate more and let you know. Could be related to: https://developer.apple.com/forums/thread/113252

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant