Hi
I have managed to setup Wireguard and it works fine with Android devices (scan QR, save, apply works).
However, when I try to setup a Wireguard Connection with Linux (NetworkManager) I can't get it to work.
I entered everything in the Peer table, chose the appropriate DNS (local) and IP (/32) in the IP4, "connect" and then
- The status page under Networkmanager says "not connected"
- There does not seem to be any route in the wg2 interface
- A ping to an internal address shows "sendmsg: a necessary key is missing"
OpenVPN works fine and from Android, too.
What am I missing to configure under Linux?
Thanks.
Are you sure the OPNsense forum is the ideal place to ask that question? I for one have never setup Wireguard using NetworkManager, only using wg-quick.
Best to ask in either the forum of the Linux distribution you are using or NetworkManager forum.
Quote from: PotatoCarl on July 15, 2026, 02:04:26 PMWhat am I missing to configure under Linux?
I think in order to help you we need more information like :
- Which distro ?
- Configuring from a DE or via nmtui/nmcli ?
- Did you read this : https://networkmanager.dev/docs/vpn/
QuoteNetworkManager 1.16.0+ supports WireGuard natively and requires no plugin
??
And anything else you can tell us and might be related to the issue :)
Quote from: patient0 on July 15, 2026, 02:36:29 PMAre you sure the OPNsense forum is the ideal place to ask that question? I for one have never setup Wireguard using NetworkManager, only using wg-quick.
Best to ask in either the forum of the Linux distribution you are using or NetworkManager forum.
Surely SOMEONE can help him here ?!
In the end it's a VPN Client issue and there's even a dedicated sub-forum for VPN stuff :)
Hi nero355 thanks for not burning my post down.
I would not have posted it here if I would not think that it is some information missing or mislabeled to include it in (any) Linux setup.
The problem was (as usually) sitting in front of my monitor as I misread "public key" and "private key" and entered them vice-versa into the GUI. This lead to a connection, well not being able to be made. After switching both keys it suddenly worked to my utmost surprise pretty well.
Thanks for not giving up on me and my questions.
- Edited because problem was solved and the removed content would not have any value -
Quote from: PotatoCarl on July 15, 2026, 06:40:40 PMHi nero355 thanks for not burning my post down.
Thanks for not giving up on me and my questions.
That funny avatar + nickname combo helped a lot !!! :P