OpenVPN automatic mapping of Windows server drives
-
Hi everyone:
We're trying to figure out how to get OpenVPN to automatically map drive(s) for a user that logs into OpenVPN from the outside. Anyone know how to get this done?
Thanks.
-
@cityunionmission
I believe there are commands to run a script or batch file upon connection. So, you'd need to create the script/batch file, place a copy on each client, and then add the appropriate command(s) to the client config.Here's an interesting alternative solution that involves leveraging the task scheduler to execute a batch file -> https://forums.openvpn.net/viewtopic.php?t=24130
-
@marvosa Are you aware of any good examples of just leveraging native commands as part of a PFSense custom config?
Have attempted:
script-security 2 system route-up “net use O: \\<fileshareIP>\”
To no avail. Would like to avoid having to distribute a script and manage it on all clients, but rather control centrally in the VPN config.
-
@dholub
Unfortunately, no. Everything I've pulled up on both the "up" and "route-up" directives references info on running a script of some sort.Have you found anything?