WAN failover is working correctly, but how can I add wireguard VPN to that setup?
Wireguard will be used for split tunneling (should I use load balancing in that case?).
What member metric should I add to VPN to make it work parallel with active wan?
If i set metric 1 to wireguard , mwan will switch to wireguard, not wan2, when wan1 fails.
Also I heard wireguard should be restarted every time wan is switched, is this correct?
The answer is:
wan1 and wan2 should be set as mwan members with metrics shown on picture, failover policy set to Last resort - unreachable and add traffuc rule for wireguard: