Wireguard on second wan

Started by mgiammarco, February 04, 2025, 03:44:36 PM

Previous topic - Next topic
Hi,
I have following use case: opnsense with dual wan. Need to have a wireguard tunnel on first wan and a wireguard tunnel on second wan.
Both tunnel connect to a server on same ip (different port).
How can I do it?
Thanks,
Mario

Should be possible with an "out" firewall rule on WAN1 (the interface with the default gateway). Set the destination and destination port to the WireGuard peer which you want to connect to using WAN2. And set the gateway to the WAN2 gateway.

Cheers
Maurice
OPNsense virtual machine images
OPNsense aarch64 firmware repository

Commercial support & engineering available. PM for details (en / de).