How to have Wireguard enabled on a single WAN interface in multi-WAN mode?
Hi,
I am using an ER605 as the main router on my home network in a multi-wan setup.
-wan 1 is connected to a fiber internet modem
-wan 2 is connected to a 5G modem
wan failover in is place: only wan 1 is used if available. wan 2 is used if wan 1 is down.
On my cellular connection, I am behing a CGNAT, which is problematic to access my homer servers.
So I enabled a wireguard tunnel from my router to a remote VPS with a public IP, used as a gateway to the internet for my LAN servers.
This incoming access through the CGNAT now works well.
However, this setup is not yet satisfactory.
The issue I have is that I am unable to configure my router so that outgoing traffic goes through the wireguard tunnel only when wan 1 is down (ie when Wan 2 is actually used)
So far, outgoign traffic is going through wireguard in any case, which
-is limiting my bandwidth because my VPS server is limited in bandwidth.
-make me have to find a way to route incoming request to my LAN servers, through the VPS public IP (the one attached to my domain names based on DDNS) to either the WAN 1 router interface or WAN 2 router interface upon WAN 1 availability (which I did not manage to do so far)
What seems to be the ideal solution to me, would be to have wireguard enabled on WAN 2 only. Unfortunately, I have not found how to do so.
I need to add that my ER605 is managed through the OMADA controller.
Has anyone faced the same situation and foud the correct configuration?
Thanks for your help,
grang