Does anyone knows script or any other way how to create pptp (vpn) failover clients?
I have numerous mikrotik pptp clients that connect to RB600 pptp server to IP1. I would like to connect them to IP2 when IP1 is not available (and to keep the same PPP secrets if possible).
On server side, I have 2 public IP adresses. First one that is in use and alternative that works when first one is inaccessible. I used a solution for failover link: pinging gateway1 with distance=1, if not working then activate gateway2 with distance=2.
I tried to do that with netwatch from pptp clients:
host=IP1 timeout=2s interval=30s since=dec/25/2009 12:41:30
status=up
up-script=interface disable VPNRez\r\ninterface enable VPN
down-script=interface enable VPNRez\r\ninterface disable VPN
Use RADIUS server for the same database of PPTP clients.
Perhaps you can use the following approach. Configure routes accordingly to send the traffic over the tunnels, second PPTP server routes should be with higher distance.
So when first PPTP connection is down, routes become inactive and second PPTP tunnel routes are being used.
There are a numbger of ways of doing this, typically though, it would be routing issue, i.e. conect to both IPs, keep them alive, perfer one specific one. If that goes down, then it goes though the second. I have done a number of these setups, and I am sure someone on the MT consultant list can help out as well.