-
Notifications
You must be signed in to change notification settings - Fork 321
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
DNS not resolved in Fedora #1141
Comments
it's not a fix, but my workaround for Fedora is.. . . disable systemd-resolved
BONUS TRACK: same behaviour for Ubuntu and we apply the same workaround. To disable systemd-resolved in Ubuntu follow https://gist.github.com/zoilomora/f7d264cefbb589f3f1b1fc2cea2c844c |
I think it's best to keep systemd-resolved and try to use
|
I have the same problem on Fedora 39 and noticed that
Note that I also had to upgrade |
You should not need both openfortivpn 1.21 and the option However, you do need support for systemd-resolved, which should be provided by
@adrienverge Would it be possible to generate RPMs for Fedora and EPEL with openfortivpn 1.21?
Also, all Fedora version require built-in
|
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I've rebuilt the rpm package with the options
the tunnel is created successfully but I still need to run
for DNS to work.
|
Ah, that's interesting. Right now, I don't know whether it means that |
Specifically on Fedora 39. |
This comment was marked as outdated.
This comment was marked as outdated.
It worked with Fedora 38 fully updated
and it's not working with Fedora 39 where:
Just rebuilding |
Yes, I did expect 1.21 to fix some if not all issues, because it adds the The remaining issue is the DNS one. I need to know whether you can reproduce the DNS issue when running openfortivpn from the command line (without messing with NetworkManager-fortisslvpn). |
I switched to |
I see. There are two ways openfortivpn can modify DNS settings:
I am not surprised 1 does not work any more on recent Fedora releases, but I was hoping 2 would work better. The openfortivpn very verbose logs (redacted if needed) will at least show what openfortivpn does, hopefully in enough detail to start understanding the issue at hand. |
but the two DNS servers are not set
|
Sure, I just created updates for Fedora 39 (new configure options for built-in resolvconf support), Fedora 38 (with options for built-in resolvconf support and
|
@madrisan It might be that From the man page of resolvctl:
|
I've tried with the patch
but the two DNS are still not configured. The log of
|
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as off-topic.
This comment was marked as off-topic.
Yes, being tracked here: https://bugzilla.redhat.com/show_bug.cgi?id=2246228 Trying to figure out what needs to be changed to NetworkManager-fortisslvpn to make it work. By luck, I have admin rights to the package. As written in the ticket, When called like this, NetworkManager does not set the routes properly and the VPN does not work. In my case, I had to delete these two:
After deleting these two, it works. |
Funny thing is that on a system with
But everything works fine. |
I guess with 1.19.0 it worked because the route 169.254.0.0/24 is never hit. Let me explain. With 1.19.0 (where it works):
The two routes with 169.254.2.1 are never hit, and the VPN gateway itself is found with the third rule ( With 1.21:
As you can see the two (useless) routes with 169.254.2.1 are replaced with the VPN gateway. The first of the 3 is correct ( |
This seems to be due to this change: #1120 (comment) Is there any reason why the two routes are being added? They were superfluous but harmless with 169.254.2.1, but they are now an issue with the VPN gateway address instead of 169.254.2.1. |
What I know is that pppd might fail at run-time if:
By failure, I mean a hard failure, where pppd, and subsequently openfortivpn, exit with a relevant error message. That's why it's best to make Next, I need to understand whether you have a routing problem (typically you cannot ping both IP addresses and DNS names) or a DNS problem (typically you cannot ping DNS names but can ping the associated IP addresses). Indeed, specifically in the case of DNS problems, there is a second issue to explore, depending on which exact program attempts to change DNS parameters:
Now, it might be that in the case where pppd handles DNS parameters, which is the NetworkManager-fortisslvpn case as far as I know, pppd is not able to handle and modify DNS parameters properly, or at least as we expect it to, with Where I am getting to is;
This issue has already been polluted by reports of possibly different issues, that do not seem identical to the initial issue. It has grown almost intractable using the time I can spend on it. |
Perhaps we should discuss the specific case of NetworkManager-fortisslvpn failing, while openfortivpn works a standalone program from the command line, in a dedicated issue. Unless this is what is being discussed in this issue? @anat0lius @madrisan At this point, I'm not sure what we are discussing and whether this is a single issue or multiple issues. |
@Predrag And now the DNS resolution is working ? |
It is still not working. I have the same output as you |
I see. This probably means |
I also had an issue with the latest openfortivpn 1.21.0 on Fedora 38. Note that I had to make a change to nsswitch.conf to get the nameservers working correctly before with versions prior to 1.21.0:
With version 1.21.0, name resolving didn't work anymore: nslookup on IP address did work, but nslookup on DNS name did not work. For now, I've rolled back to 1.19.0. But let me know if you want me to test anything. |
@tallandtree Are you positive it works with openfortivpn 1.19.0, but not openfortivpn 1.21.0 on the same machine? There are few differences between the two versions, mostly |
With --pppd-accept-remote=1 or --pppd-accept-remote=0 I can not resolve dns name servers |
It works for me after setting |
@DimitriPapadopoulos You're right. The packages
but |
Yes, if I use the option |
@DimitriPapadopoulos unfortunately, it doesn't work always with the |
I've rolled back to 1.19 where it does work consistently. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I tested
with and without my company DNS entries added to
and at command-line I just add an extra option:
I hope it helps. |
@madrisan If you have package
|
|
I see. So both packages provide the file, I don't know where the logic for choosing is hidden. Any way, package |
It is probably due to the successive upgrades I have made from fedora 37 to 38 and finally to 39. |
Does it still work for you if you uninstall package openresolv? |
Yes. Without the package
The tunnel is successfully created as well as the DNS configuration for the interface |
I have also tested with openfortivpn from the command line and it works like a charm. Curiously, doing the same with NetworkManager does not work, but I imagine that this is another problem. Thanks a lot for your efforts, very appreciated ! :) |
@DimitriPapadopoulos Just to confirm: I've upgraded to fedora 40 and the latest version of openfortivpn 1.21.0 works well. I only needed to make one change after I setup the vpn, and that is to add another local search domain:
It seems that with the older version (1.19.0) the dns search always went via ppp0 when VPN was up, but now only for the 'search' domain it goes via ppp0 and my guess is that our vpn service does not configure the search domains correctly. |
On Fedora 40 after I set up vpn I need to run this two commands: |
Just question is it possible to run this commands after Tunel is up and running ? (sudo resolvectl domain ppp0 ~. and sudo resolvectl dns ppp0 <main.localdomain.local> <second.localdomain.eu>) |
Any progress on it? There is Fedora 41 Beta now... |
Yes, Im doing that and it works. |
I have checked
/etc/resolv.conf
and I do have the name servers added like this:I don't have anything in
/etc/systemd/resolved.conf
.I'm able to connect via IP.
VPN configuration looks like:
I have tried
systemd-resolve subdomain.domain.com
and fails. Butsystemd-resolve domain.com
does work.Could you help me to find out where is the issue?
The text was updated successfully, but these errors were encountered: