-
Notifications
You must be signed in to change notification settings - Fork 152
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
Is DOMAIN-ROUTE supported? #208
Comments
Really cool you're looking into this! I've been playing a bit with it, and I don't consider the systemd-resolved implementation complete at the moment. First of all, yes the When you import the configuration ( What currently does not happen, is the There are several things to beware of. OpenVPN 3 Linux considers DNS settings for all running VPN sessions it manages. It isn't just a single VPN tunnel being set. So all DNS settings from the VPN client process goes through the When the The reason is that all changes needs to be queued up once again in the That's generally how these pieces belongs together. |
Oh, one more important detail. The VPN server must push some information to the client, with DNS information. The needed info is either The reason for the new |
@dsommers, thank you for the detailed response! Sorry for the long delay here, I finally found some time today to try this out. After a couple of time consuming distractions*, I was able to get this to work by following the instructions you wrote up (
Is there some way of setting this DNS scope without having to import and override my configuration? Can I configure my openvpn server in a way such that it will set some client option that will change the DNS scope from global to tunnel?
Not having the ~ prefixing seems to work fine for me (I'll report back if it causes any issues). https://systemd.io/RESOLVED-VPNS/ just says that "in many cases the qualifying of single-label names is not desirable (since security-sensitive)". I'm not really sure what the security implications are here. *Notes about the distractions:
|
testing out the suggestions in `https://github.com/OpenVPN/openvpn3-linux/issues/208`
@dsommers, any advice for me here? Thanks! |
Hey, @jfly! Sorry, this fell through my cracks. So the DNS setup, as you're experiencing, is a trick thing to configure. And to be honest, I don't think we're done getting things right. And yes, the commit you found for v21 - that's a fix we realised was needed. Configuring DNS turns out to be chasing a moving target, as there are subtle differences in I'm pulling in @d12fk into this discussion now, as he has done the work for the new One important difference between v20 and v21; the former ships with Core 3.7.2 while v21 ships with Core 3.8.2. I vaguely remember that we had some DNS fixes in the Core 3.8, but forgot what that was about. In regards to setting These days I'm deep into GH issue 171 (glib2-2.76 compatibility issues) and doing a massive overhaul of the D-Bus implementation (this will be a v22_dev release); that will take most of my focus. The needed changes to improve DNS will most likely be slated for a v23+ release - unless this DNS issue is so critical it need to be put into a v21 hotfix. But split DNS is something being requested more and more these days, and our Access Server and Cloud Connexa service are both setting the stage to enable this possibility. Your interest, testing and help on this topic will help us get find a better solution; we're grateful for that! |
Thanks again for the detailed response!
Not sure if you were asking me, but this is not a critical issue for me. This has just turned into a side project where I want to see if it's possible to get my corp DNS playing alongside nicely with my home DNS.
Awesome! If it's useful to know, my company is a customer (we use Access Server), and I'd love to get this configured correctly internally once all the knobs are in place (where the server can push the split DNS to the client). Let me know if there's anything I can do in terms of testing out changes. |
This reverts commit 6a1adb0. Unfortunately, openvpn3 v21 has some bugs with DNS search domains, see OpenVPN/openvpn3-linux#208 (comment) for details.
I'm quite new to all of this. Some context:
I believe
SystemdResolved::Apply
is the relevant code, and it doesn't look like it has support for "Routing domains".I see support for this over on
jonathanio/update-systemd-resolved
, but I believe that's a tool specific for openvpn2.The text was updated successfully, but these errors were encountered: