# Just how to automount a network share as soon as OpenVPN has attached? (Making use of Tunnelblick)

Does any person recognize just how to instantly place a network share as soon as a VPN link making use of Tunnelblick has attached?

Now I need to connect and afterwards do a cmd+ K in the finder to connect to the AFP share. It would certainly behave if it would certainly connect instantly.

The share does not have a password (TimeCapsule with no passwords, and also no, not utilizing it for backup, we utilize it for a fileserver).

0
2019-05-05 13:31:33
Source Share

## 1.

Modify the documents /Applications/Tunnelblick.app/Contents/Resources/client.up.osx.sh and also add these commands at the end of the documents, prior to exit 0 :

su USERNAME -c '
mkdir /Volumes/TimeCapsule
mount_afp afp://[email protected]/volumename /Volumes/TimeCapsule
'
open /Volumes/TimeCapsule

.

## 2.

After that add the adhering to at the end of /Applications/Tunnelblick.app/Contents/Resources/client.down.osx.sh :

umount /Volumes/TimeCapsule

.

## 3.

Do not neglect to examine the set nameserver alternative for your arrangement :

Warning : Configuration documents client.(up|down).osx.sh are implemented for every single links used OpenVPN.

This can additionally be used launchd for seeing if the vpn link is up, yet I do not recognize just how to make use of launchd.

0
2019-05-08 11:19:54
Source