Bug 395596 - [OpenVPN] Qt version of network manager GUI does not support TLS Crypt v2
Summary: [OpenVPN] Qt version of network manager GUI does not support TLS Crypt v2
Status: RESOLVED DUPLICATE of bug 460777
Alias: None
Product: plasmashell
Classification: Plasma
Component: Networking in general (other bugs)
Version First Reported In: master
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Jan Grulich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-19 06:12 UTC by Martin Zbořil
Modified: 2024-12-23 18:23 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Zbořil 2018-06-19 06:12:37 UTC
network manager for kde is not working with openvpn configuration introduced by 2.4 release.

https://github.com/pivpn/pivpn/issues/542
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1749562
Comment 1 Martin Zbořil 2018-06-19 07:19:10 UTC
excerpt from repeating records of journalctl logs from Kubuntu 18.04:
Jun 18 18:44:45 example.com ovpn-server[1002]: tls-crypt unwrap error: packet authentication failed
Jun 18 18:44:45 example.com ovpn-server[1002]: TLS Error: tls-crypt unwrapping failed from [AF_INET]192.168.1.1:60049
Comment 2 Martin Zbořil 2018-06-19 07:22:44 UTC
to reproduce this issue, easiest way is to:

1 install pivpn from http://www.pivpn.io/ set up the openvpn 2.4 features.

2 create opvpn setup, load it on multiple devices and see it working on all apart from kde's network manager implementation.

(use gnome for next two years)
Comment 3 Martin Zbořil 2018-06-19 13:11:24 UTC
this was not completely fair - the default ubuntu 18.04 has the same problem with no information on what is going on in logs.
Comment 4 Martin Zbořil 2018-06-22 08:37:10 UTC
I believe this bug was caused by usage of LZ4 compression, backend openvpn >=2.4 should be able to support this.
Comment 5 Pascal 2019-02-26 21:00:49 UTC
Same problem here. Looks like it's not solved yet.
Comment 6 Jan Grulich 2019-03-27 14:28:45 UTC
The problem here might be in OpenVPN import. We have tls-crypt option supported for some time, but support for it hasn't been added to the importing function. Can you try configuring tls-crypt manually? It's in Advanced → TLS Setting.
Comment 7 rolandk 2019-04-20 11:49:25 UTC
it works if you manually configure settings in tls-properties dialogue.

with .ovpn from pivpn, you need to add name checking for server certificate , extract the tls-key from the .ovpn and select it from that dialogue. 

after that, it still didn't work and i found you need to install "network-manager-openvpn".  i'm curious that you can configure openvpn settings and then need this package to make openvpn works, that looks like a missing package dependency to me.

in ubuntu 18.04 it works without problems (i.e. it seems to have been fixed there in the meantime )

could someone please fix openvpn import and package dependency ? 

this is open for about a year now, really curious why fixing security related stuff need such long time fixing and people put so much fokus on replicating eye-candy and stuff instead. that "each distro does reinvent things und bugs on their own" really really sucks so badly - no wonder that windows or osx is the more successful desktop OS.
Comment 8 rolandk 2019-04-20 11:51:45 UTC
oh, and i just see - this is reported for archlinux - i'm reporting for kubuntu 18.04 where the problem also exists (while it's working on ubuntu 18.04)
Comment 9 Enol P. 2019-08-07 12:00:47 UTC
The issue is still present on plasma-nm 5.16.4
Comment 10 Matthew Woehlke 2019-12-26 17:33:00 UTC
Martin, does it work if you import the connection using some other means? See also bug #396530.
Comment 11 Soren Stoutner 2022-10-20 17:34:50 UTC
Based on the tls-crypt error, this sound like it is the same problem described in https://bugs.kde.org/show_bug.cgi?id=416643

Basically, the tls-crypt entry is not being properly imported.  But if it is imported through another mechanism or set directly then it does work.
Comment 12 Nicolas Fella 2023-01-20 01:26:08 UTC
Plasma 5.27 changes the way vpn connections are imported to match what nmcli does, so this should be fixed.
Comment 13 Soren Stoutner 2023-01-20 15:32:23 UTC
Does this also fix the GUI so that, if a user creates an OpenVPN connection using the GUI instead of importing the settings it also works with TLS-Crypt v2?
Comment 14 Nicolas Fella 2023-01-20 16:01:07 UTC
(In reply to Soren Stoutner from comment #13)
> Does this also fix the GUI so that, if a user creates an OpenVPN connection
> using the GUI instead of importing the settings it also works with TLS-Crypt
> v2?

It doesn't change how the GUI behaves
Comment 15 Soren Stoutner 2023-01-20 18:16:41 UTC
Then it is appropriate to mark https://bugs.kde.org/show_bug.cgi?id=416643 as fixed, but to keep this open until the GUI is also updated to handle TLS Crypt v2.
Comment 16 Soren Stoutner 2023-01-20 18:47:11 UTC
Actually, it looks like this bug report contains a mix of at least three different root causes.  As such, it would make the most sense to close it and mark it as a duplicate of the one issue that is still remaining.

*** This bug has been marked as a duplicate of bug 460777 ***
Comment 17 Nicolas Fella 2023-01-21 12:05:46 UTC
Indeed, I'm having a hard time following what this report is and isn't about.

If you are testing 5.27 and still notice any issue please file a new report and I'll look into it
Comment 18 Ben Cooksley 2024-12-23 18:23:47 UTC
Bulk transfer as requested in T17796