My objective is to open server-side network shared folder when Windows client connects to the VPN server.
VPN server is Debian with Samba folder sharing.
Client is Win7.
I'm trying to open a network folder on --up on client side by doing this:
CODE: SELECT ALL
script-security 2
up up.bat
up-delay
where up.bat is
CODE: SELECT ALL
start \\10.8.0.1\public\
the connection to the server gets stuck at
CODE: SELECT ALL
SENT CONTROL [debideb]: 'PUSH_REQUEST' (status=1)
If I comment out up-related commands the connection establishes with no problems. I also called
CODE: SELECT ALL
start \\10.8.0.1\public\
manually after the connection is complete and it does what it should. Any ideas what I do wrong?
Client config:
CODE: SELECT ALL
client
dev tun
proto udp
remote 1.2.3.4 53789
pull
script-security 2
up up.bat
up-delay
dhcp-renew
register-dns
;tun-mtu 1500
;tun-mtu-extra 32
;mssfix 1450
persist-key
persist-tun
ping 15
ping-restart 0
ping-timer-rem
resolv-retry infinite
reneg-sec 0
explicit-exit-notify 3
nobind
ca ca.crt
cert p.crt
key p.key
remote-cert-tls server
cipher AES-256-CBC
comp-lzo
auth SHA512
fast-io
;keepalive 10 30
verb 5
Client log:
CODE: SELECT ALL
Thu Aug 23 19:31:45 2018 us=889723 Current Parameter Settings:
Thu Aug 23 19:31:45 2018 us=889723 config = 'p.ovpn'
Thu Aug 23 19:31:45 2018 us=889723 mode = 0
Thu Aug 23 19:31:45 2018 us=889723 show_ciphers = DISABLED
Thu Aug 23 19:31:45 2018 us=889723 show_digests = DISABLED
Thu Aug 23 19:31:45 2018 us=889723 show_engines = DISABLED
Thu Aug 23 19:31:45 2018 us=889723 genkey = DISABLED
Thu Aug 23 19:31:45 2018 us=889723 key_pass_file = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723 show_tls_ciphers = DISABLED
Thu Aug 23 19:31:45 2018 us=889723 connect_retry_max = 0
Thu Aug 23 19:31:45 2018 us=889723 Connection profiles [0]:
Thu Aug 23 19:31:45 2018 us=889723 proto = udp
Thu Aug 23 19:31:45 2018 us=889723 local = '[UNDEF]'
How to open network shares folder on --up in Windows!!
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 2
- Joined: Wed Jun 12, 2019 11:55 am
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: How to open network shares folder on --up in Windows!!
OpenVPN does not allow data to pass over the VPN until all scripts have completed.