-
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 suffix not added to /etc/resolv.conf #810
Comments
Yes, these DNS issues will happen more and more often with recent versions of Linux. See all the previous tickets about that. Even the official FortiClient does not get it right on Linux by the way, I've just noticed there are DNS leaks with FortiClient. |
In your specific case you're using NetworkManager as far as I can see. Therefore it's not an openfortivpn issue, if needed please report this issue to NetworkManager-fortisslvpn maintainers. However it might be OK that |
Why ?
|
@woprandi you're right. Since Fedora 33, systemd-resolved is enabled by default so you don't have to edit manually
and then launch the following command after establishing the vpn connection (you can do them both via gnome gui or via cli):
I know that ideally this should be managed automatically but it seems that there's some bad interaction between openfortivpn and systemd-resolved... |
@angystardust I didn't edit |
@woprandi As already explained you need to talk to the NetworkManager-fortisslvpn maintainers if you are using NetworkManager, because in that case it's really not an openfortivpn issue. On the other hand I can help you get |
@woprandi Excellent! Unfortunately it may take months before NetworkManager-fortisslvpn issues are addressed. But again I suspect You should instead focus on the actual symptoms you experience instead. I'll follow up on in https://gitlab.gnome.org/GNOME/NetworkManager-fortisslvpn/-/issues/36. |
@DimitriPapadopoulos I'd be interested to have your help to get |
Sure, note however that when NetworkManager is enabled, the proper way to apply DNS changes really would be to use NetworkManager. Also note that even if we weren't able to get openfortivpn to work from the command line, it would still be a NetworkManager issue. Indeed, NetworkManager-fortisslvpn calls There are two issues to consider with Fedora 33:
|
Let's first make sure which
|
Then let's make sure
|
Well, I did some investigation and I misspoke : I have dns issue only since I enabled split tunneling. |
Ah, split DNS is currently not supported, see #561. While we cannot easily fix this without adding support for NetworkManager or systemd-resolved, we can at least parse the relevant information received from the FortiGate and print it to stdout so that at least the maintainers of NetworkManager-fortivpnssl can start working on split DNS support if they wish so. |
It works if I define DNS suffix domain myself. I opened a issue in the RedHat bugtracker : https://bugzilla.redhat.com/show_bug.cgi?id=1905739 |
@woprandi Yet I suspect this is, at least partly, an openfortivpn issue: openfortivpn does not parse the split DNS parameters sent by the Fortigate appliance and therefore NetworkManager-fortivpnssl cannot aware be of these parameters If you run As explained in #561, openfortivpn currently parses these XML elements: |
Apparently I don't have split-dns element :
|
Strange. Indeed, openfortivpn will ignore this part of the XML configuration:
Yet is this enough to explain the issues you're experiencing? I would be surprised because at first sight it seems unrelated to DNS. In any case these XML elements should be taken into account and passed over to NetworkManager-fortivpnssl: We could try a different angle. Do you see a DNS related difference in the XML configuration sent by the Fortigate appliance between split tunnel (doesn't work) and no split tunnel (does work)? |
How am I supposed to enable/disable split tunnel ? |
it's a configuration option of the so-called web-portal offered by the fortigate |
@woprandi Any news about this issue? |
I don't handle firewall configuration so I'd need to contact the maintainer. I'll try to do that next week. If I'd not been able to progress, I close the issue. |
Hi,
The DNS suffix seems not added to /etc/resolv.conf despite being received by the server :
NetworkManager logs
/etc/resolv.conf
I had to add suffix myself to my NetworkManager VPN connection
I tested on Windows with the official Forticlient, it works out of the box
Fedora 33
openfortivpn 1.14.1
The text was updated successfully, but these errors were encountered: