Windows Server 2008 R2 Datacenter -- OpenVPN 2.4.8 doesn't assign an IP to a TAP device

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.
Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
Xandros
OpenVpn Newbie
Posts: 3
Joined: Sun Feb 16, 2020 7:19 pm

Windows Server 2008 R2 Datacenter -- OpenVPN 2.4.8 doesn't assign an IP to a TAP device

Post by Xandros » Tue Feb 18, 2020 2:56 pm

I have tried to set up latest (2.4.8) OpenVPN server on Windows Server 2008 R2 Datacenter SP1 and i can't defeat one big problem - Windows-Tap doesn't receive any IP information from OpenVPN, while log says that DHCP is instructed to set the IP.
I am intending to use OpenVPN as a private network, not as a proxy for web traffic.

I have the current situation:
1. OpenVPN is installed without GUI.
2. OpenVPN service starts successfully and no errors regarding network configuration are present in log.
3. Users can interact with each other without any problems, however they cannot ping the host, due to a failure to assign IP to its TAP interface.
4. If you define an alternative IP address (in my case it is 10.8.0.1 netmask 255.255.255.0) manually, Windows will switch to this address eventually and connection will work, but this takes a huge amount of time (like 1 or 2 minutes for Windows to determine that it should try an alternative address) and introduces another entity to configure.

My configuration:
Server config

local valid.external.ip.v4
mode server
tls-server
proto udp4
port 1194
dev tun
ca "path to file"
cert "path to file"
key "path to file"
dh "path to file"
topology subnet
server 10.8.0.0 255.255.255.0
dev-node WinTap1
ifconfig-pool-persist ipp.txt
client-to-client
keepalive 10 120
tls-auth "path to key" 0
cipher AES-256-GCM
persist-key
persist-tun
status openvpn-status.log
verb 4
explicit-exit-notify 1

Log file (verbosity level 4)

Code: Select all

