OPNsense Forum

English Forums => Virtual private networks => Topic started by: opnessense on June 30, 2025, 12:29:22 PM

Title: setup wireguard multi istances for different VLANS
Post by: opnessense on June 30, 2025, 12:29:22 PM
Hello All

i have manged to setup wireguard instance with peers on my opnsense 25.1.9 which works on my local network with No access from the outside.(no rules for WAN).I did not include a new gateway, I follow the guide road warrior.

Everything works. i have connection and handshake.

Now i want to create new instances (wg1,wg2,wg3..)to fit in every Vlans.This because i like  to assign  different firewall rules in base on Vlans.

I recreate the same procedure as my first istance (new interface, new firewall rule, new istance, new peer) but i have no connection.I tested with tcpdump

Im stuck .What do i need to incorporate to my new interfaceI have tried to check the option in the interface "Dynamic gateway policy" to create a different  gateway but that want not work.

client do not comunicate with the wireguard server

Which log do I need to provide ?

Any help please..

Thanks



Title: Re: setup wireguard multi istances for different VLANS
Post by: opnessense on July 02, 2025, 02:49:44 AM
I resolve it adding a static route for each wireguards  VPN istances.from System -> Routes -> Contiguration then add my subnet