OPNsense Forum

English Forums => Virtual private networks => Topic started by: erdeidominik99 on August 24, 2026, 09:37:57 PM

Title: Wireguard site to site with multi WAN
Post by: erdeidominik99 on August 24, 2026, 09:37:57 PM
Hy! I have 2 WAN connections. I have a wireguard site to site connection which I want to use the second wan for outgoing connection, not the default route one. I know that wireguard uses the system routing tabl, I tried to set up a floating rule with no success, then set up an SNAT rule to change the source ip, it works now, the connection goes out at the second WAN, but if the primary WAN fails it is not working, because the interface is down. Static route to the remote site ip is not an option, because I have another services on that ip, which I need the WAN failover function. Is there a solution to use the second WAN for the wireguard connection?