Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.7.55 DNS resolution fails #1794

Closed
caribou-snake opened this issue Feb 18, 2025 · 25 comments
Closed

v0.7.55 DNS resolution fails #1794

caribou-snake opened this issue Feb 18, 2025 · 25 comments

Comments

@caribou-snake
Copy link

caribou-snake commented Feb 18, 2025

after update to v7.5.5 address resolution fails:

RESOLVE: Cannot resolve host address: example.domain.com:1194 (No address associated with hostname)
Could not determine IPv4/IPv6 protocol

downgrade back to v7.5.4 - all working

same VPN profile, same network
DNS requests are sent , successfully resolved, can see them in my pihole, goes for both versions just the same

this is Android 15, GrapheneOS current build: 2025021100

@schwabe
Copy link
Owner

schwabe commented Feb 18, 2025

Please include the full log of the current version. Note that the 0.7.55 version is currently a beta version.

@caribou-snake caribou-snake changed the title v7.5.5 DNS resolution fails v7.55 DNS resolution fails Feb 18, 2025
@caribou-snake
Copy link
Author

caribou-snake commented Feb 18, 2025

v0.7.55 was offered as regular update through f-droid repo (using droid-ify), no indication as pre-release
hope this helps ..

fails on the servers in the list with domain name
connects on the one in the server list with IP address
pure IPv4 only setup

