Skip to content
How to Automate Connection Sequencing
Got a problem with Viscosity or need help? Ask here!
Hello Sparklabs,
I have a list of connections as .ovpn files in Viscosity. By default I can set only one connection as the default connection to use when Viscosity starts.
Now I want to automate the sequencing for instance when the default connection fails to connect I want Viscosity to automatically try the next connection, until it finds one that works.
How do I do that?
I have a list of connections as .ovpn files in Viscosity. By default I can set only one connection as the default connection to use when Viscosity starts.
Now I want to automate the sequencing for instance when the default connection fails to connect I want Viscosity to automatically try the next connection, until it finds one that works.
How do I do that?
Hi sokaton,
I'm afraid Viscosity isn't really designed to do this, but you do have a couple of options. The easiest is to set multiple connection addresses in one connection, and OpenVPN will cycle through these address until it managed to establish a connection to one. To do this, edit your connection, and in the Address field under General, enter each address separated by a comma. Each address can have it's own port and protocol as well, for example:
vpn.server.com, vpn1.server.com:1194:udp, vpn2.server.com:80:tcp, vpn3.server.com:1194
If a protocol or port is not defined, it will use the default set underneath it.
Option two is to use scripting to cycle connections. You can find more information on scripting below:
http://www.sparklabs.com/support/viswin_command_line/
http://www.sparklabs.com/support/viswin_script_control/
Regards,
Eric
I'm afraid Viscosity isn't really designed to do this, but you do have a couple of options. The easiest is to set multiple connection addresses in one connection, and OpenVPN will cycle through these address until it managed to establish a connection to one. To do this, edit your connection, and in the Address field under General, enter each address separated by a comma. Each address can have it's own port and protocol as well, for example:
vpn.server.com, vpn1.server.com:1194:udp, vpn2.server.com:80:tcp, vpn3.server.com:1194
If a protocol or port is not defined, it will use the default set underneath it.
Option two is to use scripting to cycle connections. You can find more information on scripting below:
http://www.sparklabs.com/support/viswin_command_line/
http://www.sparklabs.com/support/viswin_script_control/
Regards,
Eric
Eric Thorpe
Viscosity Developer
Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs
Viscosity Developer
Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs
Hello Eric,
Thanks for your reply. Can you help me out (even for a fee) to do the following:
1. Bundle Viscosity with my .ovpn connections, so that when I install it it deploys with the required connections in stead of the default ones from Sparklabs.
2. Create settings or scripts for connection cycling/sequencing.
Or if you are too busy for that, do you have anyone you can recommend for the job?
Regards
Sokaton
Thanks for your reply. Can you help me out (even for a fee) to do the following:
1. Bundle Viscosity with my .ovpn connections, so that when I install it it deploys with the required connections in stead of the default ones from Sparklabs.
2. Create settings or scripts for connection cycling/sequencing.
Or if you are too busy for that, do you have anyone you can recommend for the job?
Regards
Sokaton
Hi Sokaton,
I'm afraid we don't offer services for bundling up connections for you, but we do have plenty of documentation to help you out. As I described before, setting up Viscosity to roll through connections is as simple as editing a connection and adding the servers you wish to cycle through providing each server uses the same certificates.
After you have done this, you can then bundle this connection into an installer. It is important to note we do not provide any connections by default. If you have an installer prebundled with connections, this would have been provided to you by your VPN Provider -
If you wish to rebundle your connections, please see the following guide - http://www.sparklabs.com/support/viswin ... viscosity/
Otherwise, you may wish to contact your VPN Provider as they may be able to provide you with a connection that already cycles through connections premade for you to use.
Regards,
Eric
I'm afraid we don't offer services for bundling up connections for you, but we do have plenty of documentation to help you out. As I described before, setting up Viscosity to roll through connections is as simple as editing a connection and adding the servers you wish to cycle through providing each server uses the same certificates.
After you have done this, you can then bundle this connection into an installer. It is important to note we do not provide any connections by default. If you have an installer prebundled with connections, this would have been provided to you by your VPN Provider -
If you wish to rebundle your connections, please see the following guide - http://www.sparklabs.com/support/viswin ... viscosity/
Otherwise, you may wish to contact your VPN Provider as they may be able to provide you with a connection that already cycles through connections premade for you to use.
Regards,
Eric
Eric Thorpe
Viscosity Developer
Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs
Viscosity Developer
Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs
I have succeeded to create connection cycling using the GUI method. Thanks.
I haven't tried the bundling yet. One question: Can I set connection cycling in the bundling process such that when the bundled installer is created the connection cycling setup is also automatically included?
Or will I have to set connection cycling manually after every installation?
I haven't tried the bundling yet. One question: Can I set connection cycling in the bundling process such that when the bundled installer is created the connection cycling setup is also automatically included?
Or will I have to set connection cycling manually after every installation?
Hi Sokaton,
If you export the connection you have setup with multiple server addresses (so that it cycles through connections), and then use this connection in the bundling process, the cycling will be retained on the new computer that you install the bundle on. To export, select the connection you wish to export and click the Cog next to Edit.
Regards,
Eric
If you export the connection you have setup with multiple server addresses (so that it cycles through connections), and then use this connection in the bundling process, the cycling will be retained on the new computer that you install the bundle on. To export, select the connection you wish to export and click the Cog next to Edit.
Regards,
Eric
Eric Thorpe
Viscosity Developer
Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs
Viscosity Developer
Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs
6 posts
Page 1 of 1