Open
Conversation
When a VPN app is doing DNS with its own tunnel servers, protecting that traffic can result in the tunnel and tunnel DNS server IP addresses leaking. Any VPN app that is setting tunnel DNS servers that aren't reachable through the tunnel is already broken, as apps would be unable to do DNS when leak blocking is enabled.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This CL stops default (fallback) DNS servers being used for uids that have a lockdown VPN. This eliminates a serious DNS leak that can occur at tunnel creation time regardless of how the VPN is configured, and additional serious leaks that can occur when a VPN does not have DNS servers configured.
It also includes miscellaneous improvements to the VPN, such as stopping network identifiers from wrapping and crashing system_server if there are errors when setting up the lockdown VPN firewall.
This will not introduce any compatibility issues. Using fallback DNS is unreliable when there's a lockdown VPN, so VPN apps that depend on it already don't work in many cases.
GrapheneOS/platform_packages_modules_Connectivity#39
GrapheneOS/platform_packages_modules_DnsResolver#14
GrapheneOS/os-issue-tracker#5273