2025-02-18 15:27:37 F-Droid built and signed version 0.7.55 running on google Pixel 8 (shiba), Android 15 (AP4A.250205.002) API 35, ABI arm64-v8a, (google/shiba/shiba:15/AP4A.250205.002/2025021100:user/release-keys)
2025-02-18 15:27:37 Building configuration…
2025-02-18 15:27:37 Fetched VPN profile (<profile name here>) triggered by main profile list
2025-02-18 15:27:37 Scheduling VPN keep alive for VPN <profile name here>
2025-02-18 15:27:37 started Socket Thread
2025-02-18 15:27:37 P:WARNING: linker: Warning: "/data/app/~~Pl1m_EVsgszKDbw5hQ035g==/de.blinkt.openvpn-v_iV_f0jWdpZDOV7AnLVYQ==/lib/arm64/libovpnexec.so" is not a directory (ignoring)
2025-02-18 15:27:37 Network Status: CONNECTED  to WIFI 
2025-02-18 15:27:37 Debug state info: CONNECTED  to WIFI , pause: userPause, shouldbeconnected: true, network: SHOULDBECONNECTED 
2025-02-18 15:27:37 Debug state info: CONNECTED  to WIFI , pause: userPause, shouldbeconnected: true, network: SHOULDBECONNECTED 
2025-02-18 15:27:37 WARNING: Compression for receiving enabled. Compression has been used in the past to break encryption. Compression support is deprecated and we recommend to disable it completely.
2025-02-18 15:27:37 Current Parameter Settings:
2025-02-18 15:27:37   config = 'stdin'
2025-02-18 15:27:37   mode = 0
2025-02-18 15:27:37   show_ciphers = DISABLED
2025-02-18 15:27:37 Waiting 0s seconds between connection attempt
2025-02-18 15:27:37   show_digests = DISABLED
2025-02-18 15:27:37   show_engines = DISABLED
2025-02-18 15:27:37   genkey = DISABLED
2025-02-18 15:27:37   genkey_filename = '[UNDEF]'
2025-02-18 15:27:37   key_pass_file = '[UNDEF]'
2025-02-18 15:27:37   show_tls_ciphers = DISABLED
2025-02-18 15:27:37   connect_retry_max = 0
2025-02-18 15:27:37 Connection profiles [0]:
2025-02-18 15:27:37   proto = udp
2025-02-18 15:27:37   Local Sockets:
2025-02-18 15:27:37     [(null)]:0
2025-02-18 15:27:37   remote = '<dns name here>'
2025-02-18 15:27:37   remote_port = '1194'
2025-02-18 15:27:37   remote_float = DISABLED
2025-02-18 15:27:37   bind_defined = DISABLED
2025-02-18 15:27:37   bind_local = ENABLED
2025-02-18 15:27:37   bind_ipv6_only = DISABLED
2025-02-18 15:27:37   connect_retry_seconds = 2
2025-02-18 15:27:37   connect_timeout = 10
2025-02-18 15:27:37   socks_proxy_server = '[UNDEF]'
2025-02-18 15:27:37   socks_proxy_port = '[UNDEF]'
2025-02-18 15:27:37   tun_mtu = 1500
2025-02-18 15:27:37   tun_mtu_defined = ENABLED
2025-02-18 15:27:37   link_mtu = 1500
2025-02-18 15:27:37   link_mtu_defined = DISABLED
2025-02-18 15:27:37   tun_mtu_extra = 0
2025-02-18 15:27:37   tun_mtu_extra_defined = DISABLED
2025-02-18 15:27:37   tls_mtu = 1250
2025-02-18 15:27:37   mtu_discover_type = -1
2025-02-18 15:27:37   fragment = 0
2025-02-18 15:27:37   mssfix = 1492
2025-02-18 15:27:37   mssfix_encap = ENABLED
2025-02-18 15:27:37   mssfix_fixed = DISABLED
2025-02-18 15:27:37   explicit_exit_notification = 0
2025-02-18 15:27:37   tls_auth_file = '[INLINE]'
2025-02-18 15:27:37   key_direction = 1
2025-02-18 15:27:37   tls_crypt_file = '[UNDEF]'
2025-02-18 15:27:37   tls_crypt_v2_file = '[UNDEF]'
2025-02-18 15:27:37 Connection profiles [1]:
2025-02-18 15:27:37   proto = udp
2025-02-18 15:27:37   Local Sockets:
2025-02-18 15:27:37     [(null)]:0
2025-02-18 15:27:37   remote = '<dns name here>'
2025-02-18 15:27:37   remote_port = '1194'
2025-02-18 15:27:37   remote_float = DISABLED
2025-02-18 15:27:37   bind_defined = DISABLED
2025-02-18 15:27:37   bind_local = ENABLED
2025-02-18 15:27:37   bind_ipv6_only = DISABLED
2025-02-18 15:27:37   connect_retry_seconds = 2
2025-02-18 15:27:37   connect_timeout = 10
2025-02-18 15:27:37   socks_proxy_server = '[UNDEF]'
2025-02-18 15:27:37   socks_proxy_port = '[UNDEF]'
2025-02-18 15:27:37   tun_mtu = 1500
2025-02-18 15:27:37   tun_mtu_defined = ENABLED
2025-02-18 15:27:37   link_mtu = 1500
2025-02-18 15:27:37   link_mtu_defined = DISABLED
2025-02-18 15:27:37   tun_mtu_extra = 0
2025-02-18 15:27:37   tun_mtu_extra_defined = DISABLED
2025-02-18 15:27:37   tls_mtu = 1250
2025-02-18 15:27:37   mtu_discover_type = -1
2025-02-18 15:27:37   fragment = 0
2025-02-18 15:27:37   mssfix = 1492
2025-02-18 15:27:37   mssfix_encap = ENABLED
2025-02-18 15:27:37   mssfix_fixed = DISABLED
2025-02-18 15:27:37   explicit_exit_notification = 0
2025-02-18 15:27:37   tls_auth_file = '[INLINE]'
2025-02-18 15:27:37   key_direction = 1
2025-02-18 15:27:37   tls_crypt_file = '[UNDEF]'
2025-02-18 15:27:37   tls_crypt_v2_file = '[UNDEF]'
2025-02-18 15:27:37 Connection profiles [2]:
2025-02-18 15:27:37   proto = udp
2025-02-18 15:27:37   Local Sockets:
2025-02-18 15:27:37     [(null)]:0
2025-02-18 15:27:37   remote = '<IP adress here>'
2025-02-18 15:27:37   remote_port = '1194'
2025-02-18 15:27:37   remote_float = DISABLED
2025-02-18 15:27:37   bind_defined = DISABLED
2025-02-18 15:27:37   bind_local = ENABLED
2025-02-18 15:27:37   bind_ipv6_only = DISABLED
2025-02-18 15:27:37   connect_retry_seconds = 2
2025-02-18 15:27:37   connect_timeout = 10
2025-02-18 15:27:37   socks_proxy_server = '[UNDEF]'
2025-02-18 15:27:37   socks_proxy_port = '[UNDEF]'
2025-02-18 15:27:37   tun_mtu = 1500
2025-02-18 15:27:37   tun_mtu_defined = ENABLED
2025-02-18 15:27:37   link_mtu = 1500
2025-02-18 15:27:37   link_mtu_defined = DISABLED
2025-02-18 15:27:37   tun_mtu_extra = 0
2025-02-18 15:27:37   tun_mtu_extra_defined = DISABLED
2025-02-18 15:27:37   tls_mtu = 1250
2025-02-18 15:27:37   mtu_discover_type = -1
2025-02-18 15:27:37   fragment = 0
2025-02-18 15:27:37   mssfix = 1492
2025-02-18 15:27:37   mssfix_encap = ENABLED
2025-02-18 15:27:37   mssfix_fixed = DISABLED
2025-02-18 15:27:37   explicit_exit_notification = 0
2025-02-18 15:27:37   tls_auth_file = '[INLINE]'
2025-02-18 15:27:37   key_direction = 1
2025-02-18 15:27:37   tls_crypt_file = '[UNDEF]'
2025-02-18 15:27:37   tls_crypt_v2_file = '[UNDEF]'
2025-02-18 15:27:37 Connection profiles END
2025-02-18 15:27:37   remote_random = DISABLED
2025-02-18 15:27:37   ipchange = '[UNDEF]'
2025-02-18 15:27:37   dev = 'tun'
2025-02-18 15:27:37   dev_type = '[UNDEF]'
2025-02-18 15:27:37   dev_node = '[UNDEF]'
2025-02-18 15:27:37   lladdr = '[UNDEF]'
2025-02-18 15:27:37   topology = 1
2025-02-18 15:27:37   ifconfig_local = '[UNDEF]'
2025-02-18 15:27:37   ifconfig_remote_netmask = '[UNDEF]'
2025-02-18 15:27:37   ifconfig_noexec = DISABLED
2025-02-18 15:27:37   ifconfig_nowarn = ENABLED
2025-02-18 15:27:37   ifconfig_ipv6_local = '[UNDEF]'
2025-02-18 15:27:37   ifconfig_ipv6_netbits = 0
2025-02-18 15:27:37   ifconfig_ipv6_remote = '[UNDEF]'
2025-02-18 15:27:37   shaper = 0
2025-02-18 15:27:37   mtu_test = 0
2025-02-18 15:27:37   mlock = DISABLED
2025-02-18 15:27:37   keepalive_ping = 0
2025-02-18 15:27:37   keepalive_timeout = 0
2025-02-18 15:27:37   inactivity_timeout = 0
2025-02-18 15:27:37   session_timeout = 0
2025-02-18 15:27:37   inactivity_minimum_bytes = 0
2025-02-18 15:27:37   ping_send_timeout = 0
2025-02-18 15:27:37   ping_rec_timeout = 0
2025-02-18 15:27:37   ping_rec_timeout_action = 0
2025-02-18 15:27:37   ping_timer_remote = DISABLED
2025-02-18 15:27:37   remap_sigusr1 = 0
2025-02-18 15:27:37   persist_tun = ENABLED
2025-02-18 15:27:37   persist_local_ip = DISABLED
2025-02-18 15:27:37   persist_remote_ip = DISABLED
2025-02-18 15:27:37   passtos = DISABLED
2025-02-18 15:27:37   resolve_retry_seconds = 1000000000
2025-02-18 15:27:37   resolve_in_advance = ENABLED
2025-02-18 15:27:37   username = '[UNDEF]'
2025-02-18 15:27:37   groupname = '[UNDEF]'
2025-02-18 15:27:37   chroot_dir = '[UNDEF]'
2025-02-18 15:27:37   cd_dir = '[UNDEF]'
2025-02-18 15:27:37   writepid = '[UNDEF]'
2025-02-18 15:27:37   up_script = '[UNDEF]'
2025-02-18 15:27:37   down_script = '[UNDEF]'
2025-02-18 15:27:37   down_pre = DISABLED
2025-02-18 15:27:37   up_restart = DISABLED
2025-02-18 15:27:37   up_delay = DISABLED
2025-02-18 15:27:37   daemon = DISABLED
2025-02-18 15:27:37   log = DISABLED
2025-02-18 15:27:37   suppress_timestamps = DISABLED
2025-02-18 15:27:37   machine_readable_output = ENABLED
2025-02-18 15:27:37   nice = 0
2025-02-18 15:27:37   verbosity = 4
2025-02-18 15:27:37   mute = 0
2025-02-18 15:27:37   gremlin = 0
2025-02-18 15:27:37   status_file = '[UNDEF]'
2025-02-18 15:27:37   status_file_version = 1
2025-02-18 15:27:37   status_file_update_freq = 60
2025-02-18 15:27:37   occ = ENABLED
2025-02-18 15:27:37   rcvbuf = 0
2025-02-18 15:27:37   sndbuf = 0
2025-02-18 15:27:37   sockflags = 0
2025-02-18 15:27:37   fast_io = DISABLED
2025-02-18 15:27:37   comp.alg = 2
2025-02-18 15:27:37   comp.flags = 0
2025-02-18 15:27:37   route_script = '[UNDEF]'
2025-02-18 15:27:37   route_default_gateway = '[UNDEF]'
2025-02-18 15:27:37   route_default_metric = 0
2025-02-18 15:27:37   route_noexec = DISABLED
2025-02-18 15:27:37   route_delay = 0
2025-02-18 15:27:37   route_delay_window = 30
2025-02-18 15:27:37   route_delay_defined = DISABLED
2025-02-18 15:27:37   route_nopull = DISABLED
2025-02-18 15:27:37   route_gateway_via_dhcp = DISABLED
2025-02-18 15:27:37   allow_pull_fqdn = DISABLED
2025-02-18 15:27:37   management_addr = '/data/user/0/de.blinkt.openvpn/cache/mgmtsocket'
2025-02-18 15:27:37   management_port = 'unix'
2025-02-18 15:27:37   management_user_pass = '[UNDEF]'
2025-02-18 15:27:37   management_log_history_cache = 250
2025-02-18 15:27:37   management_echo_buffer_size = 100
2025-02-18 15:27:37   management_client_user = '[UNDEF]'
2025-02-18 15:27:37   management_client_group = '[UNDEF]'
2025-02-18 15:27:37   management_flags = 16678
2025-02-18 15:27:37   shared_secret_file = '[UNDEF]'
2025-02-18 15:27:37   key_direction = 1
2025-02-18 15:27:37   ciphername = 'AES-256-CBC'
2025-02-18 15:27:37   ncp_ciphers = 'AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305'
2025-02-18 15:27:37   authname = 'SHA256'
2025-02-18 15:27:37   engine = DISABLED
2025-02-18 15:27:37   mute_replay_warnings = DISABLED
2025-02-18 15:27:37   replay_window = 64
2025-02-18 15:27:37   replay_time = 15
2025-02-18 15:27:37   packet_id_file = '[UNDEF]'
2025-02-18 15:27:37   test_crypto = DISABLED
2025-02-18 15:27:37   tls_server = DISABLED
2025-02-18 15:27:37   tls_client = ENABLED
2025-02-18 15:27:37   ca_file = '[INLINE]'
2025-02-18 15:27:37   ca_path = '[UNDEF]'
2025-02-18 15:27:37   dh_file = '[UNDEF]'
2025-02-18 15:27:37   cert_file = '[INLINE]'
2025-02-18 15:27:37   extra_certs_file = '[UNDEF]'
2025-02-18 15:27:37   priv_key_file = '[INLINE]'
2025-02-18 15:27:37   pkcs12_file = '[UNDEF]'
2025-02-18 15:27:37   cipher_list = '[UNDEF]'
2025-02-18 15:27:37   cipher_list_tls13 = '[UNDEF]'
2025-02-18 15:27:37   tls_cert_profile = '[UNDEF]'
2025-02-18 15:27:37   tls_verify = '[UNDEF]'
2025-02-18 15:27:37   tls_export_peer_cert_dir = '[UNDEF]'
2025-02-18 15:27:37   verify_x509_type = 1
2025-02-18 15:27:37   verify_x509_name = <name here>
2025-02-18 15:27:37   crl_file = '[UNDEF]'
2025-02-18 15:27:37   ns_cert_type = 0
2025-02-18 15:27:37   remote_cert_ku[i] = 65535
2025-02-18 15:27:37   remote_cert_ku[i] = 0
2025-02-18 15:27:37   remote_cert_ku[i] = 0
2025-02-18 15:27:37   remote_cert_ku[i] = 0
2025-02-18 15:27:37   remote_cert_ku[i] = 0
2025-02-18 15:27:37   remote_cert_ku[i] = 0
2025-02-18 15:27:37   remote_cert_ku[i] = 0
2025-02-18 15:27:37   remote_cert_ku[i] = 0
2025-02-18 15:27:37   remote_cert_ku[i] = 0
2025-02-18 15:27:37   remote_cert_ku[i] = 0
2025-02-18 15:27:37   remote_cert_ku[i] = 0
2025-02-18 15:27:37   remote_cert_ku[i] = 0
2025-02-18 15:27:37   remote_cert_ku[i] = 0
2025-02-18 15:27:37   remote_cert_ku[i] = 0
2025-02-18 15:27:37   remote_cert_ku[i] = 0
2025-02-18 15:27:37   remote_cert_ku[i] = 0
2025-02-18 15:27:37   remote_cert_eku = 'TLS Web Server Authentication'
2025-02-18 15:27:37   ssl_flags = 192
2025-02-18 15:27:37   tls_timeout = 2
2025-02-18 15:27:37   renegotiate_bytes = -1
2025-02-18 15:27:37   renegotiate_packets = 0
2025-02-18 15:27:37   renegotiate_seconds = 3600
2025-02-18 15:27:37   handshake_window = 60
2025-02-18 15:27:37   transition_window = 3600
2025-02-18 15:27:37   single_session = DISABLED
2025-02-18 15:27:37   push_peer_info = DISABLED
2025-02-18 15:27:37   tls_exit = DISABLED
2025-02-18 15:27:37   tls_crypt_v2_metadata = '[UNDEF]'
2025-02-18 15:27:37   server_network = 0.0.0.0
2025-02-18 15:27:37   server_netmask = 0.0.0.0
2025-02-18 15:27:37   server_network_ipv6 = ::
2025-02-18 15:27:37   server_netbits_ipv6 = 0
2025-02-18 15:27:37   server_bridge_ip = 0.0.0.0
2025-02-18 15:27:37   server_bridge_netmask = 0.0.0.0
2025-02-18 15:27:37   server_bridge_pool_start = 0.0.0.0
2025-02-18 15:27:37   server_bridge_pool_end = 0.0.0.0
2025-02-18 15:27:37   ifconfig_pool_defined = DISABLED
2025-02-18 15:27:37   ifconfig_pool_start = 0.0.0.0
2025-02-18 15:27:37   ifconfig_pool_end = 0.0.0.0
2025-02-18 15:27:37   ifconfig_pool_netmask = 0.0.0.0
2025-02-18 15:27:37   ifconfig_pool_persist_filename = '[UNDEF]'
2025-02-18 15:27:37   ifconfig_pool_persist_refresh_freq = 600
2025-02-18 15:27:37   ifconfig_ipv6_pool_defined = DISABLED
2025-02-18 15:27:37   ifconfig_ipv6_pool_base = ::
2025-02-18 15:27:37   ifconfig_ipv6_pool_netbits = 0
2025-02-18 15:27:37   n_bcast_buf = 256
2025-02-18 15:27:37   tcp_queue_limit = 64
2025-02-18 15:27:37   real_hash_size = 256
2025-02-18 15:27:37   virtual_hash_size = 256
2025-02-18 15:27:37   client_connect_script = '[UNDEF]'
2025-02-18 15:27:37   learn_address_script = '[UNDEF]'
2025-02-18 15:27:37   client_disconnect_script = '[UNDEF]'
2025-02-18 15:27:37   client_crresponse_script = '[UNDEF]'
2025-02-18 15:27:37   client_config_dir = '[UNDEF]'
2025-02-18 15:27:37   ccd_exclusive = DISABLED
2025-02-18 15:27:37   tmp_dir = '/data/data/de.blinkt.openvpn/cache'
2025-02-18 15:27:37   push_ifconfig_defined = DISABLED
2025-02-18 15:27:37   push_ifconfig_local = 0.0.0.0
2025-02-18 15:27:37   push_ifconfig_remote_netmask = 0.0.0.0
2025-02-18 15:27:37   push_ifconfig_ipv6_defined = DISABLED
2025-02-18 15:27:37   push_ifconfig_ipv6_local = ::/0
2025-02-18 15:27:37   push_ifconfig_ipv6_remote = ::
2025-02-18 15:27:37   enable_c2c = DISABLED
2025-02-18 15:27:37   duplicate_cn = DISABLED
2025-02-18 15:27:37   cf_max = 0
2025-02-18 15:27:37   cf_per = 0
2025-02-18 15:27:37   cf_initial_max = 100
2025-02-18 15:27:37   cf_initial_per = 10
2025-02-18 15:27:37   max_clients = 1024
2025-02-18 15:27:37   max_routes_per_client = 256
2025-02-18 15:27:37   auth_user_pass_verify_script = '[UNDEF]'
2025-02-18 15:27:37   auth_user_pass_verify_script_via_file = DISABLED
2025-02-18 15:27:37   auth_token_generate = DISABLED
2025-02-18 15:27:37   force_key_material_export = DISABLED
2025-02-18 15:27:37   auth_token_lifetime = 0
2025-02-18 15:27:37   auth_token_secret_file = '[UNDEF]'
2025-02-18 15:27:37   port_share_host = '[UNDEF]'
2025-02-18 15:27:37   port_share_port = '[UNDEF]'
2025-02-18 15:27:37   vlan_tagging = DISABLED
2025-02-18 15:27:37   vlan_accept = all
2025-02-18 15:27:37   vlan_pvid = 1
2025-02-18 15:27:37   client = ENABLED
2025-02-18 15:27:37   pull = ENABLED
2025-02-18 15:27:37   auth_user_pass_file = 'stdin'
2025-02-18 15:27:37 OpenVPN 2.7-icsopenvpn [git:v2.6_branched-576-ge2e36469] arm64-v8a [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Feb 15 2025
2025-02-18 15:27:37 library versions: OpenSSL 3.4.1 11 Feb 2025, LZO 2.10
2025-02-18 15:27:37 MANAGEMENT: Connected to management server at /data/user/0/de.blinkt.openvpn/cache/mgmtsocket
2025-02-18 15:27:37 MANAGEMENT: CMD 'version 3'
2025-02-18 15:27:37 MANAGEMENT: CMD 'hold release'
2025-02-18 15:27:37 MANAGEMENT: CMD 'bytecount 2'
2025-02-18 15:27:37 MANAGEMENT: CMD 'state on'
2025-02-18 15:27:37 MANAGEMENT: CMD 'username 'Auth' <username here>'
2025-02-18 15:27:37 MANAGEMENT: CMD 'password [...]'
2025-02-18 15:27:37 MANAGEMENT: >STATE:1739888857,RESOLVE,,,,,,
2025-02-18 15:27:37 MANAGEMENT: >STATE:1739888857,RESOLVE,,,,,,
2025-02-18 15:27:37 MANAGEMENT: CMD 'proxy NONE'
2025-02-18 15:27:38 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2025-02-18 15:27:38 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2025-02-18 15:27:38 LZO compression initializing
2025-02-18 15:27:38 Control Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1250 tun_max_mtu:0 headroom:126 payload:1600 tailroom:126 ET:0 ]
2025-02-18 15:27:38 MANAGEMENT: >STATE:1739888858,RESOLVE,,,,,,
2025-02-18 15:27:38 RESOLVE: Cannot resolve host address: <dns name here>:1194 (No address associated with hostname)
2025-02-18 15:27:38 Data Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1500 tun_max_mtu:1600 headroom:136 payload:1768 tailroom:562 ET:0 ]
2025-02-18 15:27:38 MANAGEMENT: >STATE:1739888858,RESOLVE,,,,,,
2025-02-18 15:27:38 Waiting 2s seconds between connection attempt
2025-02-18 15:27:38 RESOLVE: Cannot resolve host address: <dns name here>:1194 (No address associated with hostname)
2025-02-18 15:27:38 Could not determine IPv4/IPv6 protocol
2025-02-18 15:27:38 SIGUSR1[soft,Could not determine IPv4/IPv6 protocol] received, process restarting
2025-02-18 15:27:38 MANAGEMENT: >STATE:1739888858,RECONNECTING,Could not determine IPv4/IPv6 protocol,,,,,
2025-02-18 15:27:43 MANAGEMENT: CMD 'hold release'
2025-02-18 15:27:43 MANAGEMENT: CMD 'bytecount 2'
2025-02-18 15:27:43 MANAGEMENT: CMD 'state on'
2025-02-18 15:27:43 MANAGEMENT: CMD 'proxy NONE'
2025-02-18 15:27:44 Re-using SSL/TLS context
2025-02-18 15:27:44 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2025-02-18 15:27:44 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2025-02-18 15:27:44 LZO compression initializing
2025-02-18 15:27:44 Control Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1250 tun_max_mtu:0 headroom:126 payload:1600 tailroom:126 ET:0 ]
2025-02-18 15:27:44 MANAGEMENT: >STATE:1739888864,RESOLVE,,,,,,
2025-02-18 15:27:44 RESOLVE: Cannot resolve host address: <dns name here>:1194 (No address associated with hostname)
2025-02-18 15:27:44 Data Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1500 tun_max_mtu:1600 headroom:136 payload:1768 tailroom:562 ET:0 ]
2025-02-18 15:27:44 MANAGEMENT: >STATE:1739888864,RESOLVE,,,,,,
2025-02-18 15:27:44 RESOLVE: Cannot resolve host address: <dns name here>:1194 (No address associated with hostname)
2025-02-18 15:27:45 Waiting 2s seconds between connection attempt
2025-02-18 15:27:44 Could not determine IPv4/IPv6 protocol
2025-02-18 15:27:45 SIGUSR1[soft,Could not determine IPv4/IPv6 protocol] received, process restarting
2025-02-18 15:27:45 MANAGEMENT: >STATE:1739888864,RECONNECTING,Could not determine IPv4/IPv6 protocol,,,,,
2025-02-18 15:27:50 MANAGEMENT: CMD 'hold release'
2025-02-18 15:27:50 MANAGEMENT: CMD 'bytecount 2'
2025-02-18 15:27:50 MANAGEMENT: CMD 'state on'
2025-02-18 15:27:50 MANAGEMENT: CMD 'proxy NONE'
2025-02-18 15:27:51 Re-using SSL/TLS context
2025-02-18 15:27:51 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2025-02-18 15:27:51 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2025-02-18 15:27:51 LZO compression initializing
2025-02-18 15:27:51 Control Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1250 tun_max_mtu:0 headroom:126 payload:1600 tailroom:126 ET:0 ]
2025-02-18 15:27:51 Data Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1500 tun_max_mtu:1600 headroom:136 payload:1768 tailroom:562 ET:0 ]
2025-02-18 15:27:51 TCP/UDP: Preserving recently used remote address: [AF_INET]<IP here>:1194
2025-02-18 15:27:51 Socket Buffers: R=[1310720->1310720] S=[327680->327680]
2025-02-18 15:27:51 MANAGEMENT: CMD 'needok 'PROTECTFD' ok'
2025-02-18 15:27:51 UDPv4 link local (bound): [AF_INET][undef]:0
2025-02-18 15:27:51 UDPv4 link remote: [AF_INET]<IP here>:1194
2025-02-18 15:27:51 MANAGEMENT: >STATE:1739888871,WAIT,,,,,,
2025-02-18 15:27:51 MANAGEMENT: >STATE:1739888871,AUTH,,,,,,
2025-02-18 15:27:51 TLS: Initial packet from [AF_INET]<ipname here>:1194, sid=<name here>
2025-02-18 15:27:51 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
2025-02-18 15:27:51 VERIFY OK: depth=1, <ca name here>
2025-02-18 15:27:51 VERIFY KU OK
2025-02-18 15:27:51 Validating certificate extended key usage
2025-02-18 15:27:51 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
2025-02-18 15:27:51 VERIFY EKU OK
2025-02-18 15:27:51 VERIFY X509NAME OK: <ca name here>
2025-02-18 15:27:51 VERIFY OK: depth=0, <ca name here>
2025-02-18 15:27:53 Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, peer certificate: 2048 bits RSA, signature: RSA-SHA256, peer temporary key: 253 bits X25519, peer signing digest/type: SHA256 RSASSA-PSS
2025-02-18 15:27:53 [<server name here>] Peer Connection Initiated with [AF_INET]<ip address here>:1194
2025-02-18 15:27:53 TLS: move_session: dest=TM_ACTIVE src=TM_INITIAL reinit_src=1
2025-02-18 15:27:53 TLS: tls_multi_process: initial untrusted session promoted to trusted
2025-02-18 15:27:54 MANAGEMENT: >STATE:1739888874,GET_CONFIG,,,,,,
2025-02-18 15:27:54 SENT CONTROL [<server name here>]: 'PUSH_REQUEST' (status=1)
2025-02-18 15:27:54 PUSH: Received control message: 'PUSH_REPLY,route ... subnet,ping 10,ping-restart 60,ifconfig ....,peer-id 0,cipher AES-256-GCM,protocol-flags cc-exit,tun-mtu 1500'
2025-02-18 15:27:54 OPTIONS IMPORT: --ifconfig/up options modified
2025-02-18 15:27:54 OPTIONS IMPORT: route options modified
2025-02-18 15:27:54 OPTIONS IMPORT: route-related options modified
2025-02-18 15:27:54 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
2025-02-18 15:27:54 OPTIONS IMPORT: tun-mtu set to 1500
2025-02-18 15:27:54 ROUTE_GATEWAY 127.100.103.119 IFACE=android-gw
2025-02-18 15:27:54 do_ifconfig, ipv4=1, ipv6=0
2025-02-18 15:27:54 MANAGEMENT: >STATE:1739888874,ASSIGN_IP,,<IP here>,,,,
2025-02-18 15:27:54 MANAGEMENT: CMD 'needok 'IFCONFIG' ok'
2025-02-18 15:27:54 MANAGEMENT: CMD 'needok 'ROUTE' ok'
2025-02-18 15:27:54 MANAGEMENT: >STATE:1739888874,ADD_ROUTES,,,,,,
2025-02-18 15:27:54 MANAGEMENT: CMD 'needok 'ROUTE' ok'
2025-02-18 15:27:54 MANAGEMENT: CMD 'needok 'DNSSERVER' ok'
2025-02-18 15:27:54 MANAGEMENT: CMD 'needok 'PERSIST_TUN_ACTION' OPEN_BEFORE_CLOSE'
2025-02-18 15:27:54 Opening tun interface:
2025-02-18 15:27:54 Local IPv4: <IP here> IPv6: (not set) MTU: 1500
2025-02-18 15:27:54 DNS Server: <IP here>, Domain: []
2025-02-18 15:27:54 Routes: <IP here>
2025-02-18 15:27:54 Routes excluded: 
2025-02-18 15:27:54 Unknown object for LogItem marschaling []
2025-02-18 15:27:54 Disallowed VPN apps: 
2025-02-18 15:27:55 MANAGEMENT: CMD 'needok 'OPENTUN' ok'
2025-02-18 15:27:55 tun/tap device [vpnservice-tun] opened
2025-02-18 15:27:55 Data Channel MTU parms [ mss_fix:1399 max_frag:0 tun_mtu:1500 tun_max_mtu:1600 headroom:136 payload:1768 tailroom:562 ET:0 ]
2025-02-18 15:27:55 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
2025-02-18 15:27:55 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
2025-02-18 15:27:55 Initialization Sequence Completed

