No data channel send key, IP issues or...

This forum is for admins who are looking to build or expand their OpenVPN setup.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
Andr0med
OpenVpn Newbie
Posts: 4
Joined: Sat Aug 01, 2020 4:29 pm

No data channel send key, IP issues or...

Post by Andr0med » Sat Aug 01, 2020 5:14 pm

Hi guys,

Sorry that I have to ask for your help but I've tried for 3 hours to fix this to no avail. This config worked for a couple of years without any hiccups. Recently changed ISPs to a PPPoE provider (in case this might be the issue); I was able to still connect for 3 weeks after the switch. I have DDNS set up on the server and did force it to refresh the IP when it stopped working; I get an IP of 100.122.4x.xxx which is reflected on the DNS provider website but it's very different than the IP if used the "use external IP check" option in the router's config or if I googled "what is my IP". Either way, I tried it with using external IP check and without; also tried connecting directly to server IP instead of using DNS service but had no success. Also tried connecting via TCP and UDP. Wonder if issues are due to new ISP which issues dynamic IPs vs old one with static IP or is it an entirely different problem. I'm not very network savvy as you can tell by now so please keep that in mind when giving advice or asking questions. Hope I provided enough detail. Thank you in advance!!!

Here is client config:
Client config

client
dev tun
proto udp
remote xxxxx.ddns.net 1194
remote-cert-tls server
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client1.crt
key client1.key
cipher AES-256-CBC
comp-lzo yes
verb 7
sndbuf 393216
rcvbuf 393216
auth SHA256
keepalive 10 60
auth-nocache


and the log:

Code: Select all

