Auto speed test for multi VPN

Hello everyone
I’m looking for a script that can check the speed and ping of different multiple VPN clients every half an hour or so (maybe with multiple speedtest server) and select the one that has the most speed and lowest ping and change it automatically. If such a thing is possible.
I will appreciate any help

Any idea?

Any idea?

What kind of VPN are you using ?

“Searched and thou shalt find”

http://forum.mikrotik.com/t/script-multi-wan-failover-with-multiple-host-checks/124608/1

PPTP - L2TP

Thank you, how can it be modified to use for vpn?

Ping to the other end of the VPNs
If it succeeds, the tunnels are up.
Choose the fastest respons.

Yeah that would be an option but what I’m looking for is a speedtest comparison like download speed and upload speed, so it will test the download and upload speed of each vpn to a btest server and compare the result.

Don’t underestimate the impact from testing those tunnels each half hour. If you’re on a volume-limited line, it eats away of your available volume !
And the fact that during switch-over, you WILL loose your connection for whatever you are running.

What actually is missing here: what are you trying to achieve and what is your current config (incl. the lines used to connect outside) ?

The internet connection stability and speed for different vpn location changes very quickly here for example at 12 o’clock it’s got full speed with London server and at 14 o’clock it’s got one quarter of that speed with the same London server but at the same time it’s full speed with France vpn server.

My config:
Other router configurations (with static IP).txt (6.65 KB)