Configuration works on Windows but not iOS (iPad 7, iPhone 13mini)

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
horo
OpenVpn Newbie
Posts: 1
Joined: Sun Dec 18, 2022 3:24 am

Configuration works on Windows but not iOS (iPad 7, iPhone 13mini)

Post by horo » Sun Jan 22, 2023 1:22 pm

My configuration works perfectly fine on a Windows 10 Desktop but if I use it on iOS I cannot open any page on any browser. They all fail with "page unreacheable" after long seconds of loading. In the OpenVPN connect app, everything is green. it seems to say I am connected to the server.

What I just want is all the traffic to go through the VPN server, I do not need the client to be able to access other machines in the VPN intranet.

Client logs:

Code: Select all

[Jan 22, 2023, 13:49:33] START CONNECTION

[Jan 22, 2023, 13:49:33] ----- OpenVPN Start -----
OpenVPN core 3.git::081bfebe ios arm64 64-bit

[Jan 22, 2023, 13:49:33] OpenVPN core 3.git::081bfebe ios arm64 64-bit

[Jan 22, 2023, 13:49:33] Frame=512/2048/512 mssfix-ctrl=1250

[Jan 22, 2023, 13:49:33] UNUSED OPTIONS
4 [resolv-retry] [infinite]
5 [nobind]
6 [persist-key]
7 [persist-tun]
10 [verb] [6]

[Jan 22, 2023, 13:49:33] EVENT: RESOLVE

[Jan 22, 2023, 13:49:33] Contacting {my-server-public-ip}:1194 via UDP

[Jan 22, 2023, 13:49:33] EVENT: WAIT

[Jan 22, 2023, 13:49:33] Connecting to [{myserver.mydomain.com}]:1194 ({my-server-public-ip}) via UDPv4

[Jan 22, 2023, 13:49:33] EVENT: CONNECTING

[Jan 22, 2023, 13:49:33] Tunnel Options:V4,dev-type tun,link-mtu 1557,tun-mtu 1500,proto UDPv4,keydir 1,cipher AES-256-CBC,auth SHA1,keysize 256,tls-auth,key-method 2,tls-client

[Jan 22, 2023, 13:49:33] Creds: UsernameEmpty/PasswordEmpty

[Jan 22, 2023, 13:49:33] Peer Info:
IV_VER=3.git::081bfebe
IV_PLAT=ios
IV_NCP=2
IV_TCPNL=1
IV_PROTO=30
IV_CIPHERS=AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305:AES-256-CBC
IV_AUTO_SESS=1
IV_GUI_VER=net.openvpn.connect.ios_3.3.2-5086
IV_SSO=webauth,openurl,crtext


[Jan 22, 2023, 13:49:34] VERIFY OK: depth=1, /C=US/ST=CA/L=SanFrancisco/O=Fort-Funston/OU=changeme/CN=ovpn-horo/name=changeme/emailAddress=mail@host.domain, signature: RSA-SHA256

[Jan 22, 2023, 13:49:34] VERIFY OK: depth=0, /C=US/ST=CA/L=SanFrancisco/O=Fort-Funston/OU=changeme/CN=server/name=changeme/emailAddress=mail@host.domain, signature: RSA-SHA1

[Jan 22, 2023, 13:49:35] SSL Handshake: peer certificate: CN=server, 4096 bit RSA, cipher: TLS_AES_256_GCM_SHA384  TLSv1.3 Kx=any      Au=any  Enc=AESGCM(256) Mac=AEAD


[Jan 22, 2023, 13:49:35] Session is ACTIVE

[Jan 22, 2023, 13:49:35] EVENT: WARN TLS: received certificate signed with SHA1. Please inform your admin to upgrade to a stronger algorithm. Support for SHA1 signatures will be dropped in the future

[Jan 22, 2023, 13:49:35] EVENT: GET_CONFIG

[Jan 22, 2023, 13:49:35] Sending PUSH_REQUEST to server...

[Jan 22, 2023, 13:49:35] OPTIONS:
0 [redirect-gateway] [def1] [bypass-dhcp]
1 [dhcp-option] [DNS] [10.8.0.1]
2 [route-gateway] [10.8.0.1]
3 [topology] [subnet]
4 [ping] [10]
5 [ping-restart] [120]
6 [ifconfig] [10.8.0.2] [255.255.255.0]
7 [peer-id] [0]
8 [cipher] [AES-256-GCM]


[Jan 22, 2023, 13:49:35] PROTOCOL OPTIONS:
  cipher: AES-256-GCM
  digest: NONE
  key-derivation: OpenVPN PRF
  compress: NONE
  peer ID: 0
  control channel: tls-auth enabled

[Jan 22, 2023, 13:49:35] EVENT: ASSIGN_IP

[Jan 22, 2023, 13:49:35] NIP: preparing TUN network settings

[Jan 22, 2023, 13:49:35] NIP: init TUN network settings with endpoint: {my-server-public-ip}

[Jan 22, 2023, 13:49:35] NIP: adding IPv4 address to network settings 10.8.0.2/255.255.255.0

[Jan 22, 2023, 13:49:35] NIP: adding (included) IPv4 route 10.8.0.0/24

