Bug 429747 - Import VPN connection doesnt support wireguard config
Summary: Import VPN connection doesnt support wireguard config
Status: RESOLVED FIXED
Alias: None
Product: frameworks-networkmanager-qt
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jan Grulich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-28 02:35 UTC by Bronson
Modified: 2022-04-21 22:03 UTC (History)
5 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 Bronson 2020-11-28 02:35:08 UTC
SUMMARY
Cant import wireguard config files from the gui. It only works via cmd.

STEPS TO REPRODUCE
1. Network manager gui 'Add New Connection'
2. Import VPN connection 
3. Select wireguard config file
4. connection.id.property missing error

OBSERVED RESULT
connection.id.property missing error

EXPECTED RESULT
Should import the vpn config

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro
(available in About System)
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.1

ADDITIONAL INFORMATION
Comment 1 Caorlinhos 2020-12-17 16:18:59 UTC
Indeed I can confirm that I have the same problem; it seems to me that the problem is when trying to fetch IP Address, when using "Manual" Method in IPv4... At least for myself in my wg0.conf, I have 

[Interface]
Address = 192.168.1.3/24

And, when importing it, I get there 192.168.1.0 ... so I guess there should be something with the parsing....
Comment 2 Gilberto Ferreira 2022-04-06 12:08:35 UTC
I confirmed that this happens to me too, but when import Openvpn OVPN file, with certs in side it.
I am currently using Kubunu Jammy but this happens in Neon too.
However if I install gnome-control-center and try to add the OVPN file, it's imported with sucess.
Then I am able to connect using plasma-nm applet.
But when I tried to add the ovpn over systemsettings5 -> Connections no way!
Hope this will fix in the future.
Comment 3 major-mayer 2022-04-11 07:46:53 UTC
I can confirm this bug. 
Here is an example config file, that doesn't work (I removed the sensible data):

[Interface]
Address = 10.50.0.20
PrivateKey = xxx=
DNS = 10.1.1.1,example.com,192.168.1.1
MTU = 1300 

[Peer]
PublicKey = xxx=
Endpoint = vpn.example.com:51820
AllowedIPs = 10.1.0.0/22,192.168.1.23
PersistentKeepalive = 10
Comment 4 Gilberto Ferreira 2022-04-20 12:24:12 UTC
I had this issue solved after last updates. 
Thanks.
Comment 5 major-mayer 2022-04-21 22:03:01 UTC
I cannot confirm this for Wireguard configuration files. The connection.id error still appears