@caribou-snake caribou-snake changed the title v7.55 DNS resolution fails v0.7.55 DNS resolution fails Feb 18, 2025
@schwabe
Copy link
Owner

schwabe commented Feb 18, 2025

v0.7.55 was offered as regular update through f-droid repo (using droid-ify), no indication as pre-release
hope this helps ..

Yeah, F-droid has no beta version the last time this issue was raised and left it to them what I should do. I had special production tags in the past but fdroid ignored those and rather picks up all releases.

This behaviour is not in an area that was changed between 0.7.54 and 0.7.55. I am not sure what is triggering it. In my own tests with Android 15, resolving works just fine. It might have to do something with your dns hosntmae or your config but I fail to reproduce it here.

@schwabe
Copy link
Owner

schwabe commented Feb 19, 2025

The log is not really that much helpful as all the information that might help to try to reprodoce the issue is redacted.

@cron2
Copy link

cron2 commented Feb 19, 2025

We really need to see the config - this looks like an unexpected interaction between <connection> profiles and proto, but there's so many different ways to configure this that I can't seem to find what triggers the issue. All my tests behave properly - resolving v4 for proto udp4/tcp4, v4+v6 "whatever the host has" for proto udp/tcp, and so on.

Please remove all key material, of course, and replace the hostnames with "my.host.name" and IP address with "1.2.3.4", but please do not remove / reorder the lines in the config.

