Sripting-Support (Call shell script after connect)
Posted: Tue Sep 15, 2009 9:34 am
Hi,
I wonder if there would be (or allready is) simple scripting-support in Viscosity. What I mean is the ability to call a shell-script (e.g. bash or wharever) automatically after a sucessfull connect. The script to call must be selectable on a per connection base, so it can be used to mount remote volumes, do dns-magic or whatever is needed to make use of opportunities that comes in with the newly connected network. A script which is called directly before the connection is closed is usefull, too. For example to unmount network shares. The windows-gui "OpenVPN GUI" solves this by placing an optional batch-file with the name "<network>_up.bat" respectively "<network>_down.bat" which is then called when a connection change is triggered.
I've allready asked this question to the support (via contact form) but unfortunately without a response.
Thank you in advance,
Andreas Piening
I wonder if there would be (or allready is) simple scripting-support in Viscosity. What I mean is the ability to call a shell-script (e.g. bash or wharever) automatically after a sucessfull connect. The script to call must be selectable on a per connection base, so it can be used to mount remote volumes, do dns-magic or whatever is needed to make use of opportunities that comes in with the newly connected network. A script which is called directly before the connection is closed is usefull, too. For example to unmount network shares. The windows-gui "OpenVPN GUI" solves this by placing an optional batch-file with the name "<network>_up.bat" respectively "<network>_down.bat" which is then called when a connection change is triggered.
I've allready asked this question to the support (via contact form) but unfortunately without a response.
Thank you in advance,
Andreas Piening