Hello,
I have a problem with failover for two WAN links
WAN1 link - master - PPPOE (static IP, public ip, dynamic gateways)
WAN2 link - slave - static IP, static gateway
I was setting it up
Wan1 - distance=1
Wan2 - distance=2
For example:
WAN1 - ip:1.1.1.10/30 gw 1.1.1.1 or gw 1.1.1.2 or gw 1.1.1.3
WAN2 - ip:2.2.2.2/30 gw 2.2.2.1
LAN - 3.3.3.1/24
The switching itself worked, but the problem is connecting from the outside with both WAN1/WAN2 addresses
If WAN1 works, I cannot connect to the router with the WAN2 address and vice versa.
I have already used many guides, including recursive routing, querying DNS with a specific gateway. I used package marking and still nothing.
The biggest problem I noticed is that my main service provider (WAN1) provides me with the Internet via a pppoe connection from which I get a fixed, public IP address, but the gateway is already dynamic (it changes within three addresses - three pppoe servers of the service provider)
In the pppoe-client configuration I must select “add default route=yes” with the distance I want. That’s the only thing I can change.
If I do not select default-route=yes and enter the gateway in /ip/route manually, the link will not work.
I also added the option below and WAN1 also did not work
/routing filter add chain=dynamic-in distance=10 set-distance=1 set-routing-mark=wan1
Routerboard version 6. Currently, I only have the distance field set in the configuration. I have removed the firewall rules.
Do you have an idea what I’m doing wrong?

