Hello,
I have an RB750GL router, and today I successfully succeded to configure failover on it, WAN 1 goes to my fiber optic internet connection (which in last period wasn’t very reliable) and WAN 2 goes to a 4G Router. I successfully managed to make it to work, via ping to 8.8.8.8 (tested locally with a hosted machine and played with the ICMP filter), and everything works perfect.
My only concern is about the PPTP Client that I have on this router. I need the PPTP Client to reconnect as soon as the connection is changed, let’s say WAN 1 fails, and the router auto switchs to the WAN 2 after failed attempts to ping 8.8.8.8. The PPTP Client will reconnect after 45-60 seconds (measured by me) even if I put on the “Keepalive Timeout” on the PPTP Client, let’s say 5 or 10. I thought that if I put there a small amount instead of 60, it will check every X seconds if the VPN Client is connected and trafic goes through it, but I simulated for 10-15 times this failure from WAN 1 to WAN 2, and it’s annoying that it reconnects only after 60 seconds. I need a faster switch interval because I have connected a SIP Phone and if I miss a call it’s not really good
.
I searched on Google after some check scripts, to run them through cron jobs in mikrotik router, but I didn’t find something intresting. I would really appreciate if somebody could provide me with a link or give me an advice, on how to make a script that sends a ping request (ICMP) via the VPN Client every 5-10 seconds let’s say, and if it fails, to auto restart as long as it will pass the ICMP request.
Thanks in advance!