OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: Alphaprot on January 08, 2020, 02:28:34 PM

Title: Wireguard - Setting up a second local fails
Post by: Alphaprot on January 08, 2020, 02:28:34 PM
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
Title: Re: Wireguard - Setting up a second local fails
Post by: mimugmail on January 08, 2020, 03:10:18 PM
Screenshots of both local instances and all linked endpoints.
Also interesting would be the output of
/usr/local/etc/rc.d/wireguard restart
Title: Re: Wireguard - Setting up a second local fails
Post by: Alphaprot on January 08, 2020, 04:01:50 PM
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 (https://imgur.com/a/oljwKsr)
Title: Re: Wireguard - Setting up a second local fails
Post by: mimugmail on January 08, 2020, 10:11:33 PM
Have a look on WireGuard Website, it's something like wg genkey via console