@cron2
Copy link

cron2 commented Feb 19, 2025

Actually it would be good to have the hostname in there, to see if it's v4-only, v6-only or dual-stacked (and if there is something interesting with the host DNS).

@caribou-snake
Copy link
Author

caribou-snake commented Feb 19, 2025

Hello, thank you very much for your effort!
sorry for my ignorance removing too much..

profile was exported from an OPNsense - OpenVPN v2.6.13

I repeated the whole..

  • using v0.7.54 - all good all working
  • update to v0.7.55 - DNS resolution fails
  • delete app
  • install v0.7.54 /import same profile - all good again (in the log a warning to use auth-nocache option)

here the log, this time on mobile network

2025-02-19 14:51:51 F-Droid built and signed version 0.7.55 running on google Pixel 8 (shiba), Android 15 (AP4A.250205.002) API 35, ABI arm64-v8a, (google/shiba/shiba:15/AP4A.250205.002/2025021100:user/release-keys)
2025-02-19 14:51:54 Building configuration…
2025-02-19 14:51:54 MANAGEMENT: CMD 'hold release'
2025-02-19 14:51:54 MANAGEMENT: CMD 'bytecount 2'
2025-02-19 14:51:54 MANAGEMENT: CMD 'state on'
2025-02-19 14:51:54 MANAGEMENT: CMD 'proxy NONE'
2025-02-19 14:51:54 Fetched VPN profile (<profile name here) triggered by Reconnect button pressed.
2025-02-19 14:51:54 Scheduling VPN keep alive for <profile name here>
2025-02-19 14:51:54 MANAGEMENT: CMD 'signal SIGINT'
2025-02-19 14:51:54 Re-using SSL/TLS context
2025-02-19 14:51:54 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2025-02-19 14:51:54 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2025-02-19 14:51:54 SIGINT[hard,init_instance] received, process exiting
2025-02-19 14:51:54 MANAGEMENT: >STATE:1739973114,EXITING,init_instance,,,,,
2025-02-19 14:51:54 Unscheduling VPN keep alive
2025-02-19 14:51:55 started Socket Thread
2025-02-19 14:51:55 P:WARNING: linker: Warning: "/data/app/~~fnEhUaTCCjUk_6G-s_vY3w==/de.blinkt.openvpn-5ZwxilTFuSb_LF_BNwEwSg==/lib/arm64/libovpnexec.so" is not a directory (ignoring)
2025-02-19 14:51:55 Network Status: CONNECTED LTE to MOBILE <apn name here>
2025-02-19 14:51:55 Debug state info: CONNECTED LTE to MOBILE <apn name here>, pause: userPause, shouldbeconnected: true, network: SHOULDBECONNECTED 
2025-02-19 14:51:55 Debug state info: CONNECTED LTE to MOBILE <apn name here>, pause: userPause, shouldbeconnected: true, network: SHOULDBECONNECTED 
2025-02-19 14:51:55 WARNING: Compression for receiving enabled. Compression has been used in the past to break encryption. Compression support is deprecated and we recommend to disable it completely.
2025-02-19 14:51:55 Current Parameter Settings:
2025-02-19 14:51:55   config = 'stdin'
2025-02-19 14:51:55   mode = 0
2025-02-19 14:51:55   show_ciphers = DISABLED
2025-02-19 14:51:55   show_digests = DISABLED
2025-02-19 14:51:55   show_engines = DISABLED
2025-02-19 14:51:55   genkey = DISABLED
2025-02-19 14:51:55   genkey_filename = '[UNDEF]'
2025-02-19 14:51:55   key_pass_file = '[UNDEF]'
2025-02-19 14:51:55 Waiting 0s seconds between connection attempt
2025-02-19 14:51:55   show_tls_ciphers = DISABLED
2025-02-19 14:51:55   connect_retry_max = 0
2025-02-19 14:51:55 Connection profiles [0]:
2025-02-19 14:51:55   proto = udp
2025-02-19 14:51:55   Local Sockets:
2025-02-19 14:51:55     [(null)]:0
2025-02-19 14:51:55   remote = '<1.example.org>'
2025-02-19 14:51:55   remote_port = '1194'
2025-02-19 14:51:55   remote_float = DISABLED
2025-02-19 14:51:55   bind_defined = DISABLED
2025-02-19 14:51:55   bind_local = ENABLED
2025-02-19 14:51:55   bind_ipv6_only = DISABLED
2025-02-19 14:51:55   connect_retry_seconds = 2
2025-02-19 14:51:55   connect_timeout = 10
2025-02-19 14:51:55   socks_proxy_server = '[UNDEF]'
2025-02-19 14:51:55   socks_proxy_port = '[UNDEF]'
2025-02-19 14:51:55   tun_mtu = 1500
2025-02-19 14:51:55   tun_mtu_defined = ENABLED
2025-02-19 14:51:55   link_mtu = 1500
2025-02-19 14:51:55   link_mtu_defined = DISABLED
2025-02-19 14:51:55   tun_mtu_extra = 0
2025-02-19 14:51:55   tun_mtu_extra_defined = DISABLED
2025-02-19 14:51:55   tls_mtu = 1250
2025-02-19 14:51:55   mtu_discover_type = -1
2025-02-19 14:51:55   fragment = 0
2025-02-19 14:51:55   mssfix = 1492
2025-02-19 14:51:55   mssfix_encap = ENABLED
2025-02-19 14:51:55   mssfix_fixed = DISABLED
2025-02-19 14:51:55   explicit_exit_notification = 0
2025-02-19 14:51:55   tls_auth_file = '[INLINE]'
2025-02-19 14:51:55   key_direction = 1
2025-02-19 14:51:55   tls_crypt_file = '[UNDEF]'
2025-02-19 14:51:55   tls_crypt_v2_file = '[UNDEF]'
2025-02-19 14:51:55 Connection profiles [1]:
2025-02-19 14:51:55   proto = udp
2025-02-19 14:51:55   Local Sockets:
2025-02-19 14:51:55     [(null)]:0
2025-02-19 14:51:55   remote = '<2.example.org>'
2025-02-19 14:51:55   remote_port = '1194'
2025-02-19 14:51:55   remote_float = DISABLED
2025-02-19 14:51:55   bind_defined = DISABLED
2025-02-19 14:51:55   bind_local = ENABLED
2025-02-19 14:51:55   bind_ipv6_only = DISABLED
2025-02-19 14:51:55   connect_retry_seconds = 2
2025-02-19 14:51:55   connect_timeout = 10
2025-02-19 14:51:55   socks_proxy_server = '[UNDEF]'
2025-02-19 14:51:55   socks_proxy_port = '[UNDEF]'
2025-02-19 14:51:55   tun_mtu = 1500
2025-02-19 14:51:55   tun_mtu_defined = ENABLED
2025-02-19 14:51:55   link_mtu = 1500
2025-02-19 14:51:55   link_mtu_defined = DISABLED
2025-02-19 14:51:55   tun_mtu_extra = 0
2025-02-19 14:51:55   tun_mtu_extra_defined = DISABLED
2025-02-19 14:51:55   tls_mtu = 1250
2025-02-19 14:51:55   mtu_discover_type = -1
2025-02-19 14:51:55   fragment = 0
2025-02-19 14:51:55   mssfix = 1492
2025-02-19 14:51:55   mssfix_encap = ENABLED
2025-02-19 14:51:55   mssfix_fixed = DISABLED
2025-02-19 14:51:55   explicit_exit_notification = 0
2025-02-19 14:51:55   tls_auth_file = '[INLINE]'
2025-02-19 14:51:55   key_direction = 1
2025-02-19 14:51:55   tls_crypt_file = '[UNDEF]'
2025-02-19 14:51:55   tls_crypt_v2_file = '[UNDEF]'
2025-02-19 14:51:55 Connection profiles END
2025-02-19 14:51:55   remote_random = DISABLED
2025-02-19 14:51:55   ipchange = '[UNDEF]'
2025-02-19 14:51:55   dev = 'tun'
2025-02-19 14:51:55   dev_type = '[UNDEF]'
2025-02-19 14:51:55   dev_node = '[UNDEF]'
2025-02-19 14:51:55   lladdr = '[UNDEF]'
2025-02-19 14:51:55   topology = 1
2025-02-19 14:51:55   ifconfig_local = '[UNDEF]'
2025-02-19 14:51:55   ifconfig_remote_netmask = '[UNDEF]'
2025-02-19 14:51:55   ifconfig_noexec = DISABLED
2025-02-19 14:51:55   ifconfig_nowarn = ENABLED
2025-02-19 14:51:55   ifconfig_ipv6_local = '[UNDEF]'
2025-02-19 14:51:55   ifconfig_ipv6_netbits = 0
2025-02-19 14:51:55   ifconfig_ipv6_remote = '[UNDEF]'
2025-02-19 14:51:55   shaper = 0
2025-02-19 14:51:55   mtu_test = 0
2025-02-19 14:51:55   mlock = DISABLED
2025-02-19 14:51:55   keepalive_ping = 0
2025-02-19 14:51:55   keepalive_timeout = 0
2025-02-19 14:51:55   inactivity_timeout = 0
2025-02-19 14:51:55   session_timeout = 0
2025-02-19 14:51:55   inactivity_minimum_bytes = 0
2025-02-19 14:51:55   ping_send_timeout = 0
2025-02-19 14:51:55   ping_rec_timeout = 0
2025-02-19 14:51:55   ping_rec_timeout_action = 0
2025-02-19 14:51:55   ping_timer_remote = DISABLED
2025-02-19 14:51:55   remap_sigusr1 = 0
2025-02-19 14:51:55   persist_tun = ENABLED
2025-02-19 14:51:55   persist_local_ip = DISABLED
2025-02-19 14:51:55   persist_remote_ip = DISABLED
2025-02-19 14:51:55   passtos = DISABLED
2025-02-19 14:51:55   resolve_retry_seconds = 1000000000
2025-02-19 14:51:55   resolve_in_advance = ENABLED
2025-02-19 14:51:55   username = '[UNDEF]'
2025-02-19 14:51:55   groupname = '[UNDEF]'
2025-02-19 14:51:55   chroot_dir = '[UNDEF]'
2025-02-19 14:51:55   cd_dir = '[UNDEF]'
2025-02-19 14:51:55   writepid = '[UNDEF]'
2025-02-19 14:51:55   up_script = '[UNDEF]'
2025-02-19 14:51:55   down_script = '[UNDEF]'
2025-02-19 14:51:55   down_pre = DISABLED
2025-02-19 14:51:55   up_restart = DISABLED
2025-02-19 14:51:55   up_delay = DISABLED
2025-02-19 14:51:55   daemon = DISABLED
2025-02-19 14:51:55   log = DISABLED
2025-02-19 14:51:55   suppress_timestamps = DISABLED
2025-02-19 14:51:55   machine_readable_output = ENABLED
2025-02-19 14:51:55   nice = 0
2025-02-19 14:51:55   verbosity = 4
2025-02-19 14:51:55   mute = 0
2025-02-19 14:51:55   gremlin = 0
2025-02-19 14:51:55   status_file = '[UNDEF]'
2025-02-19 14:51:55   status_file_version = 1
2025-02-19 14:51:55   status_file_update_freq = 60
2025-02-19 14:51:55   occ = ENABLED
2025-02-19 14:51:55   rcvbuf = 0
2025-02-19 14:51:55   sndbuf = 0
2025-02-19 14:51:55   sockflags = 0
2025-02-19 14:51:55   fast_io = DISABLED
2025-02-19 14:51:55   comp.alg = 2
2025-02-19 14:51:55   comp.flags = 0
2025-02-19 14:51:55   route_script = '[UNDEF]'
2025-02-19 14:51:55   route_default_gateway = '[UNDEF]'
2025-02-19 14:51:55   route_default_metric = 0
2025-02-19 14:51:55   route_noexec = DISABLED
2025-02-19 14:51:55   route_delay = 0
2025-02-19 14:51:55   route_delay_window = 30
2025-02-19 14:51:55   route_delay_defined = DISABLED
2025-02-19 14:51:55   route_nopull = DISABLED
2025-02-19 14:51:55   route_gateway_via_dhcp = DISABLED
2025-02-19 14:51:55   allow_pull_fqdn = DISABLED
2025-02-19 14:51:55   management_addr = '/data/user/0/de.blinkt.openvpn/cache/mgmtsocket'
2025-02-19 14:51:55   management_port = 'unix'
2025-02-19 14:51:55   management_user_pass = '[UNDEF]'
2025-02-19 14:51:55   management_log_history_cache = 250
2025-02-19 14:51:55   management_echo_buffer_size = 100
2025-02-19 14:51:55   management_client_user = '[UNDEF]'
2025-02-19 14:51:55   management_client_group = '[UNDEF]'
2025-02-19 14:51:55   management_flags = 16678
2025-02-19 14:51:55   shared_secret_file = '[UNDEF]'
2025-02-19 14:51:55   key_direction = 1
2025-02-19 14:51:55   ciphername = 'AES-256-CBC'
2025-02-19 14:51:55   ncp_ciphers = 'AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305'
2025-02-19 14:51:55   authname = 'SHA256'
2025-02-19 14:51:55   engine = DISABLED
2025-02-19 14:51:55   mute_replay_warnings = DISABLED
2025-02-19 14:51:55   replay_window = 64
2025-02-19 14:51:55   replay_time = 15
2025-02-19 14:51:55   packet_id_file = '[UNDEF]'
2025-02-19 14:51:55   test_crypto = DISABLED
2025-02-19 14:51:55   tls_server = DISABLED
2025-02-19 14:51:55   tls_client = ENABLED
2025-02-19 14:51:55   ca_file = '[INLINE]'
2025-02-19 14:51:55   ca_path = '[UNDEF]'
2025-02-19 14:51:55   dh_file = '[UNDEF]'
2025-02-19 14:51:55   cert_file = '[INLINE]'
2025-02-19 14:51:55   extra_certs_file = '[UNDEF]'
2025-02-19 14:51:55   priv_key_file = '[INLINE]'
2025-02-19 14:51:55   pkcs12_file = '[UNDEF]'
2025-02-19 14:51:55   cipher_list = '[UNDEF]'
2025-02-19 14:51:55   cipher_list_tls13 = '[UNDEF]'
2025-02-19 14:51:55   tls_cert_profile = '[UNDEF]'
2025-02-19 14:51:55   tls_verify = '[UNDEF]'
2025-02-19 14:51:55   tls_export_peer_cert_dir = '[UNDEF]'
2025-02-19 14:51:55   verify_x509_type = 1
2025-02-19 14:51:55   verify_x509_name = '<ca info here>'
2025-02-19 14:51:55   crl_file = '[UNDEF]'
2025-02-19 14:51:55   ns_cert_type = 0
2025-02-19 14:51:55   remote_cert_ku[i] = 65535
2025-02-19 14:51:55   remote_cert_ku[i] = 0
2025-02-19 14:51:55   remote_cert_ku[i] = 0
2025-02-19 14:51:55   remote_cert_ku[i] = 0
2025-02-19 14:51:55   remote_cert_ku[i] = 0
2025-02-19 14:51:55   remote_cert_ku[i] = 0
2025-02-19 14:51:55   remote_cert_ku[i] = 0
2025-02-19 14:51:55   remote_cert_ku[i] = 0
2025-02-19 14:51:55   remote_cert_ku[i] = 0
2025-02-19 14:51:55   remote_cert_ku[i] = 0
2025-02-19 14:51:55   remote_cert_ku[i] = 0
2025-02-19 14:51:55   remote_cert_ku[i] = 0
2025-02-19 14:51:55   remote_cert_ku[i] = 0
2025-02-19 14:51:55   remote_cert_ku[i] = 0
2025-02-19 14:51:55   remote_cert_ku[i] = 0
2025-02-19 14:51:55   remote_cert_ku[i] = 0
2025-02-19 14:51:55   remote_cert_eku = 'TLS Web Server Authentication'
2025-02-19 14:51:55   ssl_flags = 192
2025-02-19 14:51:55   tls_timeout = 2
2025-02-19 14:51:55   renegotiate_bytes = -1
2025-02-19 14:51:55   renegotiate_packets = 0
2025-02-19 14:51:55   renegotiate_seconds = 3600
2025-02-19 14:51:55   handshake_window = 60
2025-02-19 14:51:55   transition_window = 3600
2025-02-19 14:51:55   single_session = DISABLED
2025-02-19 14:51:55   push_peer_info = DISABLED
2025-02-19 14:51:55   tls_exit = DISABLED
2025-02-19 14:51:55   tls_crypt_v2_metadata = '[UNDEF]'
2025-02-19 14:51:55   server_network = 0.0.0.0
2025-02-19 14:51:55   server_netmask = 0.0.0.0
2025-02-19 14:51:55   server_network_ipv6 = ::
2025-02-19 14:51:55   server_netbits_ipv6 = 0
2025-02-19 14:51:55   server_bridge_ip = 0.0.0.0
2025-02-19 14:51:55   server_bridge_netmask = 0.0.0.0
2025-02-19 14:51:55   server_bridge_pool_start = 0.0.0.0
2025-02-19 14:51:55   server_bridge_pool_end = 0.0.0.0
2025-02-19 14:51:55   ifconfig_pool_defined = DISABLED
2025-02-19 14:51:55   ifconfig_pool_start = 0.0.0.0
2025-02-19 14:51:55   ifconfig_pool_end = 0.0.0.0
2025-02-19 14:51:55   ifconfig_pool_netmask = 0.0.0.0
2025-02-19 14:51:55   ifconfig_pool_persist_filename = '[UNDEF]'
2025-02-19 14:51:55   ifconfig_pool_persist_refresh_freq = 600
2025-02-19 14:51:55   ifconfig_ipv6_pool_defined = DISABLED
2025-02-19 14:51:55   ifconfig_ipv6_pool_base = ::
2025-02-19 14:51:55   ifconfig_ipv6_pool_netbits = 0
2025-02-19 14:51:55   n_bcast_buf = 256
2025-02-19 14:51:55   tcp_queue_limit = 64
2025-02-19 14:51:55   real_hash_size = 256
2025-02-19 14:51:55   virtual_hash_size = 256
2025-02-19 14:51:55   client_connect_script = '[UNDEF]'
2025-02-19 14:51:55   learn_address_script = '[UNDEF]'
2025-02-19 14:51:55   client_disconnect_script = '[UNDEF]'
2025-02-19 14:51:55   client_crresponse_script = '[UNDEF]'
2025-02-19 14:51:55   client_config_dir = '[UNDEF]'
2025-02-19 14:51:55   ccd_exclusive = DISABLED
2025-02-19 14:51:55   tmp_dir = '/data/data/de.blinkt.openvpn/cache'
2025-02-19 14:51:55   push_ifconfig_defined = DISABLED
2025-02-19 14:51:55   push_ifconfig_local = 0.0.0.0
2025-02-19 14:51:55   push_ifconfig_remote_netmask = 0.0.0.0
2025-02-19 14:51:55   push_ifconfig_ipv6_defined = DISABLED
2025-02-19 14:51:55   push_ifconfig_ipv6_local = ::/0
2025-02-19 14:51:55   push_ifconfig_ipv6_remote = ::
2025-02-19 14:51:55   enable_c2c = DISABLED
2025-02-19 14:51:55   duplicate_cn = DISABLED
2025-02-19 14:51:55   cf_max = 0
2025-02-19 14:51:55   cf_per = 0
2025-02-19 14:51:55   cf_initial_max = 100
2025-02-19 14:51:55   cf_initial_per = 10
2025-02-19 14:51:55   max_clients = 1024
2025-02-19 14:51:55   max_routes_per_client = 256
2025-02-19 14:51:55   auth_user_pass_verify_script = '[UNDEF]'
2025-02-19 14:51:55   auth_user_pass_verify_script_via_file = DISABLED
2025-02-19 14:51:55   auth_token_generate = DISABLED
2025-02-19 14:51:55   force_key_material_export = DISABLED
2025-02-19 14:51:55   auth_token_lifetime = 0
2025-02-19 14:51:55   auth_token_secret_file = '[UNDEF]'
2025-02-19 14:51:55   port_share_host = '[UNDEF]'
2025-02-19 14:51:55   port_share_port = '[UNDEF]'
2025-02-19 14:51:55   vlan_tagging = DISABLED
2025-02-19 14:51:55   vlan_accept = all
2025-02-19 14:51:55   vlan_pvid = 1
2025-02-19 14:51:55   client = ENABLED
2025-02-19 14:51:55   pull = ENABLED
2025-02-19 14:51:55   auth_user_pass_file = 'stdin'
2025-02-19 14:51:55 OpenVPN 2.7-icsopenvpn [git:v2.6_branched-576-ge2e36469] arm64-v8a [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Feb 15 2025
2025-02-19 14:51:55 library versions: OpenSSL 3.4.1 11 Feb 2025, LZO 2.10
2025-02-19 14:51:55 MANAGEMENT: Connected to management server at /data/user/0/de.blinkt.openvpn/cache/mgmtsocket
2025-02-19 14:51:55 MANAGEMENT: CMD 'version 3'
2025-02-19 14:51:55 MANAGEMENT: CMD 'hold release'
2025-02-19 14:51:55 MANAGEMENT: CMD 'bytecount 2'
2025-02-19 14:51:55 MANAGEMENT: CMD 'state on'
2025-02-19 14:51:55 MANAGEMENT: CMD 'username 'Auth' <user name here>'
2025-02-19 14:51:55 MANAGEMENT: CMD 'password [...]'
2025-02-19 14:51:55 MANAGEMENT: >STATE:1739973115,RESOLVE,,,,,,
2025-02-19 14:51:55 MANAGEMENT: >STATE:1739973115,RESOLVE,,,,,,
2025-02-19 14:51:55 MANAGEMENT: CMD 'proxy NONE'
2025-02-19 14:51:56 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2025-02-19 14:51:56 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2025-02-19 14:51:56 LZO compression initializing
2025-02-19 14:51:56 Control Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1250 tun_max_mtu:0 headroom:126 payload:1600 tailroom:126 ET:0 ]
2025-02-19 14:51:56 MANAGEMENT: >STATE:1739973116,RESOLVE,,,,,,
2025-02-19 14:51:56 RESOLVE: Cannot resolve host address: <1.example.org>:1194 (No address associated with hostname)
2025-02-19 14:51:56 Data Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1500 tun_max_mtu:1600 headroom:136 payload:1768 tailroom:562 ET:0 ]
2025-02-19 14:51:56 MANAGEMENT: >STATE:1739973116,RESOLVE,,,,,,
2025-02-19 14:51:56 RESOLVE: Cannot resolve host address: <1.example.org>:1194 (No address associated with hostname)
2025-02-19 14:51:56 Could not determine IPv4/IPv6 protocol
2025-02-19 14:51:56 SIGUSR1[soft,Could not determine IPv4/IPv6 protocol] received, process restarting
2025-02-19 14:51:56 MANAGEMENT: >STATE:1739973116,RECONNECTING,Could not determine IPv4/IPv6 protocol,,,,,
2025-02-19 14:51:56 Waiting 2s seconds between connection attempt
2025-02-19 14:52:01 MANAGEMENT: CMD 'hold release'
2025-02-19 14:52:01 MANAGEMENT: CMD 'bytecount 2'
2025-02-19 14:52:01 MANAGEMENT: CMD 'state on'
2025-02-19 14:52:01 MANAGEMENT: CMD 'proxy NONE'
2025-02-19 14:52:02 Re-using SSL/TLS context
2025-02-19 14:52:02 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2025-02-19 14:52:02 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2025-02-19 14:52:02 LZO compression initializing
2025-02-19 14:52:02 Control Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1250 tun_max_mtu:0 headroom:126 payload:1600 tailroom:126 ET:0 ]
2025-02-19 14:52:02 MANAGEMENT: >STATE:1739973122,RESOLVE,,,,,,
2025-02-19 14:52:02 RESOLVE: Cannot resolve host address: <2.example.org>:1194 (No address associated with hostname)
2025-02-19 14:52:02 Waiting 2s seconds between connection attempt
2025-02-19 14:52:02 Data Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1500 tun_max_mtu:1600 headroom:136 payload:1768 tailroom:562 ET:0 ]
2025-02-19 14:52:02 MANAGEMENT: >STATE:1739973122,RESOLVE,,,,,,
2025-02-19 14:52:02 RESOLVE: Cannot resolve host address: <2.example.org>:1194 (No address associated with hostname)
2025-02-19 14:52:02 Could not determine IPv4/IPv6 protocol
2025-02-19 14:52:02 SIGUSR1[soft,Could not determine IPv4/IPv6 protocol] received, process restarting
2025-02-19 14:52:02 MANAGEMENT: >STATE:1739973122,RECONNECTING,Could not determine IPv4/IPv6 protocol,,,,,
2025-02-19 14:52:07 MANAGEMENT: CMD 'hold release'
2025-02-19 14:52:07 MANAGEMENT: CMD 'bytecount 2'
2025-02-19 14:52:07 MANAGEMENT: CMD 'state on'
2025-02-19 14:52:07 MANAGEMENT: CMD 'proxy NONE'
2025-02-19 14:52:08 Re-using SSL/TLS context
2025-02-19 14:52:08 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2025-02-19 14:52:08 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2025-02-19 14:52:08 LZO compression initializing
2025-02-19 14:52:08 Control Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1250 tun_max_mtu:0 headroom:126 payload:1600 tailroom:126 ET:0 ]
2025-02-19 14:52:08 MANAGEMENT: >STATE:1739973128,RESOLVE,,,,,,
2025-02-19 14:52:08 RESOLVE: Cannot resolve host address: <1.example.org>:1194 (No address associated with hostname)
2025-02-19 14:52:08 Waiting 2s seconds between connection attempt
2025-02-19 14:52:08 Data Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1500 tun_max_mtu:1600 headroom:136 payload:1768 tailroom:562 ET:0 ]
2025-02-19 14:52:08 MANAGEMENT: >STATE:1739973128,RESOLVE,,,,,,
2025-02-19 14:52:08 RESOLVE: Cannot resolve host address: <1.example.org>:1194 (No address associated with hostname)
2025-02-19 14:52:08 Could not determine IPv4/IPv6 protocol
2025-02-19 14:52:08 SIGUSR1[soft,Could not determine IPv4/IPv6 protocol] received, process restarting
2025-02-19 14:52:08 MANAGEMENT: >STATE:1739973128,RECONNECTING,Could not determine IPv4/IPv6 protocol,,,,,
2025-02-19 14:52:13 MANAGEMENT: CMD 'hold release'
2025-02-19 14:52:13 MANAGEMENT: CMD 'bytecount 2'
2025-02-19 14:52:13 MANAGEMENT: CMD 'state on'
2025-02-19 14:52:13 MANAGEMENT: CMD 'proxy NONE'
2025-02-19 14:52:14 Re-using SSL/TLS context
2025-02-19 14:52:14 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2025-02-19 14:52:14 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2025-02-19 14:52:14 LZO compression initializing
2025-02-19 14:52:14 Control Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1250 tun_max_mtu:0 headroom:126 payload:1600 tailroom:126 ET:0 ]
2025-02-19 14:52:14 MANAGEMENT: >STATE:1739973134,RESOLVE,,,,,,
2025-02-19 14:52:15 RESOLVE: Cannot resolve host address: <2.example.org>:1194 (No address associated with hostname)
2025-02-19 14:52:15 Data Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1500 tun_max_mtu:1600 headroom:136 payload:1768 tailroom:562 ET:0 ]
2025-02-19 14:52:15 MANAGEMENT: >STATE:1739973135,RESOLVE,,,,,,
2025-02-19 14:52:15 RESOLVE: Cannot resolve host address: <2.example.org>:1194 (No address associated with hostname)
2025-02-19 14:52:15 Could not determine IPv4/IPv6 protocol
2025-02-19 14:52:15 SIGUSR1[soft,Could not determine IPv4/IPv6 protocol] received, process restarting
2025-02-19 14:52:15 MANAGEMENT: >STATE:1739973135,RECONNECTING,Could not determine IPv4/IPv6 protocol,,,,,
2025-02-19 14:52:15 Waiting 2s seconds between connection attempt
2025-02-19 14:52:20 MANAGEMENT: CMD 'hold release'
2025-02-19 14:52:20 MANAGEMENT: CMD 'bytecount 2'
2025-02-19 14:52:20 MANAGEMENT: CMD 'state on'
2025-02-19 14:52:20 MANAGEMENT: CMD 'proxy NONE'
2025-02-19 14:52:21 Re-using SSL/TLS context
2025-02-19 14:52:21 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2025-02-19 14:52:21 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2025-02-19 14:52:21 LZO compression initializing
2025-02-19 14:52:21 Control Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1250 tun_max_mtu:0 headroom:126 payload:1600 tailroom:126 ET:0 ]
2025-02-19 14:52:21 MANAGEMENT: >STATE:1739973141,RESOLVE,,,,,,
2025-02-19 14:52:21 RESOLVE: Cannot resolve host address: <1.example.org>:1194 (No address associated with hostname)
2025-02-19 14:52:21 Data Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1500 tun_max_mtu:1600 headroom:136 payload:1768 tailroom:562 ET:0 ]
2025-02-19 14:52:21 MANAGEMENT: >STATE:1739973141,RESOLVE,,,,,,
2025-02-19 14:52:21 RESOLVE: Cannot resolve host address: <1.example.org>:1194 (No address associated with hostname)
2025-02-19 14:52:21 Could not determine IPv4/IPv6 protocol
2025-02-19 14:52:21 SIGUSR1[soft,Could not determine IPv4/IPv6 protocol] received, process restarting
2025-02-19 14:52:21 MANAGEMENT: >STATE:1739973141,RECONNECTING,Could not determine IPv4/IPv6 protocol,,,,,
2025-02-19 14:52:21 Waiting 2s seconds between connection attempt