Tue Feb 18 14:48:57 2020 us=750000 Current Parameter Settings:
Tue Feb 18 14:48:57 2020 us=750000   config = 'C:\Program Files\OpenVPN\config\server.ovpn'
Tue Feb 18 14:48:57 2020 us=750000   mode = 1
Tue Feb 18 14:48:57 2020 us=750000   show_ciphers = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   show_digests = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   show_engines = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   genkey = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   key_pass_file = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   show_tls_ciphers = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   connect_retry_max = 0
Tue Feb 18 14:48:57 2020 us=750000 Connection profiles [0]:
Tue Feb 18 14:48:57 2020 us=750000   proto = udp4
Tue Feb 18 14:48:57 2020 us=750000   local = '185.183.98.184'
Tue Feb 18 14:48:57 2020 us=750000   local_port = '1194'
Tue Feb 18 14:48:57 2020 us=750000   remote = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   remote_port = '1194'
Tue Feb 18 14:48:57 2020 us=750000   remote_float = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   bind_defined = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   bind_local = ENABLED
Tue Feb 18 14:48:57 2020 us=750000   bind_ipv6_only = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   connect_retry_seconds = 5
Tue Feb 18 14:48:57 2020 us=750000   connect_timeout = 120
Tue Feb 18 14:48:57 2020 us=750000   socks_proxy_server = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   socks_proxy_port = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   tun_mtu = 1500
Tue Feb 18 14:48:57 2020 us=750000   tun_mtu_defined = ENABLED
Tue Feb 18 14:48:57 2020 us=750000   link_mtu = 1500
Tue Feb 18 14:48:57 2020 us=750000   link_mtu_defined = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   tun_mtu_extra = 0
Tue Feb 18 14:48:57 2020 us=750000   tun_mtu_extra_defined = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   mtu_discover_type = -1
Tue Feb 18 14:48:57 2020 us=750000   fragment = 0
Tue Feb 18 14:48:57 2020 us=750000   mssfix = 1450
Tue Feb 18 14:48:57 2020 us=750000   explicit_exit_notification = 1
Tue Feb 18 14:48:57 2020 us=750000 Connection profiles END
Tue Feb 18 14:48:57 2020 us=750000   remote_random = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   ipchange = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   dev = 'tun'
Tue Feb 18 14:48:57 2020 us=750000   dev_type = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   dev_node = 'WinTap1'
Tue Feb 18 14:48:57 2020 us=750000   lladdr = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   topology = 3
Tue Feb 18 14:48:57 2020 us=750000   ifconfig_local = '10.8.0.1'
Tue Feb 18 14:48:57 2020 us=750000   ifconfig_remote_netmask = '255.255.255.0'
Tue Feb 18 14:48:57 2020 us=750000   ifconfig_noexec = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   ifconfig_nowarn = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   ifconfig_ipv6_local = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   ifconfig_ipv6_netbits = 0
Tue Feb 18 14:48:57 2020 us=750000   ifconfig_ipv6_remote = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   shaper = 0
Tue Feb 18 14:48:57 2020 us=750000   mtu_test = 0
Tue Feb 18 14:48:57 2020 us=750000   mlock = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   keepalive_ping = 10
Tue Feb 18 14:48:57 2020 us=750000   keepalive_timeout = 120
Tue Feb 18 14:48:57 2020 us=750000   inactivity_timeout = 0
Tue Feb 18 14:48:57 2020 us=750000   ping_send_timeout = 10
Tue Feb 18 14:48:57 2020 us=750000   ping_rec_timeout = 240
Tue Feb 18 14:48:57 2020 us=750000   ping_rec_timeout_action = 2
Tue Feb 18 14:48:57 2020 us=750000   ping_timer_remote = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   remap_sigusr1 = 0
Tue Feb 18 14:48:57 2020 us=750000   persist_tun = ENABLED
Tue Feb 18 14:48:57 2020 us=750000   persist_local_ip = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   persist_remote_ip = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   persist_key = ENABLED
Tue Feb 18 14:48:57 2020 us=750000   passtos = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   resolve_retry_seconds = 1000000000
Tue Feb 18 14:48:57 2020 us=750000   resolve_in_advance = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   username = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   groupname = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   chroot_dir = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   cd_dir = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   writepid = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   up_script = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   down_script = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   down_pre = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   up_restart = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   up_delay = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   daemon = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   inetd = 0
Tue Feb 18 14:48:57 2020 us=750000   log = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   suppress_timestamps = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   machine_readable_output = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   nice = 0
Tue Feb 18 14:48:57 2020 us=750000   verbosity = 4
Tue Feb 18 14:48:57 2020 us=750000   mute = 0
Tue Feb 18 14:48:57 2020 us=750000   gremlin = 0
Tue Feb 18 14:48:57 2020 us=750000   status_file = 'openvpn-status.log'
Tue Feb 18 14:48:57 2020 us=750000   status_file_version = 1
Tue Feb 18 14:48:57 2020 us=750000   status_file_update_freq = 60
Tue Feb 18 14:48:57 2020 us=750000   occ = ENABLED
Tue Feb 18 14:48:57 2020 us=750000   rcvbuf = 0
Tue Feb 18 14:48:57 2020 us=750000   sndbuf = 0
Tue Feb 18 14:48:57 2020 us=750000   sockflags = 0
Tue Feb 18 14:48:57 2020 us=750000   fast_io = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   comp.alg = 0
Tue Feb 18 14:48:57 2020 us=750000   comp.flags = 0
Tue Feb 18 14:48:57 2020 us=750000   route_script = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   route_default_gateway = '10.8.0.2'
Tue Feb 18 14:48:57 2020 us=750000   route_default_metric = 0
Tue Feb 18 14:48:57 2020 us=750000   route_noexec = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   route_delay = 0
Tue Feb 18 14:48:57 2020 us=750000   route_delay_window = 30
Tue Feb 18 14:48:57 2020 us=750000   route_delay_defined = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   route_nopull = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   route_gateway_via_dhcp = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   allow_pull_fqdn = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   management_addr = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   management_port = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   management_user_pass = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   management_log_history_cache = 250
Tue Feb 18 14:48:57 2020 us=750000   management_echo_buffer_size = 100
Tue Feb 18 14:48:57 2020 us=750000   management_write_peer_info_file = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   management_client_user = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   management_client_group = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   management_flags = 0
Tue Feb 18 14:48:57 2020 us=750000   shared_secret_file = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   key_direction = 0
Tue Feb 18 14:48:57 2020 us=750000   ciphername = 'AES-256-GCM'
Tue Feb 18 14:48:57 2020 us=750000   ncp_enabled = ENABLED
Tue Feb 18 14:48:57 2020 us=750000   ncp_ciphers = 'AES-256-GCM:AES-128-GCM'
Tue Feb 18 14:48:57 2020 us=750000   authname = 'SHA1'
Tue Feb 18 14:48:57 2020 us=750000   prng_hash = 'SHA1'
Tue Feb 18 14:48:57 2020 us=750000   prng_nonce_secret_len = 16
Tue Feb 18 14:48:57 2020 us=750000   keysize = 0
Tue Feb 18 14:48:57 2020 us=750000   engine = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   replay = ENABLED
Tue Feb 18 14:48:57 2020 us=750000   mute_replay_warnings = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   replay_window = 64
Tue Feb 18 14:48:57 2020 us=750000   replay_time = 15
Tue Feb 18 14:48:57 2020 us=750000   packet_id_file = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   use_iv = ENABLED
Tue Feb 18 14:48:57 2020 us=750000   test_crypto = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   tls_server = ENABLED
Tue Feb 18 14:48:57 2020 us=750000   tls_client = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   key_method = 2
Tue Feb 18 14:48:57 2020 us=750000   ca_file = 'C:\Program Files\OpenVPN\keys\ca.crt'
Tue Feb 18 14:48:57 2020 us=750000   ca_path = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   dh_file = 'C:\Program Files\OpenVPN\keys\dh2048.pem'
Tue Feb 18 14:48:57 2020 us=750000   cert_file = 'C:\Program Files\OpenVPN\keys\MainServer.crt'
Tue Feb 18 14:48:57 2020 us=750000   extra_certs_file = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   priv_key_file = 'C:\Program Files\OpenVPN\keys\MainServer.key'
Tue Feb 18 14:48:57 2020 us=750000   pkcs12_file = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   cryptoapi_cert = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   cipher_list = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   cipher_list_tls13 = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   tls_cert_profile = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   tls_verify = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   tls_export_cert = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   verify_x509_type = 0
Tue Feb 18 14:48:57 2020 us=750000   verify_x509_name = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   crl_file = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   ns_cert_type = 0
Tue Feb 18 14:48:57 2020 us=750000   remote_cert_ku[i] = 0
Tue Feb 18 14:48:57 2020 us=750000   remote_cert_ku[i] = 0
Tue Feb 18 14:48:57 2020 us=750000   remote_cert_ku[i] = 0
Tue Feb 18 14:48:57 2020 us=750000   remote_cert_ku[i] = 0
Tue Feb 18 14:48:57 2020 us=750000   remote_cert_ku[i] = 0
Tue Feb 18 14:48:57 2020 us=750000   remote_cert_ku[i] = 0
Tue Feb 18 14:48:57 2020 us=750000   remote_cert_ku[i] = 0
Tue Feb 18 14:48:57 2020 us=750000   remote_cert_ku[i] = 0
Tue Feb 18 14:48:57 2020 us=750000   remote_cert_ku[i] = 0
Tue Feb 18 14:48:57 2020 us=750000   remote_cert_ku[i] = 0
Tue Feb 18 14:48:57 2020 us=750000   remote_cert_ku[i] = 0
Tue Feb 18 14:48:57 2020 us=750000   remote_cert_ku[i] = 0
Tue Feb 18 14:48:57 2020 us=750000   remote_cert_ku[i] = 0
Tue Feb 18 14:48:57 2020 us=750000   remote_cert_ku[i] = 0
Tue Feb 18 14:48:57 2020 us=750000   remote_cert_ku[i] = 0
Tue Feb 18 14:48:57 2020 us=750000   remote_cert_ku[i] = 0
Tue Feb 18 14:48:57 2020 us=750000   remote_cert_eku = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   ssl_flags = 0
Tue Feb 18 14:48:57 2020 us=750000   tls_timeout = 2
Tue Feb 18 14:48:57 2020 us=750000   renegotiate_bytes = -1
Tue Feb 18 14:48:57 2020 us=750000   renegotiate_packets = 0
Tue Feb 18 14:48:57 2020 us=750000   renegotiate_seconds = 3600
Tue Feb 18 14:48:57 2020 us=750000   handshake_window = 60
Tue Feb 18 14:48:57 2020 us=750000   transition_window = 3600
Tue Feb 18 14:48:57 2020 us=750000   single_session = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   push_peer_info = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   tls_exit = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   tls_auth_file = 'C:\Program Files\OpenVPN\keys\ta.key'
Tue Feb 18 14:48:57 2020 us=750000   tls_crypt_file = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_protected_authentication = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_protected_authentication = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_protected_authentication = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_protected_authentication = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_protected_authentication = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_protected_authentication = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_protected_authentication = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_protected_authentication = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_protected_authentication = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_protected_authentication = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_protected_authentication = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_protected_authentication = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_protected_authentication = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_protected_authentication = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_protected_authentication = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_protected_authentication = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_private_mode = 00000000
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_private_mode = 00000000
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_private_mode = 00000000
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_private_mode = 00000000
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_private_mode = 00000000
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_private_mode = 00000000
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_private_mode = 00000000
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_private_mode = 00000000
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_private_mode = 00000000
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_private_mode = 00000000
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_private_mode = 00000000
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_private_mode = 00000000
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_private_mode = 00000000
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_private_mode = 00000000
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_private_mode = 00000000
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_private_mode = 00000000
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_cert_private = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_cert_private = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_cert_private = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_cert_private = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_cert_private = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_cert_private = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_cert_private = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_cert_private = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_cert_private = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_cert_private = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_cert_private = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_cert_private = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_cert_private = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_cert_private = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_cert_private = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_cert_private = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_pin_cache_period = -1
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_id = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   pkcs11_id_management = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   server_network = 10.8.0.0
Tue Feb 18 14:48:57 2020 us=750000   server_netmask = 255.255.255.0
Tue Feb 18 14:48:57 2020 us=750000   server_network_ipv6 = ::
Tue Feb 18 14:48:57 2020 us=750000   server_netbits_ipv6 = 0
Tue Feb 18 14:48:57 2020 us=750000   server_bridge_ip = 0.0.0.0
Tue Feb 18 14:48:57 2020 us=750000   server_bridge_netmask = 0.0.0.0
Tue Feb 18 14:48:57 2020 us=750000   server_bridge_pool_start = 0.0.0.0
Tue Feb 18 14:48:57 2020 us=750000   server_bridge_pool_end = 0.0.0.0
Tue Feb 18 14:48:57 2020 us=750000   push_entry = 'route-gateway 10.8.0.1'
Tue Feb 18 14:48:57 2020 us=750000   push_entry = 'topology subnet'
Tue Feb 18 14:48:57 2020 us=750000   push_entry = 'ping 10'
Tue Feb 18 14:48:57 2020 us=750000   push_entry = 'ping-restart 120'
Tue Feb 18 14:48:57 2020 us=750000   ifconfig_pool_defined = ENABLED
Tue Feb 18 14:48:57 2020 us=750000   ifconfig_pool_start = 10.8.0.2
Tue Feb 18 14:48:57 2020 us=750000   ifconfig_pool_end = 10.8.0.253
Tue Feb 18 14:48:57 2020 us=750000   ifconfig_pool_netmask = 255.255.255.0
Tue Feb 18 14:48:57 2020 us=750000   ifconfig_pool_persist_filename = 'ipp.txt'
Tue Feb 18 14:48:57 2020 us=750000   ifconfig_pool_persist_refresh_freq = 600
Tue Feb 18 14:48:57 2020 us=750000   ifconfig_ipv6_pool_defined = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   ifconfig_ipv6_pool_base = ::
Tue Feb 18 14:48:57 2020 us=750000   ifconfig_ipv6_pool_netbits = 0
Tue Feb 18 14:48:57 2020 us=750000   n_bcast_buf = 256
Tue Feb 18 14:48:57 2020 us=750000   tcp_queue_limit = 64
Tue Feb 18 14:48:57 2020 us=750000   real_hash_size = 256
Tue Feb 18 14:48:57 2020 us=750000   virtual_hash_size = 256
Tue Feb 18 14:48:57 2020 us=750000   client_connect_script = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   learn_address_script = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   client_disconnect_script = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   client_config_dir = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   ccd_exclusive = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   tmp_dir = 'C:\Windows\TEMP\'
Tue Feb 18 14:48:57 2020 us=750000   push_ifconfig_defined = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   push_ifconfig_local = 0.0.0.0
Tue Feb 18 14:48:57 2020 us=750000   push_ifconfig_remote_netmask = 0.0.0.0
Tue Feb 18 14:48:57 2020 us=750000   push_ifconfig_ipv6_defined = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   push_ifconfig_ipv6_local = ::/0
Tue Feb 18 14:48:57 2020 us=750000   push_ifconfig_ipv6_remote = ::
Tue Feb 18 14:48:57 2020 us=750000   enable_c2c = ENABLED
Tue Feb 18 14:48:57 2020 us=750000   duplicate_cn = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   cf_max = 0
Tue Feb 18 14:48:57 2020 us=750000   cf_per = 0
Tue Feb 18 14:48:57 2020 us=750000   max_clients = 1024
Tue Feb 18 14:48:57 2020 us=750000   max_routes_per_client = 256
Tue Feb 18 14:48:57 2020 us=750000   auth_user_pass_verify_script = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   auth_user_pass_verify_script_via_file = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   auth_token_generate = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   auth_token_lifetime = 0
Tue Feb 18 14:48:57 2020 us=750000   client = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   pull = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   auth_user_pass_file = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   show_net_up = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   route_method = 0
Tue Feb 18 14:48:57 2020 us=750000   block_outside_dns = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   ip_win32_defined = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   ip_win32_type = 3
Tue Feb 18 14:48:57 2020 us=750000   dhcp_masq_offset = 0
Tue Feb 18 14:48:57 2020 us=750000   dhcp_lease_time = 31536000
Tue Feb 18 14:48:57 2020 us=750000   tap_sleep = 10
Tue Feb 18 14:48:57 2020 us=750000   dhcp_options = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   dhcp_renew = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   dhcp_pre_release = DISABLED
Tue Feb 18 14:48:57 2020 us=750000   domain = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   netbios_scope = '[UNDEF]'
Tue Feb 18 14:48:57 2020 us=750000   netbios_node_type = 0
Tue Feb 18 14:48:57 2020 us=750000   disable_nbt = DISABLED
Tue Feb 18 14:48:57 2020 us=750000 OpenVPN 2.4.8 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Oct 31 2019
Tue Feb 18 14:48:57 2020 us=750000 Windows version 6.1 (Windows 7) 64bit
Tue Feb 18 14:48:57 2020 us=750000 library versions: OpenSSL 1.1.0l  10 Sep 2019, LZO 2.10
Tue Feb 18 14:48:57 2020 us=765625 Diffie-Hellman initialized with 2048 bit key
Tue Feb 18 14:48:57 2020 us=765625 Failed to extract curve from certificate (UNDEF), using secp384r1 instead.
Tue Feb 18 14:48:57 2020 us=765625 ECDH curve secp384r1 added
Tue Feb 18 14:48:57 2020 us=765625 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Feb 18 14:48:57 2020 us=765625 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Feb 18 14:48:57 2020 us=765625 TLS-Auth MTU parms [ L:1621 D:1184 EF:66 EB:0 ET:0 EL:3 ]
Tue Feb 18 14:48:57 2020 us=765625 interactive service msg_channel=0
Tue Feb 18 14:48:57 2020 us=765625 open_tun
Tue Feb 18 14:48:57 2020 us=765625 TAP-WIN32 device [WinTap1] opened: \\.\Global\{FC58BCF1-32E7-44B7-93D4-0C0688AA47E2}.tap
Tue Feb 18 14:48:57 2020 us=765625 TAP-Windows Driver Version 9.24 
Tue Feb 18 14:48:57 2020 us=765625 TAP-Windows MTU=1500
Tue Feb 18 14:48:57 2020 us=765625 Set TAP-Windows TUN subnet mode network/local/netmask = 10.8.0.0/10.8.0.1/255.255.255.0 [SUCCEEDED]
Tue Feb 18 14:48:57 2020 us=765625 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.8.0.1/255.255.255.0 on interface {FC58BCF1-32E7-44B7-93D4-0C0688AA47E2} [DHCP-serv: 10.8.0.254, lease-time: 31536000]
Tue Feb 18 14:48:57 2020 us=765625 Sleeping for 10 seconds...
Tue Feb 18 14:49:07 2020 us=765625 Successful ARP Flush on interface [21] {FC58BCF1-32E7-44B7-93D4-0C0688AA47E2}
Tue Feb 18 14:49:07 2020 us=765625 do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Tue Feb 18 14:49:07 2020 us=765625 Data Channel MTU parms [ L:1621 D:1450 EF:121 EB:406 ET:0 EL:3 ]
Tue Feb 18 14:49:07 2020 us=765625 Socket Buffers: R=[8192->8192] S=[8192->8192]
Tue Feb 18 14:49:07 2020 us=765625 UDPv4 link local (bound): [AF_INET]185.183.98.184:1194
Tue Feb 18 14:49:07 2020 us=765625 UDPv4 link remote: [AF_UNSPEC]
Tue Feb 18 14:49:07 2020 us=765625 MULTI: multi_init called, r=256 v=256
Tue Feb 18 14:49:07 2020 us=765625 IFCONFIG POOL: base=10.8.0.2 size=252, ipv6=0
Tue Feb 18 14:49:07 2020 us=765625 ifconfig_pool_read(), in='xandros-pc-lenovo_v580c,10.8.0.2', TODO: IPv6
Tue Feb 18 14:49:07 2020 us=765625 succeeded -> ifconfig_pool_set()
Tue Feb 18 14:49:07 2020 us=765625 ifconfig_pool_read(), in='nitomash-pc-cinnamon,10.8.0.3', TODO: IPv6
Tue Feb 18 14:49:07 2020 us=765625 succeeded -> ifconfig_pool_set()
Tue Feb 18 14:49:07 2020 us=765625 IFCONFIG POOL LIST
Tue Feb 18 14:49:07 2020 us=765625 xandros-pc-lenovo_v580c,10.8.0.2
Tue Feb 18 14:49:07 2020 us=765625 nitomash-pc-cinnamon,10.8.0.3
Tue Feb 18 14:49:07 2020 us=765625 Initialization Sequence Completed
Tue Feb 18 14:50:05 2020 us=703125 MULTI: multi_create_instance called
Tue Feb 18 14:50:05 2020 us=703125 83.220.238.15:29180 Re-using SSL/TLS context
Tue Feb 18 14:50:05 2020 us=703125 83.220.238.15:29180 Control Channel MTU parms [ L:1621 D:1184 EF:66 EB:0 ET:0 EL:3 ]
Tue Feb 18 14:50:05 2020 us=703125 83.220.238.15:29180 Data Channel MTU parms [ L:1621 D:1450 EF:121 EB:406 ET:0 EL:3 ]
Tue Feb 18 14:50:05 2020 us=703125 83.220.238.15:29180 Local Options String (VER=V4): 'V4,dev-type tun,link-mtu 1549,tun-mtu 1500,proto UDPv4,keydir 0,cipher AES-256-GCM,auth [null-digest],keysize 256,tls-auth,key-method 2,tls-server'
Tue Feb 18 14:50:05 2020 us=703125 83.220.238.15:29180 Expected Remote Options String (VER=V4): 'V4,dev-type tun,link-mtu 1549,tun-mtu 1500,proto UDPv4,keydir 1,cipher AES-256-GCM,auth [null-digest],keysize 256,tls-auth,key-method 2,tls-client'
Tue Feb 18 14:50:05 2020 us=703125 83.220.238.15:29180 TLS: Initial packet from [AF_INET]83.220.238.15:29180, sid=810631a4 7738cad2
Tue Feb 18 14:50:06 2020 83.220.238.15:29180 VERIFY OK: depth=1, C=RU, ST=Moscow, L=Moscow, O=Dragon's Forge, OU=Main development department, CN=MainServer
Tue Feb 18 14:50:06 2020 83.220.238.15:29180 VERIFY OK: depth=0, C=RU, ST=Moscow, L=Moscow, O=Dragon's Forge, OU=Main development department, CN=xandros-pc-lenovo_v580c
Tue Feb 18 14:50:07 2020 us=234375 83.220.238.15:29180 peer info: IV_VER=2.4.4
Tue Feb 18 14:50:07 2020 us=234375 83.220.238.15:29180 peer info: IV_PLAT=linux
Tue Feb 18 14:50:07 2020 us=234375 83.220.238.15:29180 peer info: IV_PROTO=2
Tue Feb 18 14:50:07 2020 us=234375 83.220.238.15:29180 peer info: IV_NCP=2
Tue Feb 18 14:50:07 2020 us=234375 83.220.238.15:29180 peer info: IV_LZ4=1
Tue Feb 18 14:50:07 2020 us=234375 83.220.238.15:29180 peer info: IV_LZ4v2=1
Tue Feb 18 14:50:07 2020 us=234375 83.220.238.15:29180 peer info: IV_LZO=1
Tue Feb 18 14:50:07 2020 us=234375 83.220.238.15:29180 peer info: IV_COMP_STUB=1
Tue Feb 18 14:50:07 2020 us=234375 83.220.238.15:29180 peer info: IV_COMP_STUBv2=1
Tue Feb 18 14:50:07 2020 us=234375 83.220.238.15:29180 peer info: IV_TCPNL=1
Tue Feb 18 14:50:09 2020 us=671875 83.220.238.15:29180 Control Channel: TLSv1.2, cipher TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384, 4096 bit RSA
Tue Feb 18 14:50:09 2020 us=671875 83.220.238.15:29180 [xandros-pc-lenovo_v580c] Peer Connection Initiated with [AF_INET]83.220.238.15:29180
Tue Feb 18 14:50:09 2020 us=671875 83.220.238.15:29180 PUSH: Received control message: 'PUSH_REQUEST'
Tue Feb 18 14:50:09 2020 us=671875 xandros-pc-lenovo_v580c/83.220.238.15:29180 MULTI_sva: pool returned IPv4=10.8.0.2, IPv6=(Not enabled)
Tue Feb 18 14:50:09 2020 us=671875 xandros-pc-lenovo_v580c/83.220.238.15:29180 MULTI: Learn: 10.8.0.2 -> xandros-pc-lenovo_v580c/83.220.238.15:29180
Tue Feb 18 14:50:09 2020 us=671875 xandros-pc-lenovo_v580c/83.220.238.15:29180 MULTI: primary virtual IP for xandros-pc-lenovo_v580c/83.220.238.15:29180: 10.8.0.2
Tue Feb 18 14:50:13 2020 us=843750 xandros-pc-lenovo_v580c/83.220.238.15:29180 PUSH: Received control message: 'PUSH_REQUEST'
Tue Feb 18 14:50:13 2020 us=843750 xandros-pc-lenovo_v580c/83.220.238.15:29180 SENT CONTROL [xandros-pc-lenovo_v580c]: 'PUSH_REPLY,route-gateway 10.8.0.1,topology subnet,ping 10,ping-restart 120,ifconfig 10.8.0.2 255.255.255.0,peer-id 0,cipher AES-256-GCM' (status=1)
Tue Feb 18 14:50:13 2020 us=843750 xandros-pc-lenovo_v580c/83.220.238.15:29180 Data Channel MTU parms [ L:1549 D:1450 EF:49 EB:406 ET:0 EL:3 ]
Tue Feb 18 14:50:13 2020 us=843750 xandros-pc-lenovo_v580c/83.220.238.15:29180 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Tue Feb 18 14:50:13 2020 us=843750 xandros-pc-lenovo_v580c/83.220.238.15:29180 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Tue Feb 18 14:50:26 2020 us=546875 SENT CONTROL [xandros-pc-lenovo_v580c]: 'RESTART' (status=1)
Tue Feb 18 14:50:26 2020 us=546875 TCP/UDP: Closing socket
Tue Feb 18 14:50:26 2020 us=546875 Closing TUN/TAP interface
Tue Feb 18 14:50:26 2020 us=562500 NOTE: Release of DHCP-assigned IP address lease on TAP-Windows adapter failed: An address has not yet been associated with the network endpoint.   (code=1228)
Tue Feb 18 14:50:26 2020 us=562500 SIGTERM[hard,] received, process exiting




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

