Hi,
I apologize because I read many articles about the same problem but can find an answer.
I want to mount dynamically some shared folders from a NAS.
The list has to be dynamic.
So I wrote a script on the server-side which generates a script that contains all the net use.
net use x: \\X.X.X.X\folder1
net use y:\\X.X.X.Y\folder2
.....
On the client side, I added :
route-up script <script_to_mount>
and the script just contains the start
start \\X.X.X.X\<script_to_mount> which will perform the net use commands.
I see that the VPN launch the script by route-up , but nothing happens, it's just long as if there was a time-out.
And if you execute manually the script from a dos shell, everything is fine.
Do you have any idea ?
Thanks.
route-up on windows
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVPN Protagonist
- Posts: 11138
- Joined: Fri Jun 03, 2016 1:17 pm
Re: route-up on windows
For security reasons, Openvpn does not allow any data to traverse the tunnel until all scripts have completed.
Therefore, your script cannot find the remote device.
Therefore, your script cannot find the remote device.