1
Virtual private networks / Re: Router not listening on second WireGuard-interface
« on: October 27, 2023, 08:53:09 am »Did you put the LAN network into the allowed IPs in each client, additionally to the wireguard network?
So for example if your wireguard network is 10.4.4.0/24, and your LAN is 192.168.1.0/24, the allowed IPs on the clients should be 10.4.4.0/24 192.168.1.0/24
Also make sure to use a unique port per instance. If instance wg1 is 51820, instance wg2 should be 51821 etc...
- Yes your setup is possible, you can have multiple wg instances with different settings attached to them. I'm not sure about sharing peer configurations between them though, I have always created unique peers because things like "allowed IPs" change when you have multiple instances, and the routing in the firewall depends on this uniqueness.
Wow, it was that simple. I've copied al client configurations, coupled the copies to my second peer (WG2), adjusted the "allowed IP adresses" (can't remember the exact name of the field), just to be sure resetted the PSK and changed the keys. Now it works .
Thanks a lot!