[Jan 22, 2023, 13:49:35] NIP: redirecting all IPv4 traffic to TUN interface

[Jan 22, 2023, 13:49:35] NIP: adding DNS 10.8.0.1

[Jan 22, 2023, 13:49:35] Connected via NetworkExtensionTUN

[Jan 22, 2023, 13:49:35] EVENT: CONNECTED {myserver.mydomain.com}:1194 ({my-server-public-ip}) via /UDPv4 on NetworkExtensionTUN/10.8.0.2/ gw=[/]
Server log:

Code: Select all

2023-01-22 21:49:13 us=797588 DEPRECATED OPTION: --cipher set to 'AES-256-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM). Future OpenVPN version will ignore --cipher for cipher negotiations. Add 'AES-256-CBC' to --data-ciphers or change --cipher 'AES-256-CBC' to --data-ciphers-fallback 'AES-256-CBC' to silence this warning.
2023-01-22 21:49:13 us=799165 Current Parameter Settings:
2023-01-22 21:49:13 us=799178   config = '/etc/openvpn/server.conf'
2023-01-22 21:49:13 us=799185   mode = 1
2023-01-22 21:49:13 us=799191   persist_config = DISABLED
2023-01-22 21:49:13 us=799197   persist_mode = 1
2023-01-22 21:49:13 us=799202   show_ciphers = DISABLED
2023-01-22 21:49:13 us=799208   show_digests = DISABLED
2023-01-22 21:49:13 us=799213   show_engines = DISABLED
2023-01-22 21:49:13 us=799219   genkey = DISABLED
2023-01-22 21:49:13 us=799224   genkey_filename = '[UNDEF]'
2023-01-22 21:49:13 us=799230   key_pass_file = '[UNDEF]'
2023-01-22 21:49:13 us=799235   show_tls_ciphers = DISABLED
2023-01-22 21:49:13 us=799241   connect_retry_max = 0
2023-01-22 21:49:13 us=799246 Connection profiles [0]:
2023-01-22 21:49:13 us=799252   proto = udp
2023-01-22 21:49:13 us=799258   local = '192.168.1.128'
2023-01-22 21:49:13 us=799263   local_port = '1194'
2023-01-22 21:49:13 us=799269   remote = '[UNDEF]'
2023-01-22 21:49:13 us=799275   remote_port = '1194'
2023-01-22 21:49:13 us=799280   remote_float = DISABLED
2023-01-22 21:49:13 us=799286   bind_defined = DISABLED
2023-01-22 21:49:13 us=799291   bind_local = ENABLED
2023-01-22 21:49:13 us=799297   bind_ipv6_only = DISABLED
2023-01-22 21:49:13 us=799302   connect_retry_seconds = 5
2023-01-22 21:49:13 us=799308   connect_timeout = 120
2023-01-22 21:49:13 us=799313   socks_proxy_server = '[UNDEF]'
2023-01-22 21:49:13 us=799319   socks_proxy_port = '[UNDEF]'
2023-01-22 21:49:13 us=799324   tun_mtu = 1500
2023-01-22 21:49:13 us=799330   tun_mtu_defined = ENABLED
2023-01-22 21:49:13 us=799335   link_mtu = 1500
2023-01-22 21:49:13 us=799341   link_mtu_defined = DISABLED
2023-01-22 21:49:13 us=799346   tun_mtu_extra = 0
2023-01-22 21:49:13 us=799352   tun_mtu_extra_defined = DISABLED
2023-01-22 21:49:13 us=799358   mtu_discover_type = -1
2023-01-22 21:49:13 us=799363   fragment = 0
2023-01-22 21:49:13 us=799369   mssfix = 1450
2023-01-22 21:49:13 us=799374   explicit_exit_notification = 1
2023-01-22 21:49:13 us=799380   tls_auth_file = '[INLINE]'
2023-01-22 21:49:13 us=799386   key_direction = 0
2023-01-22 21:49:13 us=799391   tls_crypt_file = '[UNDEF]'
2023-01-22 21:49:13 us=799397   tls_crypt_v2_file = '[UNDEF]'
2023-01-22 21:49:13 us=799402 Connection profiles END
2023-01-22 21:49:13 us=799408   remote_random = DISABLED
2023-01-22 21:49:13 us=799413   ipchange = '[UNDEF]'
2023-01-22 21:49:13 us=799419   dev = 'tun'
2023-01-22 21:49:13 us=799424   dev_type = '[UNDEF]'
2023-01-22 21:49:13 us=799430   dev_node = '[UNDEF]'
2023-01-22 21:49:13 us=799435   lladdr = '[UNDEF]'
2023-01-22 21:49:13 us=799441   topology = 3
2023-01-22 21:49:13 us=799447   ifconfig_local = '10.8.0.1'
2023-01-22 21:49:13 us=799452   ifconfig_remote_netmask = '255.255.255.0'
2023-01-22 21:49:13 us=799458   ifconfig_noexec = DISABLED
2023-01-22 21:49:13 us=799463   ifconfig_nowarn = DISABLED
2023-01-22 21:49:13 us=799469   ifconfig_ipv6_local = '[UNDEF]'
2023-01-22 21:49:13 us=799474   ifconfig_ipv6_netbits = 0
2023-01-22 21:49:13 us=799480   ifconfig_ipv6_remote = '[UNDEF]'
2023-01-22 21:49:13 us=799486   shaper = 0
2023-01-22 21:49:13 us=799493   mtu_test = 0
2023-01-22 21:49:13 us=799499   mlock = DISABLED
2023-01-22 21:49:13 us=799505   keepalive_ping = 10
2023-01-22 21:49:13 us=799510   keepalive_timeout = 120
2023-01-22 21:49:13 us=799516   inactivity_timeout = 0
2023-01-22 21:49:13 us=799521   ping_send_timeout = 10
2023-01-22 21:49:13 us=799527   ping_rec_timeout = 240
2023-01-22 21:49:13 us=799532   ping_rec_timeout_action = 2
2023-01-22 21:49:13 us=799538   ping_timer_remote = DISABLED
2023-01-22 21:49:13 us=799543   remap_sigusr1 = 0
2023-01-22 21:49:13 us=799549   persist_tun = ENABLED
2023-01-22 21:49:13 us=799554   persist_local_ip = DISABLED
2023-01-22 21:49:13 us=799565   persist_remote_ip = DISABLED
2023-01-22 21:49:13 us=799570   persist_key = ENABLED
2023-01-22 21:49:13 us=799576   passtos = DISABLED
2023-01-22 21:49:13 us=799581   resolve_retry_seconds = 1000000000
2023-01-22 21:49:13 us=799587   resolve_in_advance = DISABLED
2023-01-22 21:49:13 us=799592   username = 'nobody'
2023-01-22 21:49:13 us=799598   groupname = 'nogroup'
2023-01-22 21:49:13 us=799603   chroot_dir = '[UNDEF]'
2023-01-22 21:49:13 us=799609   cd_dir = '/etc/openvpn'
2023-01-22 21:49:13 us=799614   writepid = '/run/openvpn/server.pid'
2023-01-22 21:49:13 us=799620   up_script = '[UNDEF]'
2023-01-22 21:49:13 us=799625   down_script = '[UNDEF]'
2023-01-22 21:49:13 us=799631   down_pre = DISABLED
2023-01-22 21:49:13 us=799636   up_restart = DISABLED
2023-01-22 21:49:13 us=799642   up_delay = DISABLED
2023-01-22 21:49:13 us=799647   daemon = ENABLED
2023-01-22 21:49:13 us=799653   inetd = 0
2023-01-22 21:49:13 us=799658   log = ENABLED
2023-01-22 21:49:13 us=799664   suppress_timestamps = DISABLED
2023-01-22 21:49:13 us=799669   machine_readable_output = DISABLED
2023-01-22 21:49:13 us=799675   nice = 0
2023-01-22 21:49:13 us=799680   verbosity = 4
2023-01-22 21:49:13 us=799686   mute = 0
2023-01-22 21:49:13 us=799691   gremlin = 0
2023-01-22 21:49:13 us=799697   status_file = '/var/log/openvpn/openvpn-status.log'
2023-01-22 21:49:13 us=799702   status_file_version = 1
2023-01-22 21:49:13 us=799708   status_file_update_freq = 10
2023-01-22 21:49:13 us=799713   occ = ENABLED
2023-01-22 21:49:13 us=799719   rcvbuf = 0
2023-01-22 21:49:13 us=799724   sndbuf = 0
2023-01-22 21:49:13 us=799730   mark = 0
2023-01-22 21:49:13 us=799735   sockflags = 0
2023-01-22 21:49:13 us=799741   fast_io = DISABLED
2023-01-22 21:49:13 us=799747   comp.alg = 0
2023-01-22 21:49:13 us=799752   comp.flags = 0
2023-01-22 21:49:13 us=799758   route_script = '[UNDEF]'
2023-01-22 21:49:13 us=799763   route_default_gateway = '10.8.0.2'
2023-01-22 21:49:13 us=799769   route_default_metric = 0
2023-01-22 21:49:13 us=799775   route_noexec = DISABLED
2023-01-22 21:49:13 us=799780   route_delay = 0
2023-01-22 21:49:13 us=799786   route_delay_window = 30
2023-01-22 21:49:13 us=799791   route_delay_defined = DISABLED
2023-01-22 21:49:13 us=799797   route_nopull = DISABLED
2023-01-22 21:49:13 us=799803   route_gateway_via_dhcp = DISABLED
2023-01-22 21:49:13 us=799808   allow_pull_fqdn = DISABLED
2023-01-22 21:49:13 us=799814   management_addr = '[UNDEF]'
2023-01-22 21:49:13 us=799819   management_port = '[UNDEF]'
2023-01-22 21:49:13 us=799825   management_user_pass = '[UNDEF]'
2023-01-22 21:49:13 us=799831   management_log_history_cache = 250
2023-01-22 21:49:13 us=799836   management_echo_buffer_size = 100
2023-01-22 21:49:13 us=799842   management_write_peer_info_file = '[UNDEF]'
2023-01-22 21:49:13 us=799848   management_client_user = '[UNDEF]'
2023-01-22 21:49:13 us=799854   management_client_group = '[UNDEF]'
2023-01-22 21:49:13 us=799859   management_flags = 0
2023-01-22 21:49:13 us=799865   shared_secret_file = '[UNDEF]'
2023-01-22 21:49:13 us=799871   key_direction = 0
2023-01-22 21:49:13 us=799877   ciphername = 'AES-256-CBC'
2023-01-22 21:49:13 us=799882   ncp_enabled = ENABLED
2023-01-22 21:49:13 us=799888   ncp_ciphers = 'AES-256-GCM:AES-128-GCM:AES-256-CBC'
2023-01-22 21:49:13 us=799894   authname = 'SHA1'
2023-01-22 21:49:13 us=799899   prng_hash = 'SHA1'
2023-01-22 21:49:13 us=799905   prng_nonce_secret_len = 16
2023-01-22 21:49:13 us=799911   keysize = 0
2023-01-22 21:49:13 us=799917   engine = DISABLED
2023-01-22 21:49:13 us=799922   replay = ENABLED
2023-01-22 21:49:13 us=799928   mute_replay_warnings = DISABLED
2023-01-22 21:49:13 us=799934   replay_window = 64
2023-01-22 21:49:13 us=799939   replay_time = 15
2023-01-22 21:49:13 us=799945   packet_id_file = '[UNDEF]'
2023-01-22 21:49:13 us=799950   test_crypto = DISABLED
2023-01-22 21:49:13 us=799956   tls_server = ENABLED
2023-01-22 21:49:13 us=799962   tls_client = DISABLED
2023-01-22 21:49:13 us=799967   ca_file = 'ca.crt'
2023-01-22 21:49:13 us=799976   ca_path = '[UNDEF]'
2023-01-22 21:49:13 us=799982   dh_file = 'dh2048.pem'
2023-01-22 21:49:13 us=799987   cert_file = 'server.crt'
2023-01-22 21:49:13 us=799993   extra_certs_file = '[UNDEF]'
2023-01-22 21:49:13 us=799999   priv_key_file = 'server.key'
2023-01-22 21:49:13 us=800005   pkcs12_file = '[UNDEF]'
2023-01-22 21:49:13 us=800011   cipher_list = 'DEFAULT:@SECLEVEL=0'
2023-01-22 21:49:13 us=800016   cipher_list_tls13 = '[UNDEF]'
2023-01-22 21:49:13 us=800022   tls_cert_profile = '[UNDEF]'
2023-01-22 21:49:13 us=800028   tls_verify = '[UNDEF]'
2023-01-22 21:49:13 us=800033   tls_export_cert = '[UNDEF]'
2023-01-22 21:49:13 us=800039   verify_x509_type = 0
2023-01-22 21:49:13 us=800044   verify_x509_name = '[UNDEF]'
2023-01-22 21:49:13 us=800050   crl_file = '[UNDEF]'
2023-01-22 21:49:13 us=800056   ns_cert_type = 0
2023-01-22 21:49:13 us=800061   remote_cert_ku[i] = 0
2023-01-22 21:49:13 us=800067   remote_cert_ku[i] = 0
2023-01-22 21:49:13 us=800073   remote_cert_ku[i] = 0
2023-01-22 21:49:13 us=800078   remote_cert_ku[i] = 0
2023-01-22 21:49:13 us=800084   remote_cert_ku[i] = 0
2023-01-22 21:49:13 us=800089   remote_cert_ku[i] = 0
2023-01-22 21:49:13 us=800095   remote_cert_ku[i] = 0
2023-01-22 21:49:13 us=800101   remote_cert_ku[i] = 0
2023-01-22 21:49:13 us=800106   remote_cert_ku[i] = 0
2023-01-22 21:49:13 us=800112   remote_cert_ku[i] = 0
2023-01-22 21:49:13 us=800117   remote_cert_ku[i] = 0
2023-01-22 21:49:13 us=800123   remote_cert_ku[i] = 0
2023-01-22 21:49:13 us=800129   remote_cert_ku[i] = 0
2023-01-22 21:49:13 us=800134   remote_cert_ku[i] = 0
2023-01-22 21:49:13 us=800140   remote_cert_ku[i] = 0
2023-01-22 21:49:13 us=800145   remote_cert_ku[i] = 0
2023-01-22 21:49:13 us=800151   remote_cert_eku = '[UNDEF]'
2023-01-22 21:49:13 us=800157   ssl_flags = 0
2023-01-22 21:49:13 us=800162   tls_timeout = 2
2023-01-22 21:49:13 us=800168   renegotiate_bytes = -1
2023-01-22 21:49:13 us=800173   renegotiate_packets = 0
2023-01-22 21:49:13 us=800179   renegotiate_seconds = 3600
2023-01-22 21:49:13 us=800185   handshake_window = 60
2023-01-22 21:49:13 us=800190   transition_window = 3600
2023-01-22 21:49:13 us=800196   single_session = DISABLED
2023-01-22 21:49:13 us=800202   push_peer_info = DISABLED
2023-01-22 21:49:13 us=800207   tls_exit = DISABLED
2023-01-22 21:49:13 us=800213   tls_crypt_v2_metadata = '[UNDEF]'
2023-01-22 21:49:13 us=800218   pkcs11_protected_authentication = DISABLED
2023-01-22 21:49:13 us=800224   pkcs11_protected_authentication = DISABLED
2023-01-22 21:49:13 us=800230   pkcs11_protected_authentication = DISABLED
2023-01-22 21:49:13 us=800235   pkcs11_protected_authentication = DISABLED
2023-01-22 21:49:13 us=800241   pkcs11_protected_authentication = DISABLED
2023-01-22 21:49:13 us=800246   pkcs11_protected_authentication = DISABLED
2023-01-22 21:49:13 us=800252   pkcs11_protected_authentication = DISABLED
2023-01-22 21:49:13 us=800258   pkcs11_protected_authentication = DISABLED
2023-01-22 21:49:13 us=800263   pkcs11_protected_authentication = DISABLED
2023-01-22 21:49:13 us=800269   pkcs11_protected_authentication = DISABLED
2023-01-22 21:49:13 us=800274   pkcs11_protected_authentication = DISABLED
2023-01-22 21:49:13 us=800280   pkcs11_protected_authentication = DISABLED
2023-01-22 21:49:13 us=800285   pkcs11_protected_authentication = DISABLED
2023-01-22 21:49:13 us=800291   pkcs11_protected_authentication = DISABLED
2023-01-22 21:49:13 us=800296   pkcs11_protected_authentication = DISABLED
2023-01-22 21:49:13 us=800302   pkcs11_protected_authentication = DISABLED
2023-01-22 21:49:13 us=800308   pkcs11_private_mode = 00000000
2023-01-22 21:49:13 us=800313   pkcs11_private_mode = 00000000
2023-01-22 21:49:13 us=800319   pkcs11_private_mode = 00000000
2023-01-22 21:49:13 us=800325   pkcs11_private_mode = 00000000
2023-01-22 21:49:13 us=800330   pkcs11_private_mode = 00000000
2023-01-22 21:49:13 us=800336   pkcs11_private_mode = 00000000
2023-01-22 21:49:13 us=800341   pkcs11_private_mode = 00000000
2023-01-22 21:49:13 us=800347   pkcs11_private_mode = 00000000
2023-01-22 21:49:13 us=800356   pkcs11_private_mode = 00000000
2023-01-22 21:49:13 us=800362   pkcs11_private_mode = 00000000
2023-01-22 21:49:13 us=800368   pkcs11_private_mode = 00000000
2023-01-22 21:49:13 us=800373   pkcs11_private_mode = 00000000
2023-01-22 21:49:13 us=800379   pkcs11_private_mode = 00000000
2023-01-22 21:49:13 us=800384   pkcs11_private_mode = 00000000
2023-01-22 21:49:13 us=800390   pkcs11_private_mode = 00000000
2023-01-22 21:49:13 us=800395   pkcs11_private_mode = 00000000
2023-01-22 21:49:13 us=800401   pkcs11_cert_private = DISABLED
2023-01-22 21:49:13 us=800406   pkcs11_cert_private = DISABLED
2023-01-22 21:49:13 us=800412   pkcs11_cert_private = DISABLED
2023-01-22 21:49:13 us=800418   pkcs11_cert_private = DISABLED
2023-01-22 21:49:13 us=800423   pkcs11_cert_private = DISABLED
2023-01-22 21:49:13 us=800429   pkcs11_cert_private = DISABLED
2023-01-22 21:49:13 us=800434   pkcs11_cert_private = DISABLED
2023-01-22 21:49:13 us=800440   pkcs11_cert_private = DISABLED
2023-01-22 21:49:13 us=800445   pkcs11_cert_private = DISABLED
2023-01-22 21:49:13 us=800451   pkcs11_cert_private = DISABLED
2023-01-22 21:49:13 us=800456   pkcs11_cert_private = DISABLED
2023-01-22 21:49:13 us=800462   pkcs11_cert_private = DISABLED
2023-01-22 21:49:13 us=800467   pkcs11_cert_private = DISABLED
2023-01-22 21:49:13 us=800473   pkcs11_cert_private = DISABLED
2023-01-22 21:49:13 us=800478   pkcs11_cert_private = DISABLED
2023-01-22 21:49:13 us=800484   pkcs11_cert_private = DISABLED
2023-01-22 21:49:13 us=800489   pkcs11_pin_cache_period = -1
2023-01-22 21:49:13 us=800495   pkcs11_id = '[UNDEF]'
2023-01-22 21:49:13 us=800501   pkcs11_id_management = DISABLED
2023-01-22 21:49:13 us=800507   server_network = 10.8.0.0
2023-01-22 21:49:13 us=800513   server_netmask = 255.255.255.0
2023-01-22 21:49:13 us=800519   server_network_ipv6 = ::
2023-01-22 21:49:13 us=800525   server_netbits_ipv6 = 0
2023-01-22 21:49:13 us=800531   server_bridge_ip = 0.0.0.0
2023-01-22 21:49:13 us=800537   server_bridge_netmask = 0.0.0.0
2023-01-22 21:49:13 us=800543   server_bridge_pool_start = 0.0.0.0
2023-01-22 21:49:13 us=800549   server_bridge_pool_end = 0.0.0.0
2023-01-22 21:49:13 us=800555   push_entry = 'redirect-gateway def1 bypass-dhcp'
2023-01-22 21:49:13 us=800560   push_entry = 'dhcp-option DNS 10.8.0.1'
2023-01-22 21:49:13 us=800566   push_entry = 'route-gateway 10.8.0.1'
2023-01-22 21:49:13 us=800572   push_entry = 'topology subnet'
2023-01-22 21:49:13 us=800577   push_entry = 'ping 10'
2023-01-22 21:49:13 us=800583   push_entry = 'ping-restart 120'
2023-01-22 21:49:13 us=800588   ifconfig_pool_defined = ENABLED
2023-01-22 21:49:13 us=800594   ifconfig_pool_start = 10.8.0.2
2023-01-22 21:49:13 us=800603   ifconfig_pool_end = 10.8.0.254
2023-01-22 21:49:13 us=800610   ifconfig_pool_netmask = 255.255.255.0
2023-01-22 21:49:13 us=800616   ifconfig_pool_persist_filename = '/var/log/openvpn/ipp.txt'
2023-01-22 21:49:13 us=800621   ifconfig_pool_persist_refresh_freq = 600
2023-01-22 21:49:13 us=800627   ifconfig_ipv6_pool_defined = DISABLED
2023-01-22 21:49:13 us=800633   ifconfig_ipv6_pool_base = ::
2023-01-22 21:49:13 us=800639   ifconfig_ipv6_pool_netbits = 0
2023-01-22 21:49:13 us=800644   n_bcast_buf = 256
2023-01-22 21:49:13 us=800650   tcp_queue_limit = 64
2023-01-22 21:49:13 us=800656   real_hash_size = 256
2023-01-22 21:49:13 us=800662   virtual_hash_size = 256
2023-01-22 21:49:13 us=800667   client_connect_script = '[UNDEF]'
2023-01-22 21:49:13 us=800673   learn_address_script = '[UNDEF]'
2023-01-22 21:49:13 us=800679   client_disconnect_script = '[UNDEF]'
2023-01-22 21:49:13 us=800684   client_config_dir = '[UNDEF]'
2023-01-22 21:49:13 us=800690   ccd_exclusive = DISABLED
2023-01-22 21:49:13 us=800695   tmp_dir = '/tmp'
2023-01-22 21:49:13 us=800701   push_ifconfig_defined = DISABLED
2023-01-22 21:49:13 us=800707   push_ifconfig_local = 0.0.0.0
2023-01-22 21:49:13 us=800713   push_ifconfig_remote_netmask = 0.0.0.0
2023-01-22 21:49:13 us=800719   push_ifconfig_ipv6_defined = DISABLED
2023-01-22 21:49:13 us=800725   push_ifconfig_ipv6_local = ::/0
2023-01-22 21:49:13 us=800733   push_ifconfig_ipv6_remote = ::
2023-01-22 21:49:13 us=800739   enable_c2c = DISABLED
2023-01-22 21:49:13 us=800745   duplicate_cn = DISABLED
2023-01-22 21:49:13 us=800751   cf_max = 0
2023-01-22 21:49:13 us=800756   cf_per = 0
2023-01-22 21:49:13 us=800762   max_clients = 1024
2023-01-22 21:49:13 us=800768   max_routes_per_client = 256
2023-01-22 21:49:13 us=800773   auth_user_pass_verify_script = '[UNDEF]'
2023-01-22 21:49:13 us=800779   auth_user_pass_verify_script_via_file = DISABLED
2023-01-22 21:49:13 us=800785   auth_token_generate = DISABLED
2023-01-22 21:49:13 us=800790   auth_token_lifetime = 0
2023-01-22 21:49:13 us=800796   auth_token_secret_file = '[UNDEF]'
2023-01-22 21:49:13 us=800802   port_share_host = '[UNDEF]'
2023-01-22 21:49:13 us=800807   port_share_port = '[UNDEF]'
2023-01-22 21:49:13 us=800813   vlan_tagging = DISABLED
2023-01-22 21:49:13 us=800819   vlan_accept = all
2023-01-22 21:49:13 us=800824   vlan_pvid = 1
2023-01-22 21:49:13 us=800830   client = DISABLED
2023-01-22 21:49:13 us=800836   pull = DISABLED
2023-01-22 21:49:13 us=800841   auth_user_pass_file = '[UNDEF]'
2023-01-22 21:49:13 us=800848 OpenVPN 2.5.5 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Jul 14 2022
2023-01-22 21:49:13 us=800859 library versions: OpenSSL 3.0.2 15 Mar 2022, LZO 2.10
2023-01-22 21:49:13 us=801006 net_route_v4_best_gw query: dst 0.0.0.0
2023-01-22 21:49:13 us=801060 net_route_v4_best_gw result: via 192.168.1.1 dev enp4s0
2023-01-22 21:49:13 us=801086 NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x.  Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use the same subnet.
2023-01-22 21:49:13 us=801807 Diffie-Hellman initialized with 2048 bit key
2023-01-22 21:49:13 us=801823 No valid translation found for TLS cipher '@SECLEVEL=0'
2023-01-22 21:49:13 us=803876 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2023-01-22 21:49:13 us=803891 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2023-01-22 21:49:13 us=803901 TLS-Auth MTU parms [ L:1621 D:1184 EF:66 EB:0 ET:0 EL:3 ]
2023-01-22 21:49:13 us=804075 TUN/TAP device tun0 opened
2023-01-22 21:49:13 us=804101 do_ifconfig, ipv4=1, ipv6=0
2023-01-22 21:49:13 us=804119 net_iface_mtu_set: mtu 1500 for tun0
2023-01-22 21:49:13 us=804167 net_iface_up: set tun0 up
2023-01-22 21:49:13 us=804565 net_addr_v4_add: 10.8.0.1/24 dev tun0
2023-01-22 21:49:13 us=805032 Data Channel MTU parms [ L:1621 D:1450 EF:121 EB:406 ET:0 EL:3 ]
2023-01-22 21:49:13 us=805173 Could not determine IPv4/IPv6 protocol. Using AF_INET
2023-01-22 21:49:13 us=805191 Socket Buffers: R=[212992->212992] S=[212992->212992]
2023-01-22 21:49:13 us=805204 UDPv4 link local (bound): [AF_INET]192.168.1.128:1194
2023-01-22 21:49:13 us=805210 UDPv4 link remote: [AF_UNSPEC]
2023-01-22 21:49:13 us=805219 GID set to nogroup
2023-01-22 21:49:13 us=805229 UID set to nobody
2023-01-22 21:49:13 us=805242 MULTI: multi_init called, r=256 v=256
2023-01-22 21:49:13 us=805260 IFCONFIG POOL IPv4: base=10.8.0.2 size=253
2023-01-22 21:49:13 us=805278 ifconfig_pool_read(), in='myeon-ipad,10.8.0.2,'
2023-01-22 21:49:13 us=805295 succeeded -> ifconfig_pool_set(hand=0)
2023-01-22 21:49:13 us=805302 ifconfig_pool_read(), in='myeon-phone,10.8.0.3,'
2023-01-22 21:49:13 us=805308 succeeded -> ifconfig_pool_set(hand=1)
2023-01-22 21:49:13 us=805313 ifconfig_pool_read(), in='horo,10.8.0.4,'
2023-01-22 21:49:13 us=805319 succeeded -> ifconfig_pool_set(hand=2)
2023-01-22 21:49:13 us=805324 ifconfig_pool_read(), in='myeon,10.8.0.8,'
2023-01-22 21:49:13 us=805330 succeeded -> ifconfig_pool_set(hand=6)
2023-01-22 21:49:13 us=805337 IFCONFIG POOL LIST
2023-01-22 21:49:13 us=805343 myeon-ipad,10.8.0.2,
2023-01-22 21:49:13 us=805349 myeon-phone,10.8.0.3,
2023-01-22 21:49:13 us=805354 horo,10.8.0.4,
2023-01-22 21:49:13 us=805360 myeon,10.8.0.8,
2023-01-22 21:49:13 us=805443 Initialization Sequence Completed
2023-01-22 21:49:33 us=651744 MULTI: multi_create_instance called
2023-01-22 21:49:33 us=651888 82.217.167.181:59244 Re-using SSL/TLS context
2023-01-22 21:49:33 us=652066 82.217.167.181:59244 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2023-01-22 21:49:33 us=652115 82.217.167.181:59244 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
2023-01-22 21:49:33 us=652376 82.217.167.181:59244 Control Channel MTU parms [ L:1621 D:1184 EF:66 EB:0 ET:0 EL:3 ]
2023-01-22 21:49:33 us=652445 82.217.167.181:59244 Data Channel MTU parms [ L:1621 D:1450 EF:121 EB:406 ET:0 EL:3 ]
2023-01-22 21:49:33 us=652535 82.217.167.181:59244 Local Options String (VER=V4): 'V4,dev-type tun,link-mtu 1557,tun-mtu 1500,proto UDPv4,keydir 0,cipher AES-256-CBC,auth SHA1,keysize 256,tls-auth,key-method 2,tls-server'
2023-01-22 21:49:33 us=652562 82.217.167.181:59244 Expected Remote Options String (VER=V4): 'V4,dev-type tun,link-mtu 1557,tun-mtu 1500,proto UDPv4,keydir 1,cipher AES-256-CBC,auth SHA1,keysize 256,tls-auth,key-method 2,tls-client'
2023-01-22 21:49:33 us=652617 82.217.167.181:59244 TLS: Initial packet from [AF_INET]82.217.167.181:59244, sid=e273935f c23db377
2023-01-22 21:49:35 us=6211 82.217.167.181:59244 VERIFY OK: depth=1, C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, OU=changeme, CN=ovpn-horo, name=changeme, emailAddress=mail@host.domain
2023-01-22 21:49:35 us=6801 82.217.167.181:59244 VERIFY OK: depth=0, C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, OU=changeme, CN=myeon-ipad, name=changeme, emailAddress=mail@host.domain
2023-01-22 21:49:35 us=7038 82.217.167.181:59244 peer info: IV_VER=3.git::081bfebe
2023-01-22 21:49:35 us=7051 82.217.167.181:59244 peer info: IV_PLAT=ios
2023-01-22 21:49:35 us=7057 82.217.167.181:59244 peer info: IV_NCP=2
2023-01-22 21:49:35 us=7062 82.217.167.181:59244 peer info: IV_TCPNL=1
2023-01-22 21:49:35 us=7068 82.217.167.181:59244 peer info: IV_PROTO=30
2023-01-22 21:49:35 us=7073 82.217.167.181:59244 peer info: IV_CIPHERS=AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305:AES-256-CBC
2023-01-22 21:49:35 us=7079 82.217.167.181:59244 peer info: IV_AUTO_SESS=1
2023-01-22 21:49:35 us=7085 82.217.167.181:59244 peer info: IV_GUI_VER=net.openvpn.connect.ios_3.3.2-5086
2023-01-22 21:49:35 us=7090 82.217.167.181:59244 peer info: IV_SSO=webauth,openurl,crtext
2023-01-22 21:49:35 us=458334 82.217.167.181:59244 Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, peer certificate: 4096 bit RSA, signature: RSA-SHA1
2023-01-22 21:49:35 us=458424 82.217.167.181:59244 [myeon-ipad] Peer Connection Initiated with [AF_INET]82.217.167.181:59244
2023-01-22 21:49:35 us=458490 myeon-ipad/82.217.167.181:59244 MULTI_sva: pool returned IPv4=10.8.0.2, IPv6=(Not enabled)
2023-01-22 21:49:35 us=458583 myeon-ipad/82.217.167.181:59244 MULTI: Learn: 10.8.0.2 -> myeon-ipad/82.217.167.181:59244
2023-01-22 21:49:35 us=458612 myeon-ipad/82.217.167.181:59244 MULTI: primary virtual IP for myeon-ipad/82.217.167.181:59244: 10.8.0.2
2023-01-22 21:49:35 us=458645 myeon-ipad/82.217.167.181:59244 Data Channel: using negotiated cipher 'AES-256-GCM'
2023-01-22 21:49:35 us=458693 myeon-ipad/82.217.167.181:59244 Data Channel MTU parms [ L:1549 D:1450 EF:49 EB:406 ET:0 EL:3 ]
2023-01-22 21:49:35 us=458928 myeon-ipad/82.217.167.181:59244 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
2023-01-22 21:49:35 us=458967 myeon-ipad/82.217.167.181:59244 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
2023-01-22 21:49:35 us=459070 myeon-ipad/82.217.167.181:59244 SENT CONTROL [myeon-ipad]: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 10.8.0.1,route-gateway 10.8.0.1,topology subnet,ping 10,ping-restart 120,ifconfig 10.8.0.2 255.255.255.0,peer-id 0,cipher AES-256-GCM' (status=1)
2023-01-22 21:49:35 us=467962 myeon-ipad/82.217.167.181:59244 PUSH: Received control message: 'PUSH_REQUEST'
Server config:
server
1
local 192.168.1.128
2
port 1194
3
proto udp
4
dev tun
5
ca ca.crt
6
cert server.crt
7
key server.key
8
dh dh2048.pem
9
topology subnet
10
server 10.8.0.0 255.255.255.0
11
ifconfig-pool-persist /var/log/openvpn/ipp.txt
12
push "redirect-gateway def1 bypass-dhcp"
13
push "dhcp-option DNS 10.8.0.1"
14
keepalive 10 120
15
tls-auth ta.key 0
16
cipher AES-256-CBC
17
tls-cipher "DEFAULT:@SECLEVEL=0"
18
user nobody
19
group nogroup
20
persist-key
21
persist-tun
22
status /var/log/openvpn/openvpn-status.log
23
log /var/log/openvpn/openvpn.log
24
verb 4
25
explicit-exit-notify 1


Client config:
client
1
client
2
dev tun
3
proto udp
4
remote {myserver.mydomain.com} 1194
5
resolv-retry infinite
6
nobind
7
persist-key
8
persist-tun
9
remote-cert-tls server
10
cipher AES-256-CBC
11
verb 6
12
key-direction 1
13
<ca>
14
--STRIPPED INLINE CA CERT--
15
</ca>
16
<cert>
17
--STRIPPED INLINE CERT--
18
</cert>
19
<key>
20
--STRIPPED INLINE KEY--
21
</key>
22
<tls-auth>
23
--STRIPPED INLINE TLS-AUTH KEY--
24
</tls-auth>


I almost have no experience with iOS stuffs so a little bit of help troubleshooting would be more than welcome.

Thanks in advance !

EDIT: I tried regenerating all the key/certs with easy-rsa 3 to get rid `tls-cipher "DEFAULT:@SECLEVEL=0"` because I know that Apple is pretty strict with security in general. Now I managed to get rid of `tls-cipher "DEFAULT:@SECLEVEL=0"`and `cipher AES-256-CBC` but it still works on Windows and fails on iOS in the same manner.

Post Reply