Skip to content
Feature idea: remote-random but select by latency
Suggestions/comments/criticisms are welcome here
A cool feature would be something like remote-random but with latency selection.
In other words: When a profile has a bunch of servers listed and the remote-random statement exists, ping the endpoints first, filter reachable ones and then select the one with best latency. Make it optional because some use cases need true randomness.
Our use case is we have endpoints on several continents and the end-users are very mobile. Instead of having the user select a different profile based on where they are at we could provision one profile and the user's device will automatically pick the server with the lowest latency at each connection.
I googled around and I see some people experimented with something similar:
https://bsdrp.net/documentation/example ... tion_patch
https://github.com/paulgarnier/openvpn/ ... 1961cf7d2d
In other words: When a profile has a bunch of servers listed and the remote-random statement exists, ping the endpoints first, filter reachable ones and then select the one with best latency. Make it optional because some use cases need true randomness.
Our use case is we have endpoints on several continents and the end-users are very mobile. Instead of having the user select a different profile based on where they are at we could provision one profile and the user's device will automatically pick the server with the lowest latency at each connection.
I googled around and I see some people experimented with something similar:
https://bsdrp.net/documentation/example ... tion_patch
https://github.com/paulgarnier/openvpn/ ... 1961cf7d2d
2 posts
Page 1 of 1