Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
Wireguard with two WAN
« previous
next »
Print
Pages: [
1
]
Author
Topic: Wireguard with two WAN (Read 2642 times)
pes
Newbie
Posts: 4
Karma: 0
Wireguard with two WAN
«
on:
March 06, 2023, 06:41:30 am »
I have OPNsense version: 22.1.8_1-amd64
I setup WireGuard on the OPNSense box with tho WAN and I am able to connect and access the LAN side hosts, etc. However, it only works with the WAN which is currently the default gateway. If that WAN is down, then OPNSense switches the default gateway (gateway switching is enabled) and WireGuard peers can utilize the 2nd WAN to connect. However, as long as WAN1 is "up", peers cannot connect to WAN2. Well, actually the peers appear to be able to connect to WAN2 but traffic isn't properly received (a few bytes are received but no network services such as ping, ssh, etc. work).
Can anyone point me in the right direction of how to setup WireGuard on OPNSense such that peers can connect to either WAN interface?
Logged
tiermutter
Hero Member
Posts: 1099
Karma: 61
Re: Wireguard with two WAN
«
Reply #1 on:
March 06, 2023, 07:39:34 am »
I cannot remember that I configured something special, but it works fine for me using multi WAN for failover only.
Do you use policy based routing? Enabled reply-to? Disabled sticky connection?
The only special thing I do is that I have different WG peers for WAN and LTE as I cannot add more than one DDNS for the endpoint. However, I am using the same WG server instance for both connections.
Logged
i am not an expert... just trying to help...
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
Wireguard with two WAN