Summary: | Add "data-ciphers" field in OpenVPN configuration editor for NetworkManager | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Giovanni <giodev> |
Component: | kcm_networkmanagement | Assignee: | Jan Grulich <jgrulich> |
Status: | REPORTED --- | ||
Severity: | wishlist | CC: | kde, nate, plasma-bugs-null, stalkerg |
Priority: | NOR | ||
Version First Reported In: | 5.26.1 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Giovanni
2022-10-27 08:26:21 UTC
Do we have any updates? It's kind of an important option. Just stumbled across this again on Fedora 42 which has OpenVPN 2.6.14. Newer openvpn-versions don't have the "cipher"-option anymore but need "data-ciphers" to be set. syslog reports something like: nm-openvpn[41191]: OPTIONS ERROR: failed to negotiate cipher with server. Add the server's cipher ('AES-128-CBC') to --data-ciphers (currently 'AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305') if you want to connect to this server. Workaround: Manually editing the vpn-connection below /etc/NetworkManager makes it work. https://discourse.gnome.org/t/gnome-settings-openvpn-data-ciphers-field-missing/11590 Gnome added it when writing the vpn-connection, in 2022: merge: https://gitlab.gnome.org/GNOME/NetworkManager-openvpn/-/merge_requests/46 patch-details: https://gitlab.gnome.org/GNOME/NetworkManager-openvpn/-/commit/020ab0c4b872fa5415ed1a5e682acb3343c7b9f3 Maybe we could add a similar solution when writing the connection. Should we keep the current dropdown for cipher and export that as data-ciphers? Or have it as a new input-field (to support a list of ciphers)? Automatically add it to the list of ciphers then as a compat-solution? Or assume that newer distributions ("since ever") use openvpn 2.6+ and simply switch from "cipher" to "data-ciphers" completely in the source? https://github.com/KDE/plasma-nm/blob/master/vpn/openvpn/openvpn.cpp Possible solution added as a pull-request. I hope that's the right place (and the right solution you might want to go for). I think we can (meanwhile) assume OpenVPN 2.6+ and thus simply update the exported config. https://github.com/KDE/plasma-nm/pull/11 (In reply to Stefan Neufeind from comment #3) > Possible solution added as a pull-request. I hope that's the right place > (and the right solution you might want to go for). I think we can > (meanwhile) assume OpenVPN 2.6+ and thus simply update the exported config. [...] Sorry, submitted merge-request through the right channel again. https://invent.kde.org/plasma/plasma-nm/-/merge_requests/435 |