Hello everyone!
I have a Routerboard with two independent, masqueraded WAN connections - main and backup. I would like to set up a PPTP Client interface, but to route it through the backup WAN despite of the primary WAN availability.
Which would be the most elegant way to do that?
Try this:
1. add routing table with route to last resort:
/ip route add gateway=
ip_gatway_wan2 routing-mark=wan2
2.Add bridge and set ip address for pptp server /
bridge-pptp /
3.On pptp profile select this bridge
4. Add route rule this network to learn the wan2 routing table:
/ip route rule add src-address=
pptp network interface=bridge-pptp action=lookup table=wan2
5.Add snat for pptp network to be nated with wan2 ip address:
/ip firewall nat add chain=srcnat src-address=
pptp network out-interface=wan2 action=masquerade