Sat Aug 01 12:21:06 2020 us=422515 Current Parameter Settings:
Sat Aug 01 12:21:06 2020 us=422515   config = 'client.ovpn'
Sat Aug 01 12:21:06 2020 us=422515   mode = 0
Sat Aug 01 12:21:06 2020 us=422515   show_ciphers = DISABLED
Sat Aug 01 12:21:06 2020 us=422515   show_digests = DISABLED
Sat Aug 01 12:21:06 2020 us=422515   show_engines = DISABLED
Sat Aug 01 12:21:06 2020 us=422515   genkey = DISABLED
Sat Aug 01 12:21:06 2020 us=422515   key_pass_file = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=422515   show_tls_ciphers = DISABLED
Sat Aug 01 12:21:06 2020 us=422515   connect_retry_max = 0
Sat Aug 01 12:21:06 2020 us=422515 Connection profiles [0]:
Sat Aug 01 12:21:06 2020 us=422515   proto = udp
Sat Aug 01 12:21:06 2020 us=422515   local = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=422515   local_port = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=422515   remote = 'xxxxxxx.ddns.net'
Sat Aug 01 12:21:06 2020 us=422515   remote_port = '1194'
Sat Aug 01 12:21:06 2020 us=422515   remote_float = DISABLED
Sat Aug 01 12:21:06 2020 us=422515   bind_defined = DISABLED
Sat Aug 01 12:21:06 2020 us=422515   bind_local = DISABLED
Sat Aug 01 12:21:06 2020 us=422515   bind_ipv6_only = DISABLED
Sat Aug 01 12:21:06 2020 us=422515   connect_retry_seconds = 5
Sat Aug 01 12:21:06 2020 us=422515   connect_timeout = 120
Sat Aug 01 12:21:06 2020 us=422515   socks_proxy_server = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=422515   socks_proxy_port = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=422515   tun_mtu = 1500
Sat Aug 01 12:21:06 2020 us=422515   tun_mtu_defined = ENABLED
Sat Aug 01 12:21:06 2020 us=422515   link_mtu = 1500
Sat Aug 01 12:21:06 2020 us=422515   link_mtu_defined = DISABLED
Sat Aug 01 12:21:06 2020 us=422515   tun_mtu_extra = 0
Sat Aug 01 12:21:06 2020 us=422515   tun_mtu_extra_defined = DISABLED
Sat Aug 01 12:21:06 2020 us=422515   mtu_discover_type = -1
Sat Aug 01 12:21:06 2020 us=422515   fragment = 0
Sat Aug 01 12:21:06 2020 us=422515   mssfix = 1450
Sat Aug 01 12:21:06 2020 us=422515   explicit_exit_notification = 0
Sat Aug 01 12:21:06 2020 us=422515 Connection profiles END
Sat Aug 01 12:21:06 2020 us=422515   remote_random = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   ipchange = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   dev = 'tun'
Sat Aug 01 12:21:06 2020 us=423515   dev_type = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   dev_node = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   lladdr = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   topology = 1
Sat Aug 01 12:21:06 2020 us=423515   ifconfig_local = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   ifconfig_remote_netmask = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   ifconfig_noexec = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   ifconfig_nowarn = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   ifconfig_ipv6_local = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   ifconfig_ipv6_netbits = 0
Sat Aug 01 12:21:06 2020 us=423515   ifconfig_ipv6_remote = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   shaper = 0
Sat Aug 01 12:21:06 2020 us=423515   mtu_test = 0
Sat Aug 01 12:21:06 2020 us=423515   mlock = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   keepalive_ping = 10
Sat Aug 01 12:21:06 2020 us=423515   keepalive_timeout = 30
Sat Aug 01 12:21:06 2020 us=423515   inactivity_timeout = 0
Sat Aug 01 12:21:06 2020 us=423515   ping_send_timeout = 10
Sat Aug 01 12:21:06 2020 us=423515   ping_rec_timeout = 30
Sat Aug 01 12:21:06 2020 us=423515   ping_rec_timeout_action = 2
Sat Aug 01 12:21:06 2020 us=423515   ping_timer_remote = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   remap_sigusr1 = 0
Sat Aug 01 12:21:06 2020 us=423515   persist_tun = ENABLED
Sat Aug 01 12:21:06 2020 us=423515   persist_local_ip = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   persist_remote_ip = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   persist_key = ENABLED
Sat Aug 01 12:21:06 2020 us=423515   passtos = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   resolve_retry_seconds = 1000000000
Sat Aug 01 12:21:06 2020 us=423515   resolve_in_advance = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   username = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   groupname = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   chroot_dir = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   cd_dir = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   writepid = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   up_script = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   down_script = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   down_pre = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   up_restart = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   up_delay = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   daemon = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   inetd = 0
Sat Aug 01 12:21:06 2020 us=423515   log = ENABLED
Sat Aug 01 12:21:06 2020 us=423515   suppress_timestamps = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   machine_readable_output = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   nice = 0
Sat Aug 01 12:21:06 2020 us=423515   verbosity = 7
Sat Aug 01 12:21:06 2020 us=423515   mute = 0
Sat Aug 01 12:21:06 2020 us=423515   gremlin = 0
Sat Aug 01 12:21:06 2020 us=423515   status_file = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   status_file_version = 1
Sat Aug 01 12:21:06 2020 us=423515   status_file_update_freq = 60
Sat Aug 01 12:21:06 2020 us=423515   occ = ENABLED
Sat Aug 01 12:21:06 2020 us=423515   rcvbuf = 393216
Sat Aug 01 12:21:06 2020 us=423515   sndbuf = 393216
Sat Aug 01 12:21:06 2020 us=423515   sockflags = 0
Sat Aug 01 12:21:06 2020 us=423515   fast_io = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   comp.alg = 2
Sat Aug 01 12:21:06 2020 us=423515   comp.flags = 0
Sat Aug 01 12:21:06 2020 us=423515   route_script = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   route_default_gateway = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   route_default_metric = 0
Sat Aug 01 12:21:06 2020 us=423515   route_noexec = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   route_delay = 5
Sat Aug 01 12:21:06 2020 us=423515   route_delay_window = 30
Sat Aug 01 12:21:06 2020 us=423515   route_delay_defined = ENABLED
Sat Aug 01 12:21:06 2020 us=423515   route_nopull = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   route_gateway_via_dhcp = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   allow_pull_fqdn = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   management_addr = '127.0.0.1'
Sat Aug 01 12:21:06 2020 us=423515   management_port = '25340'
Sat Aug 01 12:21:06 2020 us=423515   management_user_pass = 'stdin'
Sat Aug 01 12:21:06 2020 us=423515   management_log_history_cache = 250
Sat Aug 01 12:21:06 2020 us=423515   management_echo_buffer_size = 100
Sat Aug 01 12:21:06 2020 us=423515   management_write_peer_info_file = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   management_client_user = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   management_client_group = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   management_flags = 6
Sat Aug 01 12:21:06 2020 us=423515   shared_secret_file = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   key_direction = not set
Sat Aug 01 12:21:06 2020 us=423515   ciphername = 'AES-256-CBC'
Sat Aug 01 12:21:06 2020 us=423515   ncp_enabled = ENABLED
Sat Aug 01 12:21:06 2020 us=423515   ncp_ciphers = 'AES-256-GCM:AES-128-GCM'
Sat Aug 01 12:21:06 2020 us=423515   authname = 'SHA256'
Sat Aug 01 12:21:06 2020 us=423515   prng_hash = 'SHA1'
Sat Aug 01 12:21:06 2020 us=423515   prng_nonce_secret_len = 16
Sat Aug 01 12:21:06 2020 us=423515   keysize = 0
Sat Aug 01 12:21:06 2020 us=423515   engine = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   replay = ENABLED
Sat Aug 01 12:21:06 2020 us=423515   mute_replay_warnings = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   replay_window = 64
Sat Aug 01 12:21:06 2020 us=423515   replay_time = 15
Sat Aug 01 12:21:06 2020 us=423515   packet_id_file = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   use_iv = ENABLED
Sat Aug 01 12:21:06 2020 us=423515   test_crypto = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   tls_server = DISABLED
Sat Aug 01 12:21:06 2020 us=423515   tls_client = ENABLED
Sat Aug 01 12:21:06 2020 us=423515   key_method = 2
Sat Aug 01 12:21:06 2020 us=423515   ca_file = 'ca.crt'
Sat Aug 01 12:21:06 2020 us=423515   ca_path = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   dh_file = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   cert_file = 'client1.crt'
Sat Aug 01 12:21:06 2020 us=423515   extra_certs_file = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   priv_key_file = 'client1.key'
Sat Aug 01 12:21:06 2020 us=423515   pkcs12_file = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   cryptoapi_cert = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   cipher_list = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   cipher_list_tls13 = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   tls_cert_profile = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   tls_verify = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   tls_export_cert = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   verify_x509_type = 0
Sat Aug 01 12:21:06 2020 us=423515   verify_x509_name = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   crl_file = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=423515   ns_cert_type = 0
Sat Aug 01 12:21:06 2020 us=423515   remote_cert_ku[i] = 65535
Sat Aug 01 12:21:06 2020 us=423515   remote_cert_ku[i] = 0
Sat Aug 01 12:21:06 2020 us=423515   remote_cert_ku[i] = 0
Sat Aug 01 12:21:06 2020 us=423515   remote_cert_ku[i] = 0
Sat Aug 01 12:21:06 2020 us=423515   remote_cert_ku[i] = 0
Sat Aug 01 12:21:06 2020 us=423515   remote_cert_ku[i] = 0
Sat Aug 01 12:21:06 2020 us=423515   remote_cert_ku[i] = 0
Sat Aug 01 12:21:06 2020 us=423515   remote_cert_ku[i] = 0
Sat Aug 01 12:21:06 2020 us=423515   remote_cert_ku[i] = 0
Sat Aug 01 12:21:06 2020 us=423515   remote_cert_ku[i] = 0
Sat Aug 01 12:21:06 2020 us=423515   remote_cert_ku[i] = 0
Sat Aug 01 12:21:06 2020 us=423515   remote_cert_ku[i] = 0
Sat Aug 01 12:21:06 2020 us=423515   remote_cert_ku[i] = 0
Sat Aug 01 12:21:06 2020 us=423515   remote_cert_ku[i] = 0
Sat Aug 01 12:21:06 2020 us=423515   remote_cert_ku[i] = 0
Sat Aug 01 12:21:06 2020 us=423515   remote_cert_ku[i] = 0
Sat Aug 01 12:21:06 2020 us=423515   remote_cert_eku = 'TLS Web Server Authentication'
Sat Aug 01 12:21:06 2020 us=423515   ssl_flags = 0
Sat Aug 01 12:21:06 2020 us=423515   tls_timeout = 2
Sat Aug 01 12:21:06 2020 us=423515   renegotiate_bytes = -1
Sat Aug 01 12:21:06 2020 us=423515   renegotiate_packets = 0
Sat Aug 01 12:21:06 2020 us=423515   renegotiate_seconds = 3600
Sat Aug 01 12:21:06 2020 us=423515   handshake_window = 60
Sat Aug 01 12:21:06 2020 us=423515   transition_window = 3600
Sat Aug 01 12:21:06 2020 us=424514   single_session = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   push_peer_info = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   tls_exit = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   tls_auth_file = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=424514   tls_crypt_file = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_protected_authentication = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_protected_authentication = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_protected_authentication = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_protected_authentication = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_protected_authentication = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_protected_authentication = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_protected_authentication = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_protected_authentication = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_protected_authentication = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_protected_authentication = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_protected_authentication = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_protected_authentication = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_protected_authentication = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_protected_authentication = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_protected_authentication = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_protected_authentication = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_private_mode = 00000000
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_private_mode = 00000000
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_private_mode = 00000000
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_private_mode = 00000000
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_private_mode = 00000000
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_private_mode = 00000000
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_private_mode = 00000000
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_private_mode = 00000000
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_private_mode = 00000000
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_private_mode = 00000000
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_private_mode = 00000000
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_private_mode = 00000000
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_private_mode = 00000000
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_private_mode = 00000000
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_private_mode = 00000000
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_private_mode = 00000000
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_cert_private = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_cert_private = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_cert_private = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_cert_private = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_cert_private = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_cert_private = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_cert_private = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_cert_private = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_cert_private = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_cert_private = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_cert_private = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_cert_private = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_cert_private = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_cert_private = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_cert_private = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_cert_private = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_pin_cache_period = -1
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_id = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=424514   pkcs11_id_management = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   server_network = 0.0.0.0
Sat Aug 01 12:21:06 2020 us=424514   server_netmask = 0.0.0.0
Sat Aug 01 12:21:06 2020 us=424514   server_network_ipv6 = ::
Sat Aug 01 12:21:06 2020 us=424514   server_netbits_ipv6 = 0
Sat Aug 01 12:21:06 2020 us=424514   server_bridge_ip = 0.0.0.0
Sat Aug 01 12:21:06 2020 us=424514   server_bridge_netmask = 0.0.0.0
Sat Aug 01 12:21:06 2020 us=424514   server_bridge_pool_start = 0.0.0.0
Sat Aug 01 12:21:06 2020 us=424514   server_bridge_pool_end = 0.0.0.0
Sat Aug 01 12:21:06 2020 us=424514   ifconfig_pool_defined = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   ifconfig_pool_start = 0.0.0.0
Sat Aug 01 12:21:06 2020 us=424514   ifconfig_pool_end = 0.0.0.0
Sat Aug 01 12:21:06 2020 us=424514   ifconfig_pool_netmask = 0.0.0.0
Sat Aug 01 12:21:06 2020 us=424514   ifconfig_pool_persist_filename = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=424514   ifconfig_pool_persist_refresh_freq = 600
Sat Aug 01 12:21:06 2020 us=424514   ifconfig_ipv6_pool_defined = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   ifconfig_ipv6_pool_base = ::
Sat Aug 01 12:21:06 2020 us=424514   ifconfig_ipv6_pool_netbits = 0
Sat Aug 01 12:21:06 2020 us=424514   n_bcast_buf = 256
Sat Aug 01 12:21:06 2020 us=424514   tcp_queue_limit = 64
Sat Aug 01 12:21:06 2020 us=424514   real_hash_size = 256
Sat Aug 01 12:21:06 2020 us=424514   virtual_hash_size = 256
Sat Aug 01 12:21:06 2020 us=424514   client_connect_script = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=424514   learn_address_script = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=424514   client_disconnect_script = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=424514   client_config_dir = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=424514   ccd_exclusive = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   tmp_dir = 'C:\USERS\xxxx\APPDATA\LOCAL\TEMP\'
Sat Aug 01 12:21:06 2020 us=424514   push_ifconfig_defined = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   push_ifconfig_local = 0.0.0.0
Sat Aug 01 12:21:06 2020 us=424514   push_ifconfig_remote_netmask = 0.0.0.0
Sat Aug 01 12:21:06 2020 us=424514   push_ifconfig_ipv6_defined = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   push_ifconfig_ipv6_local = ::/0
Sat Aug 01 12:21:06 2020 us=424514   push_ifconfig_ipv6_remote = ::
Sat Aug 01 12:21:06 2020 us=424514   enable_c2c = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   duplicate_cn = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   cf_max = 0
Sat Aug 01 12:21:06 2020 us=424514   cf_per = 0
Sat Aug 01 12:21:06 2020 us=424514   max_clients = 1024
Sat Aug 01 12:21:06 2020 us=424514   max_routes_per_client = 256
Sat Aug 01 12:21:06 2020 us=424514   auth_user_pass_verify_script = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=424514   auth_user_pass_verify_script_via_file = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   auth_token_generate = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   auth_token_lifetime = 0
Sat Aug 01 12:21:06 2020 us=424514   client = ENABLED
Sat Aug 01 12:21:06 2020 us=424514   pull = ENABLED
Sat Aug 01 12:21:06 2020 us=424514   auth_user_pass_file = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=424514   show_net_up = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   route_method = 0
Sat Aug 01 12:21:06 2020 us=424514   block_outside_dns = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   ip_win32_defined = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   ip_win32_type = 3
Sat Aug 01 12:21:06 2020 us=424514   dhcp_masq_offset = 0
Sat Aug 01 12:21:06 2020 us=424514   dhcp_lease_time = 31536000
Sat Aug 01 12:21:06 2020 us=424514   tap_sleep = 0
Sat Aug 01 12:21:06 2020 us=424514   dhcp_options = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   dhcp_renew = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   dhcp_pre_release = DISABLED
Sat Aug 01 12:21:06 2020 us=424514   domain = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=424514   netbios_scope = '[UNDEF]'
Sat Aug 01 12:21:06 2020 us=424514   netbios_node_type = 0
Sat Aug 01 12:21:06 2020 us=424514   disable_nbt = DISABLED
Sat Aug 01 12:21:06 2020 us=424514 OpenVPN 2.4.9 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 16 2020
Sat Aug 01 12:21:06 2020 us=424514 Windows version 6.2 (Windows 8 or greater) 64bit
Sat Aug 01 12:21:06 2020 us=424514 library versions: OpenSSL 1.1.1f  31 Mar 2020, LZO 2.10
Enter Management Password:
Sat Aug 01 12:21:06 2020 us=426514 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Sat Aug 01 12:21:06 2020 us=426514 Need hold release from management interface, waiting...
Sat Aug 01 12:21:06 2020 us=905069 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Sat Aug 01 12:21:07 2020 us=7100 MANAGEMENT: CMD 'state on'
Sat Aug 01 12:21:07 2020 us=7100 MANAGEMENT: CMD 'log all on'
Sat Aug 01 12:21:07 2020 us=205491 MANAGEMENT: CMD 'echo all on'
Sat Aug 01 12:21:07 2020 us=207490 MANAGEMENT: CMD 'bytecount 5'
Sat Aug 01 12:21:07 2020 us=209490 MANAGEMENT: CMD 'hold off'
Sat Aug 01 12:21:07 2020 us=211489 MANAGEMENT: CMD 'hold release'
Sat Aug 01 12:21:07 2020 us=214488 PRNG init md=SHA1 size=36
Sat Aug 01 12:21:07 2020 us=214488 LZO compression initializing
Sat Aug 01 12:21:07 2020 us=214488 PID packet_id_init seq_backtrack=64 time_backtrack=15
Sat Aug 01 12:21:07 2020 us=215488 PID packet_id_init seq_backtrack=64 time_backtrack=15
Sat Aug 01 12:21:07 2020 us=215488 PID packet_id_init seq_backtrack=64 time_backtrack=15
Sat Aug 01 12:21:07 2020 us=215488 PID packet_id_init seq_backtrack=64 time_backtrack=15
Sat Aug 01 12:21:07 2020 us=215488 Control Channel MTU parms [ L:1622 D:1212 EF:38 EB:0 ET:0 EL:3 ]
Sat Aug 01 12:21:07 2020 us=215488 MTU DYNAMIC mtu=1450, flags=2, 1622 -> 1450
Sat Aug 01 12:21:07 2020 us=215488 MANAGEMENT: >STATE:1596298867,RESOLVE,,,,,,
Sat Aug 01 12:21:07 2020 us=215488 GETADDRINFO flags=0x0901 ai_family=0 ai_socktype=2
Sat Aug 01 12:21:07 2020 us=228506 RESOLVE_REMOTE flags=0x0901 phase=1 rrs=0 sig=-1 status=0
Sat Aug 01 12:21:07 2020 us=228506 Data Channel MTU parms [ L:1622 D:1450 EF:122 EB:406 ET:0 EL:3 ]
Sat Aug 01 12:21:07 2020 us=228506 crypto_adjust_frame_parameters: Adjusting frame parameters for crypto by 68 bytes
Sat Aug 01 12:21:07 2020 us=228506 calc_options_string_link_mtu: link-mtu 1622 -> 1570
Sat Aug 01 12:21:07 2020 us=228506 crypto_adjust_frame_parameters: Adjusting frame parameters for crypto by 68 bytes
Sat Aug 01 12:21:07 2020 us=228506 calc_options_string_link_mtu: link-mtu 1622 -> 1570
Sat Aug 01 12:21:07 2020 us=228506 Local Options String (VER=V4): 'V4,dev-type tun,link-mtu 1570,tun-mtu 1500,proto UDPv4,comp-lzo,cipher AES-256-CBC,auth SHA256,keysize 256,key-method 2,tls-client'
Sat Aug 01 12:21:07 2020 us=228506 Expected Remote Options String (VER=V4): 'V4,dev-type tun,link-mtu 1570,tun-mtu 1500,proto UDPv4,comp-lzo,cipher AES-256-CBC,auth SHA256,keysize 256,key-method 2,tls-server'
Sat Aug 01 12:21:07 2020 us=228506 TCP/UDP: Preserving recently used remote address: [AF_INET]100.122.4x.xxx:1194
Sat Aug 01 12:21:07 2020 us=228506 Socket Buffers: R=[65536->393216] S=[65536->393216]
Sat Aug 01 12:21:07 2020 us=228506 UDP link local: (not bound)
Sat Aug 01 12:21:07 2020 us=228506 UDP link remote: [AF_INET]100.122.4x.xxx:1194
Sat Aug 01 12:21:07 2020 us=228506 TLS Warning: no data channel send key available:  [key#0 state=S_INITIAL id=0 sid=00000000 00000000] [key#1 state=S_UNDEF id=0 sid=00000000 00000000] [key#2 state=S_UNDEF id=0 sid=00000000 00000000]
Sat Aug 01 12:21:07 2020 us=228506 SENT PING
Sat Aug 01 12:21:07 2020 us=228506 MANAGEMENT: >STATE:1596298867,WAIT,,,,,,
Sat Aug 01 12:21:07 2020 us=228506 UDP WRITE [14] to [AF_INET]100.122.4x.xxx:1194: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 [ ] pid=0 DATA len=0
Sat Aug 01 12:21:07 2020 us=228506 UDP READ [0] from [AF_UNSPEC]: DATA UNDEF len=-1
Sat Aug 01 12:21:09 2020 us=623620 UDP WRITE [14] to [AF_INET]100.122.4x.xxx:1194: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 [ ] pid=0 DATA len=0
Sat Aug 01 12:21:13 2020 us=216588 UDP WRITE [14] to [AF_INET]100.122.4x.xxx:1194: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 [ ] pid=0 DATA len=0
Sat Aug 01 12:21:21 2020 us=52614 UDP WRITE [14] to [AF_INET]100.122.4x.xxx:1194: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 [ ] pid=0 DATA len=0
Sat Aug 01 12:21:27 2020 us=285170 PID packet_id_free
Sat Aug 01 12:21:27 2020 us=285170 PID packet_id_free
Sat Aug 01 12:21:27 2020 us=285170 PID packet_id_free
Sat Aug 01 12:21:27 2020 us=285170 PID packet_id_free
Sat Aug 01 12:21:27 2020 us=285170 PID packet_id_free
Sat Aug 01 12:21:27 2020 us=285170 PID packet_id_free
Sat Aug 01 12:21:27 2020 us=285170 PID packet_id_free
Sat Aug 01 12:21:27 2020 us=285170 PID packet_id_free
Sat Aug 01 12:21:27 2020 us=285170 TCP/UDP: Closing socket
Sat Aug 01 12:21:27 2020 us=285170 PID packet_id_free
Sat Aug 01 12:21:27 2020 us=285170 SIGTERM[hard,] received, process exiting
Sat Aug 01 12:21:27 2020 us=285170 MANAGEMENT: >STATE:1596298887,EXITING,SIGTERM,,,,,
Sat Aug 01 12:21:27 2020 us=285170 PKCS#11: Terminating openssl
Sat Aug 01 12:21:27 2020 us=285170 PKCS#11: Removing providers
Sat Aug 01 12:21:27 2020 us=285170 PKCS#11: Releasing sessions
Sat Aug 01 12:21:27 2020 us=285170 PKCS#11: Terminating slotevent
Sat Aug 01 12:21:27 2020 us=285170 PKCS#11: Marking as uninitialized
Last edited by Pippin on Sat Aug 01, 2020 5:41 pm, edited 1 time in total.
Reason: Formatting

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

Re: No data channel send key, IP issues or...

Post by TinCanTech » Sat Aug 01, 2020 5:45 pm

Server config and log

viewtopic.php?f=30&t=22603#p68963

Andr0med
OpenVpn Newbie
Posts: 4
Joined: Sat Aug 01, 2020 4:29 pm

Re: No data channel send key, IP issues or...

Post by Andr0med » Sat Aug 01, 2020 6:43 pm

Would these work?

server set up on DD-WRT router:
Image
https://imgur.com/0JTApfO

server log:

Code: Select all

20200801 19:09:26 IFCONFIG POOL: base=192.xxx.xx.x size=252 ipv6=0
20200801 19:09:26 I Initialization Sequence Completed
20200801 21:30:30 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20200801 21:30:30 D MANAGEMENT: CMD 'state'
20200801 21:30:30 MANAGEMENT: Client disconnected
20200801 21:30:30 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20200801 21:30:30 D MANAGEMENT: CMD 'state'
20200801 21:30:30 MANAGEMENT: Client disconnected
20200801 21:30:30 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20200801 21:30:30 D MANAGEMENT: CMD 'state'
20200801 21:30:30 MANAGEMENT: Client disconnected
20200801 21:30:30 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20200801 21:30:30 MANAGEMENT: Client disconnected
20200801 21:30:30 NOTE: --mute triggered...
20200801 21:30:30 1 variation(s) on previous 3 message(s) suppressed by --mute
20200801 21:30:30 D MANAGEMENT: CMD 'status 2'
20200801 21:30:30 MANAGEMENT: Client disconnected
20200801 21:30:30 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20200801 21:30:30 D MANAGEMENT: CMD 'status 2'
20200801 21:30:30 MANAGEMENT: Client disconnected
20200801 21:30:30 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20200801 21:30:30 D MANAGEMENT: CMD 'log 500'
20200801 21:30:30 MANAGEMENT: Client disconnected
20200801 21:31:56 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20200801 21:31:56 D MANAGEMENT: CMD 'state'
20200801 21:31:56 MANAGEMENT: Client disconnected
20200801 21:31:56 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20200801 21:31:56 D MANAGEMENT: CMD 'state'
20200801 21:31:56 MANAGEMENT: Client disconnected
20200801 21:31:56 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20200801 21:31:56 D MANAGEMENT: CMD 'state'
20200801 21:31:56 MANAGEMENT: Client disconnected
20200801 21:31:56 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20200801 21:31:56 MANAGEMENT: Client disconnected
20200801 21:31:56 NOTE: --mute triggered...
20200801 21:31:56 1 variation(s) on previous 3 message(s) suppressed by --mute
20200801 21:31:56 D MANAGEMENT: CMD 'status 2'
20200801 21:31:56 MANAGEMENT: Client disconnected
20200801 21:31:56 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20200801 21:31:56 D MANAGEMENT: CMD 'status 2'
20200801 21:31:56 MANAGEMENT: Client disconnected
20200801 21:31:56 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20200801 21:31:56 D MANAGEMENT: CMD 'log 500'
19700101 02:00:00 
Last edited by Pippin on Sat Aug 01, 2020 6:47 pm, edited 1 time in total.
Reason: Formatting

User avatar
Pippin
Forum Team
Posts: 830
Joined: Wed Jul 01, 2015 8:03 am

Re: No data channel send key, IP issues or...

Post by Pippin » Sat Aug 01, 2020 6:49 pm

Please be so kind and use proper formatting:
viewtopic.php?t=22603#p93575

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

Re: No data channel send key, IP issues or...

Post by TinCanTech » Sat Aug 01, 2020 7:25 pm

Andr0med wrote:
Sat Aug 01, 2020 6:43 pm
Would these work?
Nope.
Andr0med wrote:
Sat Aug 01, 2020 6:43 pm
server set up on DD-WRT router
You will need to read the DD-WRT documentation.

Andr0med
OpenVpn Newbie
Posts: 4
Joined: Sat Aug 01, 2020 4:29 pm

Re: No data channel send key, IP issues or...

Post by Andr0med » Sat Aug 01, 2020 7:53 pm

Pippin, maybe I'm missing something but like I said, I've set up the server directly on the DD-WRT page of the router. I don't have an actual server.cfg file so that's why I posted a screen capture of the settings on there as well as the log from within the Router status page. DD-WRT has OpenVPN integrated into the firmware so used that part to set up server with keys, certs, etc. and set up the client with the usual config files. If I generate a server cfg and log, please let me know how but I hope the above would suffice. Also, the settings have worked for 2 years and I have not changed anything on my end, unless you're aware of a potential windows update which might interfere with openvpn or maybe it's an IP issue.

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

Re: No data channel send key, IP issues or...

Post by TinCanTech » Sat Aug 01, 2020 8:16 pm

Andr0med wrote:
Sat Aug 01, 2020 7:53 pm
the settings have worked for 2 years and I have not changed anything on my end
Yes you have, you have upgraded your client openvpn version to:
  • OpenVPN 2.4.9 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 16 2020
Your router-firmware and router-openvpn version are probably too old.
Andr0med wrote:
Sat Aug 01, 2020 5:14 pm
TLS Warning: no data channel send key available
You have TLS Cipher: None in your server config .. you may want to enable a TLS-Cipher ..

Andr0med
OpenVpn Newbie
Posts: 4
Joined: Sat Aug 01, 2020 4:29 pm

Re: No data channel send key, IP issues or...

Post by Andr0med » Sat Aug 01, 2020 8:31 pm

Will do, thank you for all the advice so far! Tomorrow DD-WRT will release a new openVPN firmware. Will try it. Otherwise, can I somehow load openvpn onto router without using the built-in firmware? I need to run openvpn on router, not on a PC/server.

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

Re: No data channel send key, IP issues or...

Post by TinCanTech » Sat Aug 01, 2020 8:35 pm

Maybe you can try Open-WRT ..

Post Reply