Second (wg1) Wireguard gateway for PIA stays offline

Started by richardk3, January 17, 2024, 10:44:03 PM

Previous topic - Next topic
January 17, 2024, 10:44:03 PM Last Edit: January 18, 2024, 12:10:16 AM by richardk3
Hello, everyone.  Now that the FingerlessGlov3s script for configuring PIA Wireguard

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.


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.