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=[/]
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
#################################################
# Sample OpenVPN 2.0 config file for #
# multi-client server. #
# #
# This file is for the server side #
# of a many-clients <-> one-server #
# OpenVPN configuration. #
# #
# OpenVPN also supports #
# single-machine <-> single-machine #
# configurations (See the Examples page #
# on the web site for more info). #
# #
# This config should work on Windows #
# or Linux/BSD systems. Remember on #
# Windows to quote pathnames and use #
# double backslashes, e.g.: #
# "C:\\Program Files\\OpenVPN\\config\\foo.key" #
# #
# Comments are preceded with '#' or ';' #
#################################################
# Which local IP address should OpenVPN
# listen on? (optional)
local 192.168.1.128
# Which TCP/UDP port should OpenVPN listen on?
# If you want to run multiple OpenVPN instances
# on the same machine, use a different port
# number for each one. You will need to
# open up this port on your firewall.
port 1194
# TCP or UDP server?
;proto tcp
proto udp
# "dev tun" will create a routed IP tunnel,
# "dev tap" will create an ethernet tunnel.
# Use "dev tap0" if you are ethernet bridging
# and have precreated a tap0 virtual interface
# and bridged it with your ethernet interface.
# If you want to control access policies
# over the VPN, you must create firewall
# rules for the the TUN/TAP interface.
# On non-Windows systems, you can give
# an explicit unit number, such as tun0.
# On Windows, use "dev-node" for this.
# On most systems, the VPN will not function
# unless you partially or fully disable
# the firewall for the TUN/TAP interface.
;dev tap
dev tun
# Windows needs the TAP-Win32 adapter name
# from the Network Connections panel if you
# have more than one. On XP SP2 or higher,
# you may need to selectively disable the
# Windows firewall for the TAP adapter.
# Non-Windows systems usually don't need this.
;dev-node MyTap
# SSL/TLS root certificate (ca), certificate
# (cert), and private key (key). Each client
# and the server must have their own cert and
# key file. The server and all clients will
# use the same ca file.
#
# See the "easy-rsa" directory for a series
# of scripts for generating RSA certificates
# and private keys. Remember to use
# a unique Common Name for the server
# and each of the client certificates.
#
# Any X509 key management system can be used.
# OpenVPN can also use a PKCS #12 formatted key file
# (see "pkcs12" directive in man page).
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
# Diffie hellman parameters.
# Generate your own with:
# openssl dhparam -out dh2048.pem 2048
dh dh2048.pem
# Network topology
# Should be subnet (addressing via IP)
# unless Windows clients v2.0.9 and lower have to
# be supported (then net30, i.e. a /30 per client)
# Defaults to net30 (not recommended)
topology subnet
# Configure server mode and supply a VPN subnet
# for OpenVPN to draw client addresses from.
# The server will take 10.8.0.1 for itself,
# the rest will be made available to clients.
# Each client will be able to reach the server
# on 10.8.0.1. Comment this line out if you are
# ethernet bridging. See the man page for more info.
server 10.8.0.0 255.255.255.0
# Maintain a record of client <-> virtual IP address
# associations in this file. If OpenVPN goes down or
# is restarted, reconnecting clients can be assigned
# the same virtual IP address from the pool that was
# previously assigned.
ifconfig-pool-persist /var/log/openvpn/ipp.txt
# Configure server mode for ethernet bridging.
# You must first use your OS's bridging capability
# to bridge the TAP interface with the ethernet
# NIC interface. Then you must manually set the
# IP/netmask on the bridge interface, here we
# assume 10.8.0.4/255.255.255.0. Finally we
# must set aside an IP range in this subnet
# (start=10.8.0.50 end=10.8.0.100) to allocate
# to connecting clients. Leave this line commented
# out unless you are ethernet bridging.
;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100
# Configure server mode for ethernet bridging
# using a DHCP-proxy, where clients talk
# to the OpenVPN server-side DHCP server
# to receive their IP address allocation
# and DNS server addresses. You must first use
# your OS's bridging capability to bridge the TAP
# interface with the ethernet NIC interface.
# Note: this mode only works on clients (such as
# Windows), where the client-side TAP adapter is
# bound to a DHCP client.
;server-bridge
# Push routes to the client to allow it
# to reach other private subnets behind
# the server. Remember that these
# private subnets will also need
# to know to route the OpenVPN client
# address pool (10.8.0.0/255.255.255.0)
# back to the OpenVPN server.
;push "route 192.168.10.0 255.255.255.0"
;push "route 192.168.20.0 255.255.255.0"
# To assign specific IP addresses to specific
# clients or if a connecting client has a private
# subnet behind it that should also have VPN access,
# use the subdirectory "ccd" for client-specific
# configuration files (see man page for more info).
# EXAMPLE: Suppose the client
# having the certificate common name "Thelonious"
# also has a small subnet behind his connecting
# machine, such as 192.168.40.128/255.255.255.248.
# First, uncomment out these lines:
;client-config-dir ccd
;route 192.168.40.128 255.255.255.248
# Then create a file ccd/Thelonious with this line:
# iroute 192.168.40.128 255.255.255.248
# This will allow Thelonious' private subnet to
# access the VPN. This example will only work
# if you are routing, not bridging, i.e. you are
# using "dev tun" and "server" directives.
# EXAMPLE: Suppose you want to give
# Thelonious a fixed VPN IP address of 10.9.0.1.
# First uncomment out these lines:
;client-config-dir ccd
;route 10.9.0.0 255.255.255.252
# Then add this line to ccd/Thelonious:
# ifconfig-push 10.9.0.1 10.9.0.2
# Suppose that you want to enable different
# firewall access policies for different groups
# of clients. There are two methods:
# (1) Run multiple OpenVPN daemons, one for each
# group, and firewall the TUN/TAP interface
# for each group/daemon appropriately.
# (2) (Advanced) Create a script to dynamically
# modify the firewall in response to access
# from different clients. See man
# page for more info on learn-address script.
;learn-address ./script
# If enabled, this directive will configure
# all clients to redirect their default
# network gateway through the VPN, causing
# all IP traffic such as web browsing and
# and DNS lookups to go through the VPN
# (The OpenVPN server machine may need to NAT
# or bridge the TUN/TAP interface to the internet
# in order for this to work properly).
# REQUIRES IPFORWARDING:
# sysctl -w net.ipv4.ip_forward=1
# REQUIRES NAT:
# iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o enp4s0 -j MASQUERADE
push "redirect-gateway def1 bypass-dhcp"
;push "redirect-gateway local def1"
;push "redirect-gateway def1"
# Certain Windows-specific network settings
# can be pushed to clients, such as DNS
# or WINS server addresses. CAVEAT:
# http://openvpn.net/faq.html#dhcpcaveats
# The addresses below refer to the public
# DNS servers provided by opendns.com.
;push "dhcp-option DNS 208.67.222.222"
;push "dhcp-option DNS 208.67.220.220"
push "dhcp-option DNS 10.8.0.1"
# Uncomment this directive to allow different
# clients to be able to "see" each other.
# By default, clients will only see the server.
# To force clients to only see the server, you
# will also need to appropriately firewall the
# server's TUN/TAP interface.
;client-to-client
# Uncomment this directive if multiple clients
# might connect with the same certificate/key
# files or common names. This is recommended
# only for testing purposes. For production use,
# each client should have its own certificate/key
# pair.
#
# IF YOU HAVE NOT GENERATED INDIVIDUAL
# CERTIFICATE/KEY PAIRS FOR EACH CLIENT,
# EACH HAVING ITS OWN UNIQUE "COMMON NAME",
# UNCOMMENT THIS LINE OUT.
;duplicate-cn
# The keepalive directive causes ping-like
# messages to be sent back and forth over
# the link so that each side knows when
# the other side has gone down.
# Ping every 10 seconds, assume that remote
# peer is down if no ping received during
# a 120 second time period.
keepalive 10 120
# For extra security beyond that provided
# by SSL/TLS, create an "HMAC firewall"
# to help block DoS attacks and UDP port flooding.
#
# Generate with:
# openvpn --genkey tls-auth ta.key
#
# The server and each client must have
# a copy of this key.
# The second parameter should be '0'
# on the server and '1' on the clients.
tls-auth ta.key 0 # This file is secret
# Select a cryptographic cipher.
# This config item must be copied to
# the client config file as well.
# Note that v2.4 client/server will automatically
# negotiate AES-256-GCM in TLS mode.
# See also the ncp-cipher option in the manpage
cipher AES-256-CBC
# https://superuser.com/questions/1737052 ... d-too-weak
tls-cipher "DEFAULT:@SECLEVEL=0"
# Enable compression on the VPN link and push the
# option to the client (v2.4+ only, for earlier
# versions see below)
;compress lz4-v2
;push "compress lz4-v2"
# For compression compatible with older clients use comp-lzo
# If you enable it here, you must also
# enable it in the client config file.
;comp-lzo
# The maximum number of concurrently connected
# clients we want to allow.
;max-clients 100
# It's a good idea to reduce the OpenVPN
# daemon's privileges after initialization.
#
# You can uncomment this out on
# non-Windows systems.
user nobody
group nogroup
# The persist options will try to avoid
# accessing certain resources on restart
# that may no longer be accessible because
# of the privilege downgrade.
persist-key
persist-tun
# Output a short status file showing
# current connections, truncated
# and rewritten every minute.
status /var/log/openvpn/openvpn-status.log
# By default, log messages will go to the syslog (or
# on Windows, if running as a service, they will go to
# the "\Program Files\OpenVPN\log" directory).
# Use log or log-append to override this default.
# "log" will truncate the log file on OpenVPN startup,
# while "log-append" will append to it. Use one
# or the other (but not both).
log /var/log/openvpn/openvpn.log
;log-append /var/log/openvpn/openvpn.log
# Set the appropriate level of log
# file verbosity.
#
# 0 is silent, except for fatal errors
# 4 is reasonable for general usage
# 5 and 6 can help to debug connection problems
# 9 is extremely verbose
verb 4
# Silence repeating messages. At most 20
# sequential messages of the same message
# category will be output to the log.
;mute 20
# Notify the client that when the server restarts so it
# can automatically reconnect.
explicit-exit-notify 1
Client config:
client
##############################################
# Sample client-side OpenVPN 2.0 config file #
# for connecting to multi-client server. #
# #
# This configuration can be used by multiple #
# clients, however each client should have #
# its own cert and key files. #
# #
# On Windows, you might want to rename this #
# file so it has a .ovpn extension #
##############################################
# Specify that we are a client and that we
# will be pulling certain config file directives
# from the server.
client
# Use the same setting as you are using on
# the server.
# On most systems, the VPN will not function
# unless you partially or fully disable
# the firewall for the TUN/TAP interface.
;dev tap
dev tun
# Windows needs the TAP-Win32 adapter name
# from the Network Connections panel
# if you have more than one. On XP SP2,
# you may need to disable the firewall
# for the TAP adapter.
;dev-node MyTap
# Are we connecting to a TCP or
# UDP server? Use the same setting as
# on the server.
;proto tcp
proto udp
# The hostname/IP and port of the server.
# You can have multiple remote entries
# to load balance between the servers.
remote {myserver.mydomain.com} 1194
;remote my-server-2 1194
# Choose a random host from the remote
# list for load-balancing. Otherwise
# try hosts in the order specified.
;remote-random
# Keep trying indefinitely to resolve the
# host name of the OpenVPN server. Very useful
# on machines which are not permanently connected
# to the internet such as laptops.
resolv-retry infinite
# Most clients don't need to bind to
# a specific local port number.
nobind
# Downgrade privileges after initialization (non-Windows only)
;user nobody
;group nobody
# Try to preserve some state across restarts.
persist-key
persist-tun
# If you are connecting through an
# HTTP proxy to reach the actual OpenVPN
# server, put the proxy server/IP and
# port number here. See the man page
# if your proxy server requires
# authentication.
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
# Wireless networks often produce a lot
# of duplicate packets. Set this flag
# to silence duplicate packet warnings.
;mute-replay-warnings
# SSL/TLS parms.
# See the server config file for more
# description. It's best to use
# a separate .crt/.key file pair
# for each client. A single ca
# file can be used for all clients.
;ca ca.crt
;cert myeon-ipad.crt
;key myeon-ipad.key
# Verify server certificate by checking that the
# certificate has the correct key usage set.
# This is an important precaution to protect against
# a potential attack discussed here:
# http://openvpn.net/howto.html#mitm
#
# To use this feature, you will need to generate
# your server certificates with the keyUsage set to
# digitalSignature, keyEncipherment
# and the extendedKeyUsage to
# serverAuth
# EasyRSA can do this for you.
remote-cert-tls server
# If a tls-auth key is used on the server
# then every client must also have the key.
;tls-auth ta.key 1
# Select a cryptographic cipher.
# If the cipher option is used on the server
# then you must also specify it here.
# Note that v2.4 client/server will automatically
# negotiate AES-256-GCM in TLS mode.
# See also the data-ciphers option in the manpage
cipher AES-256-CBC
# Enable compression on the VPN link.
# Don't enable this unless it is also
# enabled in the server config file.
#comp-lzo
# Set log file verbosity.
verb 6
# Silence repeating messages
;mute 20
# https://superuser.com/questions/1637778 ... connecting
key-direction 1
<ca>
-----BEGIN CERTIFICATE-----
{my-server-certificate}
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
{my-client-certificate}
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
{my-client-private-key}
-----END PRIVATE KEY-----
</key>
<tls-auth>
-----BEGIN OpenVPN Static key V1-----
{my-server-ta-key}
-----END OpenVPN Static key V1-----
</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.