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

Search domains not applying when VPN not default gateway #298

Open
airforceixi opened this issue May 10, 2023 · 7 comments
Open

Search domains not applying when VPN not default gateway #298

airforceixi opened this issue May 10, 2023 · 7 comments
Labels
bug Something isn't working macOS Related to macOS app

Comments

@airforceixi
Copy link

Running 2.1.1 (3468) on macOS 13.3.1 (a), search domains are not applied to the DNS configuration when not using the VPN connection as a default gateway. See screenshots below.

Default Gateway Only Routed Networks Only Routed Networks - VPN Log
@keeshux keeshux added this to the 2.2.0 milestone May 11, 2023
@keeshux keeshux added the bug Something isn't working label May 11, 2023
@keeshux
Copy link
Member

keeshux commented May 11, 2023

From my tests with gateway manually disabled, there's more to this:

  • Server-sent DNS servers are not applied
  • Server-sent DNS search domains are applied, just not the domain name

I'm puzzled...

@airforceixi
Copy link
Author

From my tests with gateway manually disabled, there's more to this:

* Server-sent DNS servers are not applied

* Server-sent DNS search domains are applied, just not the domain name

I'm puzzled...

I haven't tested with a server that pushes default route, as my server only pushes internal routes. But when using "auto" I get the appropriate routes and appropriate DNS servers, just not the search domain. If I disable auto and force it to be the default route, everything works as expected.

From your testing/perspective, if the server is pushing only the default route and you disable it, DNS may not work at all because the routes to the DNS server provided don't exist (unless you specify those manually.)

@keeshux keeshux self-assigned this May 21, 2023
@keeshux keeshux removed this from the 2.2.0 milestone Jul 23, 2023
@keeshux keeshux removed their assignment Jul 23, 2023
@keeshux
Copy link
Member

keeshux commented Jul 23, 2023

It might well be a NetworkExtension bug. Gotta postpone this for now, further research is needed.

@keeshux keeshux self-assigned this Jul 23, 2023
@keeshux keeshux changed the title Search Domains Not Applying DNS settings not applying when the VPN is not the default gateway Sep 17, 2023
@keeshux keeshux changed the title DNS settings not applying when the VPN is not the default gateway DNS settings not applying when VPN not default gateway Sep 17, 2023
@keeshux keeshux removed their assignment Dec 14, 2023
@airforceixi
Copy link
Author

Adding an update: This is still happening on the latest macOS and I can also confirm the same occurs on iOS/iPadOS and with both OpenVPN and Wireguard configurations. This is with the latest AppStore version as well as the latest iOS/iPadOS/macOS. You may be on to something about it being a NetworkExtension bug.

Possibly related: lately sometimes when I migrate from WiFi to Cell something in the VPN breaks causing all apps that require network to fail. I was able to briefly test on my phone that I was able to ping non-VPN and VPN IPs but all DNS queries were failing. Toggling the VPN connection off and then back on resolves the issue.

@keeshux keeshux added this to the 3.0.0 / 2. Features milestone Oct 1, 2024
@keeshux keeshux added the macOS Related to macOS app label Oct 1, 2024
@keeshux keeshux changed the title DNS settings not applying when VPN not default gateway Search domains not applying when VPN not default gateway Oct 1, 2024
@keeshux
Copy link
Member

keeshux commented Oct 1, 2024

Based on my recent tests, I deem this a NetworkExtension bug.

@keeshux keeshux removed this from the 3.0.0 / 2. Features milestone Oct 1, 2024
@keeshux
Copy link
Member

keeshux commented Nov 19, 2024

This might be related: #503

@keeshux
Copy link
Member

keeshux commented Dec 13, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macOS Related to macOS app
Projects
None yet
Development

No branches or pull requests

2 participants