-
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
systemd-resolved resets /etc/resolv.conf and vpn-based name resolution breaks #674
Comments
Can you confirm it happens both when openfortivpn is responsible for updating DNS parameters ( I'm asking because while I know openfortivpn may require some fixes, I would expect pppd to do the right thing. Indeed I agree with you that either systemd-resolvd or NetworkManager are overwriting the changes applied to One possible workaround would be to let NetworkManager manage everything by using the NetworkManager_fortisslvpn GUI, which calls openfortivpn under the hood with options The legacy method for changing DNS servers has indeed been to modify Then some subsystems started taking over
I need to know if
In the long term we should probably support systemd-resolvd directly when available. That's on the TODO list (#600). |
Just double checked. It happens both with As for Below is the command output you've asked for. Ubuntu 18.04
Ubuntu 20.04
Ubuntu 18.04 (where openfortivpn name resolution does work for me)
|
OK, it looks like pppd does not do the right thing either. I was hoping it would, like on macOS where relying on ppp is the proper workaround. It shows Canonical themselves (who package pppd) are unable to do the right thing when the name resolution subsystem keeps changing with each release. Right now you have a couple workarounds:
In the long term we really need to improve how we interact with the system to modify name resolution, taking into account all possibilities:
See #600. |
Installed |
The strange thing is that I have removed Perhaps there are other factors here, such as
|
Well, I was under the impression my installations are pretty standard too... Anyway, your assumption regarding other factors playing part here makes sense. As a matter of fact, |
Ah, I do have a desktop install indeed. But how do you define "
That said I cannot be 100% certain I haven't changed the defaults while testing openfortivpn. |
Well, I just double checked my systems' |
Perhaps NetworkManager?
|
Must be NetworkManager, see Ubuntu Network Manager: Enabling and disabling NetworkManager on Ubuntu:
Again on my workstation:
|
Running openfortivpn. It starts smoothly -
/etc/resolv.conf
seems to be updated correctly and vpn-based name resolution works, But, after a couple of minutes, changes are reset and name resolution stops.Tried to play with
--no-dns
and--pppd-use-peerdns
options but nothing helped.Happened to me with openfortivpn 1.6 on Ubuntu 18.04.,
Was hoping this will be resolved with openfortivpn 1.12 on Ubuntu 20.04 but it's not. Same behavior.
Seems to be
systemd-resolved
related as I have another Ubuntu 18.04 machine which is not runningsystemd-resolved
and there openfortivpn based name resolution works continuously.Any idea?
The text was updated successfully, but these errors were encountered: