Is there a way to set up a VPN client connection at the command line. I'd like to be able to read an ovpn file and write the configuration using a script.
My intention is to automate downloading of an ovpn file; choosing a server with the most capacity and lowest ping, and then automatically load the configuration into the routers VPN client configuration.
Considering how many folks use VPN’s in these forums it would be great to have that script which can:
1. Allows one to select a VPN service from a list of available providers (top 5 or 10?) and allows you to pick the one you are subscribed to.
2. Downloads a file that contains all server info for that VPN provider that is updated continuously.
3. Includes a feature that decides up to 5 best server(s) to use according to your geolocation (since there are 5 OpenVPN client profiles in asuswrt).
4. Uses the most optimal OpenVPN client setup profile for that server once selected (including custom configuration, ciphers and port)
5. Applies the same client configuration to all 5 chosen servers or gives you the option to tweak each server configuration if needed
6. Gives you the option to use Policy Rules and allows you to apply across all the chosen servers or only 1.
7. Includes a VPN Failover switch that allows switching to another server when one of them goes down (for example, when client 1 fails your device switches to Client 2 or so).
8. Includes a feature that scans all the already installed scripts and decides what the most optimal WAN and Accept DNS Configuration settings should be (Stubby vs no Stubby, DNSCrypt, etc) to ensure that there are no conflicts.
9. Be included in AMTM.
and I am sure there would be additional features that others would want.
Wouldn’t it be great to have a script like this someday?
Sent from my iPhone using Tapatalk