-
Notifications
You must be signed in to change notification settings - Fork 326
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 support for systemd-resolved #615
Conversation
Perhaps it would be worth discussing this pull request in #600. |
aa6eef0
to
95d4367
Compare
Version of this patch for version 1.17.1 (works on Gentoo with its user patches system): https://gist.github.com/Tatsh/8ad5aa75721d6ba018a20906a04a6fa3 |
I think it would be best to strandardize on vpnc-script, like OpenConnect. |
In terms of systemd stuff, it should be detected if the user is actually using it. It's not required by systemd to be working. If that check fails for some reason (false positive), a new setting like Lastly, rather than introducing a generic scripting thing here, the code could directly call the D-Bus API. Main thing for me is to have the D-Bus calls do the DNS changing, and not touch |
This does fix my issue where Chrome (and not any others) could not resolve based on changes made to Now that those changes are made to the PPP link with systemd, Chrome can correctly resolve certain VPN-specific domains. This is a much appreciated patch. |
I believe vpnc-script does the right thing. It would be great to remove the routing/DNS code written in C and call |
Finally, I suppose Chrome is resolving using systemd. Other software resolve using glibc. You can reproduce this using While systemd and glibc have been unified in recent Fedora distributions (https://fedoraproject.org/wiki/Changes/systemd-resolved), this might not be the case on Gentoo. |
They won't be unified on Gentoo, unless Gentoo decides that systemd will be the only supported init system. This is very unlikely to happen. |
macOS needs equivalent call to Edit: It does support it by using |
Yes, there are open issues about that: Yet I believe vpnc-scripts remain the best bet in the long term. |
I looked at some of the logic to see if it's feasible to use as-is with the current openfortivpn code (with a change similar to this PR). Right now the main issue is the So in summary:
|
Yes, most of The nice thing with that solution is that IPv6 support would (more) straightforward to add. |
95d4367
to
3377077
Compare
@DimitriPapadopoulos this change is now in master? |
It shouldn't. Let me see. No, it's not in the master branch. |
This pull request has been closed inadvertently by GitHub. Re-opened as #1092. |
These two commits make it possible to update systemd-resolved with the DNS server configuration upon a successful connect. First commit adds a generic script invocation, and the second adds an example script for updated
systemd-resolved
.