OPNsense Forum

English Forums => Virtual private networks => Topic started by: spetrillo on July 25, 2023, 03:48:28 PM

Title: Wireguard - OPNsense Interface
Post by: spetrillo on July 25, 2023, 03:48:28 PM
Hello all,

I am beginning to use Wireguard for C2S communication and it seems to work well. I have a wg1 device that was created in the Interfaces section of OPNsense, and labeled Wireguard. Now I am about to embark on trying to get a S2S connection going. Do I need a second interface in the OPNsense Interface section, for what will be wg2, or does the S2S connection not need this?

Thanks,
Steve
Title: Re: Wireguard - OPNsense Interface
Post by: Maurice on July 25, 2023, 05:11:23 PM
Depends. An interface (wg1, wg2, ...) gets created by WireGuard for each local instance. Assigning these interfaces (Interfaces: Assignments) is optional. If the routes created by WireGuard are sufficient and you only want to add firewall rules to WireGuard (Group) (which apply to all WireGuard instances), then you don't have to assign the wg interfaces at all.