and the "generated config":

# Config for OpenVPN 2.x
# Enables connection to GUI
management /data/user/0/de.blinkt.openvpn/cache/mgmtsocket unix
management-client
management-query-passwords
management-hold

setenv IV_GUI_VER "de.blinkt.openvpn 0.7.55" 
setenv IV_SSO openurl,webauth,crtext
setenv IV_PLAT_VER "35 15 arm64-v8a google shiba Pixel 8"
setenv IV_HWADDR ..
machine-readable-output
allow-recursive-routing
ifconfig-nowarn
client
verb 4
connect-retry 2 300
resolv-retry 60
dev tun
remote <1.example.org> 1194 udp
 connect-timeout  10
remote <2.example.org> 1194 udp
 connect-timeout  10
auth-user-pass
<ca>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----

</ca>
<key>
-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----
</key>
<cert>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</cert>
comp-lzo
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
...
-----END OpenVPN Static key V1-----
</tls-auth>
key-direction 1
verify-x509-name "<ca info here>"
remote-cert-tls server
auth SHA256
persist-tun
# persist-tun also enables pre resolving to avoid DNS resolve problem
preresolve
# Use system proxy setting
management-query-proxy
# Custom configuration options
# You are on your on own here :)
# These options found in the config file do not map to config settings:
resolv-retry infinite 
lport 0 
data-ciphers-fallback AES-256-CBC 

