Feature Request: SSH Tunnel prior to tunnel connect

Suggestions/comments/criticisms are welcome here


Posts: 3
Joined: Mon Feb 14, 2011 11:49 pm

Post by hyper » Tue Feb 15, 2011 12:13 am

I am a very frequent Viscosity user and I really like the software, great work!

The way I operate is to first establish an SSH tunnel with some port forwards to servers within my company domain.
I then use Viscosity to connect to localhost to establish a connection to these ports, it essentially becomes an OpenVPN tunnel inside an SSH tunnel scenario.

Would it be possible to add the option of preceding the actual OpenVPN tunnel establishment with the creation of an SSH tunnel?


User avatar
Posts: 2076
Joined: Thu Sep 04, 2008 9:27 pm

Post by James » Tue Feb 22, 2011 3:59 am
Hi hyper,

As you found in this thread, you should be able to create a "Before Connect" script to establish the SSH the tunnel for you. Before Connect scripts are a little different to the Connected/Disconnected scripts, as Viscosity waits for the script to finish before continuing with the connection attempt. This means you shouldn't have any problem creating a script to establish your SSH tunnel: Viscosity will wait until your script is done (and hence your tunnel created) before trying to establish a VPN connection.

You can find some information for working with AppleScripts at:
http://www.thesparklabs.com/support/run ... when_conn/

James Bekkema
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs


Posts: 3
Joined: Mon Feb 14, 2011 11:49 pm

Post by hyper » Fri Feb 25, 2011 6:39 pm
Thanks James, great support!
3 posts Page 1 of 1