[SOLVED] Mount NFS after connect
Posted: Fri Jun 15, 2018 7:13 am
Hi,
I need to mount a NFS share after connection was established.
I have modified my .ovpn with that :
And my script contain :
(I can mount the NFS manually when the VPN connection was established) but when I add the option "up" in my .ovpn, I have the message "connection established" but I can't ping my NFS server ...
P.S : For testing I launched VPN & my script in root
Any idea ?
Thank's
I need to mount a NFS share after connection was established.
I have modified my .ovpn with that :
Code: Select all
script-security2
up /path/to/script.sh
Code: Select all
#!/bin/sh
mount -t nfs IP:/data /home/data
P.S : For testing I launched VPN & my script in root
Any idea ?
Thank's