@cron2
Copy link

cron2 commented Feb 19, 2025

Thanks, I can reproduce it with a minimal config.

This works (sort of, there is nothing on 1194):

ca /home/gert/t_client_keys/ca.crt 
cert /home/gert/t_client_keys/cron2-gentoo.ov-amd64.crt
key /home/gert/t_client_keys/cron2-gentoo.ov-amd64.key     
remote-cert-tls server
tls-cert-profile insecure
dev tun

client
verb 4

remote v6only.v6.de 1194 udp
 connect-timeout  10

##lport 0

enabling the lport 0 part changes this to

2025-02-19 15:51:12 us=914150 RESOLVE: Cannot resolve host address: v6only.v6.de:1194 (No address associated with hostname)
2025-02-19 15:51:12 us=914165 Could not determine IPv4/IPv6 protocol
2025-02-19 15:51:12 us=914188 SIGUSR1[soft,Could not determine IPv4/IPv6 protocol] received, process restarting

so something in the local bind is messing up resolver state. preresolve or persist-tun do not make a difference either way.

@cron2
Copy link

cron2 commented Feb 19, 2025

Fails for me on Linux, does not fail on FreeBSD (both "git master")

@cron2
Copy link

cron2 commented Feb 19, 2025

So I can see why my config fails on linux

  • lport 0 triggers bind
  • proto udp on linux(!) will lead to an AF_INET bind
  • so it's correct (if surprising) that the subsequent try to do a DNS resolution will stick to AF_INET, and fail (no v4)
  • changing the udp to udp6 makes it succeed, with or without lport 0

