Script on Connect

Got a problem with Viscosity or need help? Ask here!

ofueckert

Posts: 2
Joined: Wed Sep 02, 2009 12:41 am

Post by ofueckert » Wed Sep 02, 2009 12:44 am
Hi,

Let me first say, I really like your program and I am pretty close to get my optimal setup.

I need to open an ssh tunnel forward to my OpenVPN server before I start the VPN.
Is there a way to call a script (which will setup the SSH forward) before Connect and then again after disconnect ?

I guess it could be done with a wrapper script, but would be nice if I can get it done within Viscosity.

best regards,

Oliver.

James

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

Post by James » Wed Sep 16, 2009 3:52 am
Hi Oliver,

Well you can use OpenVPN's up and down commands (see this post). However up scripts are called once the connection has been established, rather than before connecting. Until Viscosity gets additional support for running custom scripts, the only solution I can see is to write your own script that sets up your SSH forward, and then tells Viscosity to connect via AppleScript.

Regards,
James
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
2 posts Page 1 of 1