How to open network shares folder on --up in Windows

How to customize and extend your OpenVPN installation.
Post Reply
pavelvpn
OpenVpn Newbie
Posts: 3
Joined: Thu Aug 23, 2018 3:12 am

How to open network shares folder on --up in Windows

Post by pavelvpn » Fri Aug 24, 2018 2:46 am

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]'
Thu Aug 23 19:31:45 2018 us=889723   local_port = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   remote = '66.183.167.35'
Thu Aug 23 19:31:45 2018 us=889723   remote_port = '53789'
Thu Aug 23 19:31:45 2018 us=889723   remote_float = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   bind_defined = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   bind_local = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   bind_ipv6_only = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   connect_retry_seconds = 5
Thu Aug 23 19:31:45 2018 us=889723   connect_timeout = 120
Thu Aug 23 19:31:45 2018 us=889723   socks_proxy_server = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   socks_proxy_port = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   tun_mtu = 1500
Thu Aug 23 19:31:45 2018 us=889723   tun_mtu_defined = ENABLED
Thu Aug 23 19:31:45 2018 us=889723   link_mtu = 1500
Thu Aug 23 19:31:45 2018 us=889723   link_mtu_defined = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   tun_mtu_extra = 0
Thu Aug 23 19:31:45 2018 us=889723   tun_mtu_extra_defined = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   mtu_discover_type = -1
Thu Aug 23 19:31:45 2018 us=889723   fragment = 0
Thu Aug 23 19:31:45 2018 us=889723   mssfix = 1450
Thu Aug 23 19:31:45 2018 us=889723   explicit_exit_notification = 3
Thu Aug 23 19:31:45 2018 us=889723 Connection profiles END
Thu Aug 23 19:31:45 2018 us=889723   remote_random = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   ipchange = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   dev = 'tun'
Thu Aug 23 19:31:45 2018 us=889723   dev_type = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   dev_node = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   lladdr = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   topology = 1
Thu Aug 23 19:31:45 2018 us=889723   ifconfig_local = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   ifconfig_remote_netmask = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   ifconfig_noexec = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   ifconfig_nowarn = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   ifconfig_ipv6_local = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   ifconfig_ipv6_netbits = 0
Thu Aug 23 19:31:45 2018 us=889723   ifconfig_ipv6_remote = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   shaper = 0
Thu Aug 23 19:31:45 2018 us=889723   mtu_test = 0
Thu Aug 23 19:31:45 2018 us=889723   mlock = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   keepalive_ping = 0
Thu Aug 23 19:31:45 2018 us=889723   keepalive_timeout = 0
Thu Aug 23 19:31:45 2018 us=889723   inactivity_timeout = 0
Thu Aug 23 19:31:45 2018 us=889723   ping_send_timeout = 15
Thu Aug 23 19:31:45 2018 us=889723   ping_rec_timeout = 0
Thu Aug 23 19:31:45 2018 us=889723   ping_rec_timeout_action = 2
Thu Aug 23 19:31:45 2018 us=889723   ping_timer_remote = ENABLED
Thu Aug 23 19:31:45 2018 us=889723   remap_sigusr1 = 0
Thu Aug 23 19:31:45 2018 us=889723   persist_tun = ENABLED
Thu Aug 23 19:31:45 2018 us=889723   persist_local_ip = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   persist_remote_ip = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   persist_key = ENABLED
Thu Aug 23 19:31:45 2018 us=889723   passtos = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   resolve_retry_seconds = 1000000000
Thu Aug 23 19:31:45 2018 us=889723   resolve_in_advance = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   username = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   groupname = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   chroot_dir = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   cd_dir = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   writepid = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   up_script = 'up.bat'
Thu Aug 23 19:31:45 2018 us=889723   down_script = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   down_pre = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   up_restart = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   up_delay = ENABLED
Thu Aug 23 19:31:45 2018 us=889723   daemon = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   inetd = 0
Thu Aug 23 19:31:45 2018 us=889723   log = ENABLED
Thu Aug 23 19:31:45 2018 us=889723   suppress_timestamps = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   machine_readable_output = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   nice = 0
Thu Aug 23 19:31:45 2018 us=889723   verbosity = 5
Thu Aug 23 19:31:45 2018 us=889723   mute = 0
Thu Aug 23 19:31:45 2018 us=889723   gremlin = 0
Thu Aug 23 19:31:45 2018 us=889723   status_file = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   status_file_version = 1
Thu Aug 23 19:31:45 2018 us=889723   status_file_update_freq = 60
Thu Aug 23 19:31:45 2018 us=889723   occ = ENABLED
Thu Aug 23 19:31:45 2018 us=889723   rcvbuf = 0
Thu Aug 23 19:31:45 2018 us=889723   sndbuf = 0
Thu Aug 23 19:31:45 2018 us=889723   sockflags = 0
Thu Aug 23 19:31:45 2018 us=889723   fast_io = ENABLED
Thu Aug 23 19:31:45 2018 us=889723   comp.alg = 2
Thu Aug 23 19:31:45 2018 us=889723   comp.flags = 1
Thu Aug 23 19:31:45 2018 us=889723   route_script = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   route_default_gateway = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   route_default_metric = 0
Thu Aug 23 19:31:45 2018 us=889723   route_noexec = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   route_delay = 5
Thu Aug 23 19:31:45 2018 us=889723   route_delay_window = 30
Thu Aug 23 19:31:45 2018 us=889723   route_delay_defined = ENABLED
Thu Aug 23 19:31:45 2018 us=889723   route_nopull = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   route_gateway_via_dhcp = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   allow_pull_fqdn = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   management_addr = '127.0.0.1'
Thu Aug 23 19:31:45 2018 us=889723   management_port = '25342'
Thu Aug 23 19:31:45 2018 us=889723   management_user_pass = 'stdin'
Thu Aug 23 19:31:45 2018 us=889723   management_log_history_cache = 250
Thu Aug 23 19:31:45 2018 us=889723   management_echo_buffer_size = 100
Thu Aug 23 19:31:45 2018 us=889723   management_write_peer_info_file = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   management_client_user = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   management_client_group = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   management_flags = 6
Thu Aug 23 19:31:45 2018 us=889723   shared_secret_file = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   key_direction = not set
Thu Aug 23 19:31:45 2018 us=889723   ciphername = 'AES-256-CBC'
Thu Aug 23 19:31:45 2018 us=889723   ncp_enabled = ENABLED
Thu Aug 23 19:31:45 2018 us=889723   ncp_ciphers = 'AES-256-GCM:AES-128-GCM'
Thu Aug 23 19:31:45 2018 us=889723   authname = 'SHA512'
Thu Aug 23 19:31:45 2018 us=889723   prng_hash = 'SHA1'
Thu Aug 23 19:31:45 2018 us=889723   prng_nonce_secret_len = 16
Thu Aug 23 19:31:45 2018 us=889723   keysize = 0
Thu Aug 23 19:31:45 2018 us=889723   engine = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   replay = ENABLED
Thu Aug 23 19:31:45 2018 us=889723   mute_replay_warnings = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   replay_window = 64
Thu Aug 23 19:31:45 2018 us=889723   replay_time = 15
Thu Aug 23 19:31:45 2018 us=889723   packet_id_file = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   use_iv = ENABLED
Thu Aug 23 19:31:45 2018 us=889723   test_crypto = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   tls_server = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   tls_client = ENABLED
Thu Aug 23 19:31:45 2018 us=889723   key_method = 2
Thu Aug 23 19:31:45 2018 us=889723   ca_file = 'ca.crt'
Thu Aug 23 19:31:45 2018 us=889723   ca_path = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   dh_file = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   cert_file = 'pavel.crt'
Thu Aug 23 19:31:45 2018 us=889723   extra_certs_file = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   priv_key_file = 'pavel.key'
Thu Aug 23 19:31:45 2018 us=889723   pkcs12_file = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   cryptoapi_cert = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   cipher_list = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   tls_cert_profile = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   tls_verify = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   tls_export_cert = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   verify_x509_type = 0
Thu Aug 23 19:31:45 2018 us=889723   verify_x509_name = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   crl_file = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   ns_cert_type = 0
Thu Aug 23 19:31:45 2018 us=889723   remote_cert_ku[i] = 65535
Thu Aug 23 19:31:45 2018 us=889723   remote_cert_ku[i] = 0
Thu Aug 23 19:31:45 2018 us=889723   remote_cert_ku[i] = 0
Thu Aug 23 19:31:45 2018 us=889723   remote_cert_ku[i] = 0
Thu Aug 23 19:31:45 2018 us=889723   remote_cert_ku[i] = 0
Thu Aug 23 19:31:45 2018 us=889723   remote_cert_ku[i] = 0
Thu Aug 23 19:31:45 2018 us=889723   remote_cert_ku[i] = 0
Thu Aug 23 19:31:45 2018 us=889723   remote_cert_ku[i] = 0
Thu Aug 23 19:31:45 2018 us=889723   remote_cert_ku[i] = 0
Thu Aug 23 19:31:45 2018 us=889723   remote_cert_ku[i] = 0
Thu Aug 23 19:31:45 2018 us=889723   remote_cert_ku[i] = 0
Thu Aug 23 19:31:45 2018 us=889723   remote_cert_ku[i] = 0
Thu Aug 23 19:31:45 2018 us=889723   remote_cert_ku[i] = 0
Thu Aug 23 19:31:45 2018 us=889723   remote_cert_ku[i] = 0
Thu Aug 23 19:31:45 2018 us=889723   remote_cert_ku[i] = 0
Thu Aug 23 19:31:45 2018 us=889723   remote_cert_ku[i] = 0
Thu Aug 23 19:31:45 2018 us=889723   remote_cert_eku = 'TLS Web Server Authentication'
Thu Aug 23 19:31:45 2018 us=889723   ssl_flags = 0
Thu Aug 23 19:31:45 2018 us=889723   tls_timeout = 2
Thu Aug 23 19:31:45 2018 us=889723   renegotiate_bytes = -1
Thu Aug 23 19:31:45 2018 us=889723   renegotiate_packets = 0
Thu Aug 23 19:31:45 2018 us=889723   renegotiate_seconds = 0
Thu Aug 23 19:31:45 2018 us=889723   handshake_window = 60
Thu Aug 23 19:31:45 2018 us=889723   transition_window = 3600
Thu Aug 23 19:31:45 2018 us=889723   single_session = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   push_peer_info = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   tls_exit = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   tls_auth_file = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   tls_crypt_file = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_protected_authentication = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_protected_authentication = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_protected_authentication = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_protected_authentication = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_protected_authentication = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_protected_authentication = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_protected_authentication = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_protected_authentication = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_protected_authentication = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_protected_authentication = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_protected_authentication = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_protected_authentication = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_protected_authentication = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_protected_authentication = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_protected_authentication = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_protected_authentication = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_private_mode = 00000000
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_private_mode = 00000000
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_private_mode = 00000000
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_private_mode = 00000000
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_private_mode = 00000000
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_private_mode = 00000000
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_private_mode = 00000000
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_private_mode = 00000000
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_private_mode = 00000000
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_private_mode = 00000000
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_private_mode = 00000000
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_private_mode = 00000000
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_private_mode = 00000000
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_private_mode = 00000000
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_private_mode = 00000000
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_private_mode = 00000000
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_cert_private = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_cert_private = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_cert_private = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_cert_private = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_cert_private = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_cert_private = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_cert_private = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_cert_private = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_cert_private = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_cert_private = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_cert_private = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_cert_private = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_cert_private = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_cert_private = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_cert_private = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_cert_private = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_pin_cache_period = -1
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_id = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   pkcs11_id_management = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   server_network = 0.0.0.0
Thu Aug 23 19:31:45 2018 us=889723   server_netmask = 0.0.0.0
Thu Aug 23 19:31:45 2018 us=889723   server_network_ipv6 = ::
Thu Aug 23 19:31:45 2018 us=889723   server_netbits_ipv6 = 0
Thu Aug 23 19:31:45 2018 us=889723   server_bridge_ip = 0.0.0.0
Thu Aug 23 19:31:45 2018 us=889723   server_bridge_netmask = 0.0.0.0
Thu Aug 23 19:31:45 2018 us=889723   server_bridge_pool_start = 0.0.0.0
Thu Aug 23 19:31:45 2018 us=889723   server_bridge_pool_end = 0.0.0.0
Thu Aug 23 19:31:45 2018 us=889723   ifconfig_pool_defined = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   ifconfig_pool_start = 0.0.0.0
Thu Aug 23 19:31:45 2018 us=889723   ifconfig_pool_end = 0.0.0.0
Thu Aug 23 19:31:45 2018 us=889723   ifconfig_pool_netmask = 0.0.0.0
Thu Aug 23 19:31:45 2018 us=889723   ifconfig_pool_persist_filename = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   ifconfig_pool_persist_refresh_freq = 600
Thu Aug 23 19:31:45 2018 us=889723   ifconfig_ipv6_pool_defined = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   ifconfig_ipv6_pool_base = ::
Thu Aug 23 19:31:45 2018 us=889723   ifconfig_ipv6_pool_netbits = 0
Thu Aug 23 19:31:45 2018 us=889723   n_bcast_buf = 256
Thu Aug 23 19:31:45 2018 us=889723   tcp_queue_limit = 64
Thu Aug 23 19:31:45 2018 us=889723   real_hash_size = 256
Thu Aug 23 19:31:45 2018 us=889723   virtual_hash_size = 256
Thu Aug 23 19:31:45 2018 us=889723   client_connect_script = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   learn_address_script = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   client_disconnect_script = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   client_config_dir = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   ccd_exclusive = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   tmp_dir = 'C:\Users\User\AppData\Local\Temp\'
Thu Aug 23 19:31:45 2018 us=889723   push_ifconfig_defined = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   push_ifconfig_local = 0.0.0.0
Thu Aug 23 19:31:45 2018 us=889723   push_ifconfig_remote_netmask = 0.0.0.0
Thu Aug 23 19:31:45 2018 us=889723   push_ifconfig_ipv6_defined = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   push_ifconfig_ipv6_local = ::/0
Thu Aug 23 19:31:45 2018 us=889723   push_ifconfig_ipv6_remote = ::
Thu Aug 23 19:31:45 2018 us=889723   enable_c2c = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   duplicate_cn = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   cf_max = 0
Thu Aug 23 19:31:45 2018 us=889723   cf_per = 0
Thu Aug 23 19:31:45 2018 us=889723   max_clients = 1024
Thu Aug 23 19:31:45 2018 us=889723   max_routes_per_client = 256
Thu Aug 23 19:31:45 2018 us=889723   auth_user_pass_verify_script = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   auth_user_pass_verify_script_via_file = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   auth_token_generate = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   auth_token_lifetime = 0
Thu Aug 23 19:31:45 2018 us=889723   client = ENABLED
Thu Aug 23 19:31:45 2018 us=889723   pull = ENABLED
Thu Aug 23 19:31:45 2018 us=889723   auth_user_pass_file = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   show_net_up = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   route_method = 3
Thu Aug 23 19:31:45 2018 us=889723   block_outside_dns = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   ip_win32_defined = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   ip_win32_type = 3
Thu Aug 23 19:31:45 2018 us=889723   dhcp_masq_offset = 0
Thu Aug 23 19:31:45 2018 us=889723   dhcp_lease_time = 31536000
Thu Aug 23 19:31:45 2018 us=889723   tap_sleep = 0
Thu Aug 23 19:31:45 2018 us=889723   dhcp_options = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   dhcp_renew = ENABLED
Thu Aug 23 19:31:45 2018 us=889723   dhcp_pre_release = DISABLED
Thu Aug 23 19:31:45 2018 us=889723   domain = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   netbios_scope = '[UNDEF]'
Thu Aug 23 19:31:45 2018 us=889723   netbios_node_type = 0
Thu Aug 23 19:31:45 2018 us=889723   disable_nbt = DISABLED
Thu Aug 23 19:31:45 2018 us=889723 OpenVPN 2.4.6 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 26 2018
Thu Aug 23 19:31:45 2018 us=889723 Windows version 6.1 (Windows 7) 64bit
Thu Aug 23 19:31:45 2018 us=889723 library versions: OpenSSL 1.1.0h  27 Mar 2018, LZO 2.10
Enter Management Password:
Thu Aug 23 19:31:45 2018 us=889723 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25342
Thu Aug 23 19:31:45 2018 us=889723 Need hold release from management interface, waiting...
Thu Aug 23 19:31:46 2018 us=365328 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25342
Thu Aug 23 19:31:46 2018 us=480528 MANAGEMENT: CMD 'state on'
Thu Aug 23 19:31:46 2018 us=480528 MANAGEMENT: CMD 'log all on'
Thu Aug 23 19:31:46 2018 us=588129 MANAGEMENT: CMD 'echo all on'
Thu Aug 23 19:31:46 2018 us=588129 MANAGEMENT: CMD 'bytecount 5'
Thu Aug 23 19:31:46 2018 us=588129 MANAGEMENT: CMD 'hold off'
Thu Aug 23 19:31:46 2018 us=603729 MANAGEMENT: CMD 'hold release'
Thu Aug 23 19:31:46 2018 us=603729 WARNING: --ping should normally be used with --ping-restart or --ping-exit
Thu Aug 23 19:31:46 2018 us=603729 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Thu Aug 23 19:31:46 2018 us=603729 NOTE: --fast-io is disabled since we are running on Windows
Thu Aug 23 19:31:46 2018 us=619329 MANAGEMENT: CMD 'password [...]'
Thu Aug 23 19:31:46 2018 us=619329 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Thu Aug 23 19:31:46 2018 us=619329 LZO compression initializing
Thu Aug 23 19:31:46 2018 us=619329 Control Channel MTU parms [ L:1622 D:1212 EF:38 EB:0 ET:0 EL:3 ]
Thu Aug 23 19:31:46 2018 us=619329 Data Channel MTU parms [ L:1622 D:1450 EF:122 EB:406 ET:0 EL:3 ]
Thu Aug 23 19:31:46 2018 us=619329 Local Options String (VER=V4): 'V4,dev-type tun,link-mtu 1602,tun-mtu 1500,proto UDPv4,comp-lzo,cipher AES-256-CBC,auth SHA512,keysize 256,key-method 2,tls-client'
Thu Aug 23 19:31:46 2018 us=619329 Expected Remote Options String (VER=V4): 'V4,dev-type tun,link-mtu 1602,tun-mtu 1500,proto UDPv4,comp-lzo,cipher AES-256-CBC,auth SHA512,keysize 256,key-method 2,tls-server'
Thu Aug 23 19:31:46 2018 us=619329 TCP/UDP: Preserving recently used remote address: [AF_INET]66.183.167.35:53789
Thu Aug 23 19:31:46 2018 us=619329 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu Aug 23 19:31:46 2018 us=619329 UDP link local: (not bound)
Thu Aug 23 19:31:46 2018 us=619329 UDP link remote: [AF_INET]66.183.167.35:53789
Thu Aug 23 19:31:46 2018 us=619329 MANAGEMENT: >STATE:1535077906,WAIT,,,,,,
Thu Aug 23 19:31:46 2018 us=666130 MANAGEMENT: >STATE:1535077906,AUTH,,,,,,
Thu Aug 23 19:31:46 2018 us=666130 TLS: Initial packet from [AF_INET]66.183.167.35:53789, sid=0770bed3 d7aad11f
Thu Aug 23 19:31:46 2018 us=770730 VERIFY OK: depth=1, C=CA, ST=BC, L=NewWestminster, O=Debideb, OU=MyOrganizationalUnit, CN=Debideb CA, name=debideb, emailAddress=me@myhost.mydomain
Thu Aug 23 19:31:46 2018 us=770730 VERIFY KU OK
Thu Aug 23 19:31:46 2018 us=770730 Validating certificate extended key usage
Thu Aug 23 19:31:46 2018 us=770730 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Thu Aug 23 19:31:46 2018 us=770730 VERIFY EKU OK
Thu Aug 23 19:31:46 2018 us=770730 VERIFY OK: depth=0, C=CA, ST=BC, L=NewWestminster, O=Debideb, OU=MyOrganizationalUnit, CN=debideb, name=debideb, emailAddress=me@myhost.mydomain
Thu Aug 23 19:31:46 2018 us=879931 Control Channel: TLSv1.2, cipher TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Thu Aug 23 19:31:46 2018 us=879931 [debideb] Peer Connection Initiated with [AF_INET]66.183.167.35:53789
Thu Aug 23 19:31:48 2018 us=133739 MANAGEMENT: >STATE:1535077908,GET_CONFIG,,,,,,
Thu Aug 23 19:31:48 2018 us=133739 SENT CONTROL [debideb]: 'PUSH_REQUEST' (status=1)
Thu Aug 23 19:31:48 2018 us=185539 PUSH: Received control message: 'PUSH_REPLY,topology subnet,dhcp-option DNS 8.8.4.4,dhcp-option DNS 8.8.8.8,redirect-gateway autolocal,compress lz4-v2,route-gateway 10.8.0.1,topology subnet,ping 10,ping-restart 120,ifconfig 10.8.0.4 255.255.255.0,peer-id 0,cipher AES-256-GCM'
Thu Aug 23 19:31:48 2018 us=185539 Flag 'def1' added to --redirect-gateway (iservice is in use)
Thu Aug 23 19:31:48 2018 us=185539 OPTIONS IMPORT: timers and/or timeouts modified
Thu Aug 23 19:31:48 2018 us=185539 OPTIONS IMPORT: compression parms modified
Thu Aug 23 19:31:48 2018 us=185539 LZ4v2 compression initializing
Thu Aug 23 19:31:48 2018 us=185539 OPTIONS IMPORT: --ifconfig/up options modified
Thu Aug 23 19:31:48 2018 us=185539 OPTIONS IMPORT: route options modified
Thu Aug 23 19:31:48 2018 us=185539 OPTIONS IMPORT: route-related options modified
Thu Aug 23 19:31:48 2018 us=185539 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Thu Aug 23 19:31:48 2018 us=185539 OPTIONS IMPORT: peer-id set
Thu Aug 23 19:31:48 2018 us=185539 OPTIONS IMPORT: adjusting link_mtu to 1625
Thu Aug 23 19:31:48 2018 us=185539 OPTIONS IMPORT: data channel crypto options modified
Thu Aug 23 19:31:48 2018 us=185539 Data Channel: using negotiated cipher 'AES-256-GCM'
Thu Aug 23 19:31:48 2018 us=185539 Data Channel MTU parms [ L:1553 D:1450 EF:53 EB:406 ET:0 EL:3 ]
Thu Aug 23 19:31:48 2018 us=185539 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Thu Aug 23 19:31:48 2018 us=185539 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Thu Aug 23 19:31:48 2018 us=185539 interactive service msg_channel=396
Thu Aug 23 19:31:48 2018 us=185539 ROUTE_GATEWAY 192.168.0.1/255.255.255.0 I=11 HWADDR=18:3d:a2:30:3c:f0
Thu Aug 23 19:31:48 2018 us=216740 open_tun
Thu Aug 23 19:31:48 2018 us=216740 TAP-WIN32 device [Local Area Connection 2] opened: \\.\Global\{ECDC7C9C-91A5-4ED0-86E4-75176C814068}.tap
Thu Aug 23 19:31:48 2018 us=216740 TAP-Windows Driver Version 9.21 
Thu Aug 23 19:31:48 2018 us=216740 TAP-Windows MTU=1500
Thu Aug 23 19:31:48 2018 us=216740 Set TAP-Windows TUN subnet mode network/local/netmask = 10.8.0.0/10.8.0.4/255.255.255.0 [SUCCEEDED]
Thu Aug 23 19:31:48 2018 us=216740 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.8.0.4/255.255.255.0 on interface {ECDC7C9C-91A5-4ED0-86E4-75176C814068} [DHCP-serv: 10.8.0.254, lease-time: 31536000]
Thu Aug 23 19:31:48 2018 us=216740 DHCP option string: 06080808 04040808 0808
Thu Aug 23 19:31:48 2018 us=216740 Successful ARP Flush on interface [24] {ECDC7C9C-91A5-4ED0-86E4-75176C814068}
Thu Aug 23 19:31:51 2018 us=885169 TAP: DHCP address renewal succeeded
Thu Aug 23 19:31:51 2018 us=885169 do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Thu Aug 23 19:31:51 2018 us=885169 MANAGEMENT: >STATE:1535077911,ASSIGN_IP,,10.8.0.4,,,,
Thu Aug 23 19:31:51 2018 us=886169 up.bat Local Area Connection 2 1500 1553 10.8.0.4 255.255.255.0 init
Thu Aug 23 19:31:51 2018 us=886169 env_block: add PATH=C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 6004
Joined: Fri Jun 03, 2016 1:17 pm

Re: How to open network shares folder on --up in Windows

Post by TinCanTech » Fri Aug 24, 2018 1:38 pm

By design, OpenVPN will not pass any data over the VPN until all scripts have cleanly exited.
Thus, you cannot use the --up script for this purpose.

Post Reply