arguably there is not so much we can do in this case, except "never bind on the client" (which already is the default) or force Linux to always do AF_INET6 for local bind (unless forced with udp4).

I'm not sure this is what is breaking @schwabe 's case, as that one does not break for me.

@rodakswe
Copy link

rodakswe commented Mar 7, 2025

I can confirm my mother has the same issue on the latest version on Android TV.
Since the update she can no longer resolve my hostname and connect to my server. Unfortunately since she lives abroad I'm unable to provide any logs more than "pictures".
The official OpenVPN client works fine both on her phone and windows pc.

@schwabe
Copy link
Owner

schwabe commented Mar 8, 2025

@rodakswe do you have a possiblity to share a config with private information removed? We are still struggling to find a way to reproduce the issue.

@rodakswe
Copy link

rodakswe commented Mar 8, 2025

@schwabe sure, do you need the server config as well or just the client?
The server is running on opnsense legacy server, not instance.

Edit: Just a small addition, the mooo.com domain is provided by afraid.org and my server is IPV4 only.

The error on the client is (AI extracted from picture):

14:46 Note: -- cipher is not set. OpenVPN versions before 2.5 defaulted to BF-CBC as fallback when cipher negotiation failed in this case. If you need this
fallback please add ' -- data-ciphers-fallback BF-CBC' to your configuration and/or add BF-CBC to -- data-ciphers. E.g. -- data-ciphers DEFAULT:BF-CBC
14:46 OpenVPN 2.7-icsopenvpn [git:v2.6_branched-576-ge2e36469] armeabi-v7a [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Feb
12 2025
14:46 library versions: OpenSSL 3.4.1 11 Feb 2025, LZO 2.10
14:46 RESOLVE: Cannot resolve host address: #REMOVED.mooo.com:58503 (No address associated with hostname)
14:46 RESOLVE: Cannot resolve host address: #REMOVED.mooo.com:58503 (No address associated with hostname)
14:46 Could not determine IPv4/IPv6 protocol
14:46 SIGUSR1[soft,Could not determine IPv4/IPv6 protocol] received, process restarting

The client config is here:

dev tun
persist-tun
persist-key
auth SHA512
client
resolv-retry infinite
remote #REMOVED.mooo.com 58503 udp
lport 0
verify-x509-name "C=SE, ST=#REMOVED, L=#REMOVED, O=#REMOVED, emailAddress=#REMOVED, CN=#REMOVED" subject
remote-cert-tls server
auth-user-pass
<ca>
-----BEGIN CERTIFICATE-----
#Removed
-----END CERTIFICATE-----

</ca>
<cert>
-----BEGIN CERTIFICATE-----
#Removed
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
#Removed
-----END PRIVATE KEY-----
</key>
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
#Removed
-----END OpenVPN Static key V1-----
</tls-auth>
key-direction 1

@Ricket
Copy link

Ricket commented Mar 8, 2025

I am experiencing the same issue in OpenVPN for Android 0.7.55 which I have installed from the Google Play Store. I attached my config & logs here: https://gist.github.com/Ricket/69e20224dba8a42519899387a51f37cf

@jimmycav
Copy link

jimmycav commented Mar 8, 2025

I also have this issue with the same error in the logs. Changing to OpenVPN 3 Core in the settings fixed it for me. Changing back to OpenVPN 2 brings the error back if that's helpful.

@calvinbui
Copy link

Same issue for me. Was working on older versions. Config generated by OPNsense 25.1.2. Switching to OpenVPN 3 Core doesn't help.

dev tun
persist-tun
persist-key
client
resolv-retry infinite
remote my.host.name 1194 udp4
lport 0
verify-x509-name "C=AU, ST=NSW, L=Sydney, O=opnsense-vpn, emailAddress=///REMOVED\\\, CN=vpn.cert.cuz" subject
remote-cert-tls server
auth-user-pass
<ca>
///REMOVED\\\

</ca>
<cert>
///REMOVED\\\
</cert>
<key>
///REMOVED\\\
</key>
<tls-crypt>
///REMOVED\\\
</tls-crypt>

@schwabe
Copy link
Owner

schwabe commented Mar 11, 2025

@calvinbui you are running into the lport 0 problem that @cron2 already described.

@Ricket your configuration file also has lport 0 in it.

@schwabe
Copy link
Owner

schwabe commented Mar 11, 2025

@jimmycav can you share the configuration file to see if you have the same issue and have lport 0 in your config as well or if it is a different issue?

@jimmycav
Copy link

Hi, yes I have lport 0 in my config.

@Ricket
Copy link

Ricket commented Mar 14, 2025

I was looking through the UI for which setting is the lport 0 and I found that under the "ADVANCED" tab, the "Enable Custom Options" was checked and when I click on Custom Options, the textbox says:

# These options found in the config file do not map to config settings:
resolv-retry infinite
lport 0
reneg-sec 64800

I might have added these settings to the ovpn file, or they came for free with the export in my openvpn server panel, but I haven't changed anything to break this BTW. I just use the android quick toggle to turn on my VPN, and it was working a while ago, and then it stopped working and I came here. So something changed that broke this, and could be fixed, right?

In any case, I can confirm that removing lport 0 fixes my issue and I can connect to VPN again. Thank you!!

@simon-aschemeier
Copy link

I also had this problem (v 0.7.55 via Google Play), immediately after the last update from Samsung (Galaxy S24, build from 3 Feb 2025). I did the update when I was not near my Open VPN server and suspected a software or hardware problem with the server. I just removed lport 0 from my custom config (I didn't even know I had set it to that value) - it works again right away. So I would rather suspect a changed behaviour of Android here, but an update of this (excellent!) app might still help.

@jmpocheau
Copy link

I also had this problem.
Either removing lport 0 from my config or switching to OpenVPN 3 Core solved this issue.
Hope this helps.

@mrgasket
Copy link

I also experienced this problem after update of no longer resolving FDQN with lport 0 in config. I was able to connect with existing profile using direct IP address instead of FDQN (which required resolving) while the lport 0 was in config. Commented lport 0 out on client in existing profile and it resumed resolving the FDQN and functions as before the update and as expected.

@schwabe
Copy link
Owner

schwabe commented Mar 17, 2025

This should be fixed with v0.7.56 (commit 9007b57)

@schwabe schwabe closed this as completed Mar 17, 2025
@mmokrejs
Copy link

mmokrejs commented Mar 20, 2025

I just landed here because I opened #1807 . I do not know what version I had before the upgrade but a few hrs ago my phone installed v0.7.56 (commit 9007b57) and since that it cannot connect anymore to server. Using OpenVPN 3 Core.

cron2 added a commit to OpenVPN/openvpn that referenced this issue Mar 24, 2025
'lport <anything>' used to trigger 'do socket bind', which is not
useful in itself for the 'lport 0' case (port 0 -> OS assigns a
random port, as it is done for unbound sockets) unless also binding
to a particular local IP address ('--local 192.0.2.1').

The trigger for 'lport has been used, do socket bind' is
ce.local_port_defined -> change the code to test for "0", and
only set this for non-0 ports (NOTE: this is a string match,
so if you really really want the old "lport 0" behaviour, using
"lport 00" still does that...).

The ce.local_port value is still set, so '--lport 0' together
with '--local 192.0.2.1' will give you a random port number
bound to that IP address - without 'lport 0' it would default
to 1194 or the value of '--port' (if not using '--rport').

Summary:  socket bind is now only done if one of these is set
  - --lport <port> with <port> not "0"
  - --bind  (default on the client is "--nobind")
  - --local <address>

Github: schwabe/ics-openvpn#1794

Change-Id: I1976307a7643c82f31d55ca32c79cbe64b6fffc6
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Arne Schwabe <arne-openvpn@rfc2549.org>
Message-Id: <20250324182735.12657-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg31222.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests