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

Add DNS routes in OpenVPN split setups #1207

Merged
merged 6 commits into from
Feb 22, 2025
Merged

Conversation

keeshux
Copy link
Member

@keeshux keeshux commented Feb 22, 2025

This was done in the library, but it was breaking WireGuard operation. The official WireGuard app doesn't route DNS through the VPN unless the server is explicitly added to AllowedIPs.

Therefore, move the explicit DNS routes to the OpenVPN implementation (like it was done in TunnelKit), and maybe remove the code later because such routes are probably redundant.

Original code from TunnelKit: passepartoutvpn/tunnelkit@f799f47

Fixes #1206

@keeshux keeshux self-assigned this Feb 22, 2025
@keeshux keeshux added regression Used to work but doesn't anymore refactoring Improves software architecture OpenVPN WireGuard labels Feb 22, 2025
@keeshux keeshux added this to the Issues with split VPN milestone Feb 22, 2025
@keeshux keeshux merged commit 4f56b3b into master Feb 22, 2025
1 check passed
@keeshux keeshux deleted the refactoring/vpn-dns-routes branch February 22, 2025 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OpenVPN refactoring Improves software architecture regression Used to work but doesn't anymore WireGuard
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

WireGuard: DNS servers are implicitly routed through the VPN
1 participant