OPNsense Forum

English Forums => Virtual private networks => Topic started by: richardk3 on January 17, 2024, 10:44:03 PM

Title: Second (wg1) Wireguard gateway for PIA stays offline
Post by: richardk3 on January 17, 2024, 10:44:03 PM
Hello, everyone.  Now that the FingerlessGlov3s script for configuring PIA Wireguard

https://github.com/FingerlessGlov3s/OPNsensePIAWireguard (https://github.com/FingerlessGlov3s/OPNsensePIAWireguard)

supports multiple instances, I'm trying to configure two alternative gateways on my Opnsense router.  Both Wireguard instances have connected properly, but when I add a gateway using the wg1 instance, that gateway will not come online.  I've used the same setting for the wg1 gateway as for wg0. 

I'm not a networking expert by any means, so I've probably missed something obvious.  What am I doing wrong?

I'd really appreciate any help.

Title: Re: Second (wg1) Wireguard gateway for PIA stays offline
Post by: richardk3 on January 18, 2024, 03:13:29 AM
Update:  I posted this on the Github discussion of multiple instances, and got a quick response from Fingerlessgloves.  After supplying him with some details, he found that, for the multiple gateways to work, the Wireguard instances need to be using different port number.  He is modifying the script accordingly.