Re: Windows Server 2008 R2 Datacenter -- OpenVPN 2.4.8 doesn't assign an IP to a TAP device

Post by TinCanTech » Tue Feb 18, 2020 9:20 pm

Xandros wrote:
Tue Feb 18, 2020 2:56 pm
I have tried to set up latest (2.4.8) OpenVPN server on Windows Server 2008 R2 Datacenter SP1 and i can't defeat one big problem - Windows-Tap doesn't receive any IP information from OpenVPN, while log says that DHCP is instructed to set the IP.
Enable Windows DHCP service.

Xandros
OpenVpn Newbie
Posts: 3
Joined: Sun Feb 16, 2020 7:19 pm

Re: Windows Server 2008 R2 Datacenter -- OpenVPN 2.4.8 doesn't assign an IP to a TAP device

Post by Xandros » Wed Feb 19, 2020 5:24 pm

You cannot have "DHCP Client" disabled and use OpenVPN at the same time. Of course it is enabled. I also tried to restart DHCP service - no luck.

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

Re: Windows Server 2008 R2 Datacenter -- OpenVPN 2.4.8 doesn't assign an IP to a TAP device

Post by TinCanTech » Wed Feb 19, 2020 11:29 pm

Check you have DHCP correctly allowed in your firewall.

Consider using *nix for your server (even a VBox VM will suffice)

Xandros
OpenVpn Newbie
Posts: 3
Joined: Sun Feb 16, 2020 7:19 pm

Re: Windows Server 2008 R2 Datacenter -- OpenVPN 2.4.8 doesn't assign an IP to a TAP device

Post by Xandros » Thu Feb 20, 2020 12:01 am

TinCanTech wrote:
Wed Feb 19, 2020 11:29 pm
Check you have DHCP correctly allowed in your firewall.

Consider using *nix for your server (even a VBox VM will suffice)
I have checked the firewall and it looks like i somehow overlooked blocked remote UDP port 67, which is required for DHCP to work. Everything works good now. Thank you for your help.

Post Reply