Since you can't use a dynamic IP address for an L2TP server (or I guess you can with DDNS, which I'd like to avoid), I want to make a reverse tunnel - the router A will be an L2TP client and the router B will be an L2TP server (since it has a static IP).
My problem is that I can't seem to make the L2TP client on router A use the backup connection - it keeps using the default route, which is the primary connection.
I tried to create a mangle rule that modifies the routing table for the L2TP-client interface, and it seems to kinda work, the tunnel is established, but for some reason the router B can't reach the router A, while router A can reach router B. Maybe it modifies the routing table only for incoming traffic, but not for outgoing? I'm not sure. And in the "active connections" tab on router B the caller-id is still router A's static address, not the dynamic one.
Code: Select all
[admin@MikroTik] /ip firewall mangle> p
Flags: X - disabled, I - invalid, D - dynamic
3 chain=prerouting action=mark-routing new-routing-mark=backup
in-interface=l2tp-backup-client log=yes log-prefix="FFFF"
Maybe there's a simpler solution that I'm missing here? Any help or hint would be hugely appreciated!