Wireguard - Setting up a second local fails

Started by Alphaprot, January 08, 2020, 02:28:34 PM

Previous topic - Next topic
I use my OPNsense appliance to split my network into several VLANs. Now I'm trying to configure Wireguard so it provides multiple interfaces (one interface for each VLAN) in order to connect like this:

VPN1 --> VLAN1
VPN2 --> VLAN2

I've already got one VPN (access to my Management VLAN) up and running perfectly fine.
However, if I enable a second local point (with a different, unused private network as the tunnel address and a random port), Wireguard simply does not work at all anymore, shutting down the first VPN aswell.

Am I missing something? Please comment if you need the "Local"-Tunnel-Config of the Wireguard Plugin.

Cheers
Yannik

Screenshots of both local instances and all linked endpoints.
Also interesting would be the output of
/usr/local/etc/rc.d/wireguard restart

Thanks for your quick reply, you find screenshots of the local/endpoint configuration attached in the imgur library.

Aaaand you nailed it  ;). Thank you very much for the last hint (restarting wireguard from shell). Guess what? Wrong key length/format..

But can you tell me how to create sufficient strings (base64-encoded, 32 chars if I remember correctly) in a Windows environment?

https://imgur.com/a/oljwKsr

Have a look on WireGuard Website, it's something like wg genkey via console