Hi there
I have posted this before but in the wrong part of the forum. I hope this is the correct place.
I have OpenVPN server on a Raspberry Pi. It allows my mobile phone to connect without any problem.
But, my Windows 10 laptop with OpenVPN Connect will not connect. I am using the same config file as used on the phone.
I find that when connects it reports:
ovpnagent: request error
The log shows that the auto-generated script that configures the tap net adapter shows this:
"gateway" : "UNSPEC",
POST np://[\\.\pipe\agent_ovpnconnect]/tun-setup : 400 Bad Request
ip_exception: error parsing tunnel_addresses[0].gateway IP address 'UNSPEC' : An invalid argument was supplied.
[Jun 25, 2021, 21:11:01] TUN Error: ovpnagent: request error
I have provided requested config and logs below.
Thank you in advance.
*Server*
Operating system:
uname -a
Linux nick 5.10.63-v7+ #1459 SMP Wed Oct 6 16:41:10 BST 2021 armv7l GNU/Linux
OpenVPN server:
apt-cache policy openvpn
openvpn:
Installed: 2.5.1-3
Candidate: 2.5.1-3
Version table:
*** 2.5.1-3 500
500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
100 /var/lib/dpkg/status<
Server network setup:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.xxx.xxx.40 netmask 255.255.255.0 broadcast 172.xxx.xxx.255
ether b8:27:eb:89:dc:72 txqueuelen 1000 (Ethernet)
RX packets 5981291 bytes 1483929994 (1.3 GiB)
RX errors 8582 dropped 1 overruns 0 frame 0
TX packets 124261 bytes 84266257 (80.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1000 (Local Loopback)
RX packets 297 bytes 30616 (29.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 297 bytes 30616 (29.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 172.xxx.xxx.1 netmask 255.255.255.0 destination 172.xxx.xxx.1
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 500 (UNSPEC)
RX packets 1148 bytes 130580 (127.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1147 bytes 596827 (582.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tls-server
mode server
proto udp4
port xxxxx
dev tun
topology subnet
push "topology subnet"
ifconfig 172.xxx.xxx.1 255.255.255.0
ifconfig-pool 172.xxx.xxx.2 172.xxx.xxx.253 255.255.255.0
push "route 172.xxx.xxx.0 255.255.255.0"
ifconfig-pool-persist ipp.txt
cipher AES-256-GCM
persist-tun
persist-key
keepalive 10 120
verb 4
user nobody
group nogroup
log /var/log/openvpn.log
ca /etc/openvpn/server/ca.crt
key /etc/openvpn/server/server_nick.key
cert /etc/openvpn/server/server_nick.crt
dh /etc/openvpn/server/dh.pem
tls-crypt /etc/openvpn/server/ta.key
2021-12-21 21:51:27 us=458037 Current Parameter Settings:
2021-12-21 21:51:27 us=458199 config = '/etc/openvpn/tweedyfarm.conf'
2021-12-21 21:51:27 us=458233 mode = 1
2021-12-21 21:51:27 us=458265 persist_config = DISABLED
2021-12-21 21:51:27 us=458297 persist_mode = 1
2021-12-21 21:51:27 us=458328 show_ciphers = DISABLED
2021-12-21 21:51:27 us=458359 show_digests = DISABLED
2021-12-21 21:51:27 us=458391 show_engines = DISABLED
2021-12-21 21:51:27 us=458422 genkey = DISABLED
2021-12-21 21:51:27 us=458453 genkey_filename = '[UNDEF]'
2021-12-21 21:51:27 us=458484 key_pass_file = '[UNDEF]'
2021-12-21 21:51:27 us=458515 show_tls_ciphers = DISABLED
2021-12-21 21:51:27 us=458547 connect_retry_max = 0
2021-12-21 21:51:27 us=458579 Connection profiles [0]:
2021-12-21 21:51:27 us=458611 proto = udp4
2021-12-21 21:51:27 us=458642 local = '[UNDEF]'
2021-12-21 21:51:27 us=458683 local_port = '61111'
2021-12-21 21:51:27 us=458715 remote = '[UNDEF]'
2021-12-21 21:51:27 us=458746 remote_port = '61111'
2021-12-21 21:51:27 us=458777 remote_float = DISABLED
2021-12-21 21:51:27 us=458808 bind_defined = DISABLED
2021-12-21 21:51:27 us=458839 bind_local = ENABLED
2021-12-21 21:51:27 us=458870 bind_ipv6_only = DISABLED
2021-12-21 21:51:27 us=458901 connect_retry_seconds = 5
2021-12-21 21:51:27 us=458932 connect_timeout = 120
2021-12-21 21:51:27 us=458963 socks_proxy_server = '[UNDEF]'
2021-12-21 21:51:27 us=458994 socks_proxy_port = '[UNDEF]'
2021-12-21 21:51:27 us=459025 tun_mtu = 1500
2021-12-21 21:51:27 us=459056 tun_mtu_defined = ENABLED
2021-12-21 21:51:27 us=459087 link_mtu = 1500
2021-12-21 21:51:27 us=459118 link_mtu_defined = DISABLED
2021-12-21 21:51:27 us=459149 tun_mtu_extra = 0
2021-12-21 21:51:27 us=459181 tun_mtu_extra_defined = DISABLED
2021-12-21 21:51:27 us=459212 mtu_discover_type = -1
2021-12-21 21:51:27 us=459243 fragment = 0
2021-12-21 21:51:27 us=459274 mssfix = 1450
2021-12-21 21:51:27 us=459305 explicit_exit_notification = 0
2021-12-21 21:51:27 us=459336 tls_auth_file = '[UNDEF]'
2021-12-21 21:51:27 us=459367 key_direction = not set
2021-12-21 21:51:27 us=459398 tls_crypt_file = '[INLINE]'
2021-12-21 21:51:27 us=459430 tls_crypt_v2_file = '[UNDEF]'
2021-12-21 21:51:27 us=459461 Connection profiles END
2021-12-21 21:51:27 us=459492 remote_random = DISABLED
2021-12-21 21:51:27 us=459523 ipchange = '[UNDEF]'
2021-12-21 21:51:27 us=459554 dev = 'tun'
2021-12-21 21:51:27 us=459585 dev_type = '[UNDEF]'
2021-12-21 21:51:27 us=459616 dev_node = '[UNDEF]'
2021-12-21 21:51:27 us=459647 lladdr = '[UNDEF]'
2021-12-21 21:51:27 us=459678 topology = 3
2021-12-21 21:51:27 us=459709 ifconfig_local = '172.xxx.xxx.1'
2021-12-21 21:51:27 us=459740 ifconfig_remote_netmask = '255.255.255.0'
2021-12-21 21:51:27 us=459771 ifconfig_noexec = DISABLED
2021-12-21 21:51:27 us=459802 ifconfig_nowarn = DISABLED
2021-12-21 21:51:27 us=459833 ifconfig_ipv6_local = '[UNDEF]'
2021-12-21 21:51:27 us=459865 ifconfig_ipv6_netbits = 0
2021-12-21 21:51:27 us=459896 ifconfig_ipv6_remote = '[UNDEF]'
2021-12-21 21:51:27 us=459927 shaper = 0
2021-12-21 21:51:27 us=459958 mtu_test = 0
2021-12-21 21:51:27 us=459989 mlock = DISABLED
2021-12-21 21:51:27 us=460020 keepalive_ping = 10
2021-12-21 21:51:27 us=460051 keepalive_timeout = 120
2021-12-21 21:51:27 us=460082 inactivity_timeout = 0
2021-12-21 21:51:27 us=460113 ping_send_timeout = 10
2021-12-21 21:51:27 us=460144 ping_rec_timeout = 240
2021-12-21 21:51:27 us=460175 ping_rec_timeout_action = 2
2021-12-21 21:51:27 us=460206 ping_timer_remote = DISABLED
2021-12-21 21:51:27 us=460237 remap_sigusr1 = 0
2021-12-21 21:51:27 us=460268 persist_tun = ENABLED
2021-12-21 21:51:27 us=460299 persist_local_ip = DISABLED
2021-12-21 21:51:27 us=460330 persist_remote_ip = DISABLED
2021-12-21 21:51:27 us=460361 persist_key = ENABLED
2021-12-21 21:51:27 us=460392 passtos = DISABLED
2021-12-21 21:51:27 us=460423 resolve_retry_seconds = 1000000000
2021-12-21 21:51:27 us=460454 resolve_in_advance = DISABLED
2021-12-21 21:51:27 us=460503 username = 'nobody'
2021-12-21 21:51:27 us=460535 groupname = 'nogroup'
2021-12-21 21:51:27 us=460566 chroot_dir = '[UNDEF]'
2021-12-21 21:51:27 us=460597 cd_dir = '/etc/openvpn'
2021-12-21 21:51:27 us=460628 writepid = '/run/openvpn/tweedyfarm.pid'
2021-12-21 21:51:27 us=460658 up_script = '[UNDEF]'
2021-12-21 21:51:27 us=460695 down_script = '[UNDEF]'
2021-12-21 21:51:27 us=460726 down_pre = DISABLED
2021-12-21 21:51:27 us=460757 up_restart = DISABLED
2021-12-21 21:51:27 us=460788 up_delay = DISABLED
2021-12-21 21:51:27 us=460818 daemon = ENABLED
2021-12-21 21:51:27 us=460850 inetd = 0
2021-12-21 21:51:27 us=460880 log = ENABLED
2021-12-21 21:51:27 us=460911 suppress_timestamps = DISABLED
2021-12-21 21:51:27 us=460942 machine_readable_output = DISABLED
2021-12-21 21:51:27 us=460973 nice = 0
2021-12-21 21:51:27 us=461004 verbosity = 4
2021-12-21 21:51:27 us=461035 mute = 0
2021-12-21 21:51:27 us=461066 gremlin = 0
2021-12-21 21:51:27 us=461097 status_file = '/run/openvpn/tweedyfarm.status'
2021-12-21 21:51:27 us=461128 status_file_version = 1
2021-12-21 21:51:27 us=461160 status_file_update_freq = 10
2021-12-21 21:51:27 us=461190 occ = ENABLED
2021-12-21 21:51:27 us=461221 rcvbuf = 0
2021-12-21 21:51:27 us=461252 sndbuf = 0
2021-12-21 21:51:27 us=461283 mark = 0
2021-12-21 21:51:27 us=461314 sockflags = 0
2021-12-21 21:51:27 us=461346 fast_io = DISABLED
2021-12-21 21:51:27 us=461377 comp.alg = 0
2021-12-21 21:51:27 us=461408 comp.flags = 0
2021-12-21 21:51:27 us=461440 route_script = '[UNDEF]'
2021-12-21 21:51:27 us=461471 route_default_gateway = '[UNDEF]'
2021-12-21 21:51:27 us=461502 route_default_metric = 0
2021-12-21 21:51:27 us=461534 route_noexec = DISABLED
2021-12-21 21:51:27 us=461565 route_delay = 0
2021-12-21 21:51:27 us=461597 route_delay_window = 30
2021-12-21 21:51:27 us=461627 route_delay_defined = DISABLED
2021-12-21 21:51:27 us=461659 route_nopull = DISABLED
2021-12-21 21:51:27 us=461690 route_gateway_via_dhcp = DISABLED
2021-12-21 21:51:27 us=461721 allow_pull_fqdn = DISABLED
2021-12-21 21:51:27 us=461753 management_addr = '[UNDEF]'
2021-12-21 21:51:27 us=461785 management_port = '[UNDEF]'
2021-12-21 21:51:27 us=461816 management_user_pass = '[UNDEF]'
2021-12-21 21:51:27 us=461848 management_log_history_cache = 250
2021-12-21 21:51:27 us=461880 management_echo_buffer_size = 100
2021-12-21 21:51:27 us=461912 management_write_peer_info_file = '[UNDEF]'
2021-12-21 21:51:27 us=461944 management_client_user = '[UNDEF]'
2021-12-21 21:51:27 us=461975 management_client_group = '[UNDEF]'
2021-12-21 21:51:27 us=462007 management_flags = 0
2021-12-21 21:51:27 us=462038 shared_secret_file = '[UNDEF]'
2021-12-21 21:51:27 us=462070 key_direction = not set
2021-12-21 21:51:27 us=462101 ciphername = 'AES-256-GCM'
2021-12-21 21:51:27 us=462132 ncp_enabled = ENABLED
2021-12-21 21:51:27 us=462164 ncp_ciphers = 'AES-256-GCM:AES-128-GCM'
2021-12-21 21:51:27 us=462195 authname = 'SHA1'
2021-12-21 21:51:27 us=462227 prng_hash = 'SHA1'
2021-12-21 21:51:27 us=462258 prng_nonce_secret_len = 16
2021-12-21 21:51:27 us=462289 keysize = 0
2021-12-21 21:51:27 us=462320 engine = DISABLED
2021-12-21 21:51:27 us=462351 replay = ENABLED
2021-12-21 21:51:27 us=462383 mute_replay_warnings = DISABLED
2021-12-21 21:51:27 us=462414 replay_window = 64
2021-12-21 21:51:27 us=462446 replay_time = 15
2021-12-21 21:51:27 us=462478 packet_id_file = '[UNDEF]'
2021-12-21 21:51:27 us=462509 test_crypto = DISABLED
2021-12-21 21:51:27 us=462540 tls_server = ENABLED
2021-12-21 21:51:27 us=462571 tls_client = DISABLED
2021-12-21 21:51:27 us=462603 ca_file = '/etc/openvpn/server/ca.crt'
2021-12-21 21:51:27 us=462635 ca_path = '[UNDEF]'
2021-12-21 21:51:27 us=462666 dh_file = '/etc/openvpn/server/dh.pem'
2021-12-21 21:51:27 us=462698 cert_file = '/etc/openvpn/server/server_nick.crt'
2021-12-21 21:51:27 us=462730 extra_certs_file = '[UNDEF]'
2021-12-21 21:51:27 us=462762 priv_key_file = '/etc/openvpn/server/server_nick.key'
2021-12-21 21:51:27 us=462809 pkcs12_file = '[UNDEF]'
2021-12-21 21:51:27 us=462840 cipher_list = '[UNDEF]'
2021-12-21 21:51:27 us=462872 cipher_list_tls13 = '[UNDEF]'
2021-12-21 21:51:27 us=462903 tls_cert_profile = '[UNDEF]'
2021-12-21 21:51:27 us=462934 tls_verify = '[UNDEF]'
2021-12-21 21:51:27 us=462965 tls_export_cert = '[UNDEF]'
2021-12-21 21:51:27 us=462997 verify_x509_type = 0
2021-12-21 21:51:27 us=463028 verify_x509_name = '[UNDEF]'
2021-12-21 21:51:27 us=463059 crl_file = '[UNDEF]'
2021-12-21 21:51:27 us=463090 ns_cert_type = 0
2021-12-21 21:51:27 us=463122 remote_cert_ku
= 0
2021-12-21 21:51:27 us=463154 remote_cert_ku = 0
2021-12-21 21:51:27 us=463185 remote_cert_ku = 0
2021-12-21 21:51:27 us=463216 remote_cert_ku = 0
2021-12-21 21:51:27 us=463247 remote_cert_ku = 0
2021-12-21 21:51:27 us=463278 remote_cert_ku = 0
2021-12-21 21:51:27 us=463309 remote_cert_ku = 0
2021-12-21 21:51:27 us=463340 remote_cert_ku = 0
2021-12-21 21:51:27 us=463371 remote_cert_ku = 0
2021-12-21 21:51:27 us=463403 remote_cert_ku = 0
2021-12-21 21:51:27 us=463434 remote_cert_ku[i] = 0
2021-12-21 21:51:27 us=463466 remote_cert_ku[i] = 0
2021-12-21 21:51:27 us=463497 remote_cert_ku[i] = 0
2021-12-21 21:51:27 us=463528 remote_cert_ku[i] = 0
2021-12-21 21:51:27 us=463559 remote_cert_ku[i] = 0
2021-12-21 21:51:27 us=463591 remote_cert_ku[i] = 0
2021-12-21 21:51:27 us=463622 remote_cert_eku = '[UNDEF]'
2021-12-21 21:51:27 us=463653 ssl_flags = 0
2021-12-21 21:51:27 us=463685 tls_timeout = 2
2021-12-21 21:51:27 us=463717 renegotiate_bytes = -1
2021-12-21 21:51:27 us=463748 renegotiate_packets = 0
2021-12-21 21:51:27 us=463780 renegotiate_seconds = 3600
2021-12-21 21:51:27 us=463810 handshake_window = 60
2021-12-21 21:51:27 us=463842 transition_window = 3600
2021-12-21 21:51:27 us=463873 single_session = DISABLED
2021-12-21 21:51:27 us=463904 push_peer_info = DISABLED
2021-12-21 21:51:27 us=463934 tls_exit = DISABLED
2021-12-21 21:51:27 us=463965 tls_crypt_v2_metadata = '[UNDEF]'
2021-12-21 21:51:27 us=463997 pkcs11_protected_authentication = DISABLED
2021-12-21 21:51:27 us=464029 pkcs11_protected_authentication = DISABLED
2021-12-21 21:51:27 us=464060 pkcs11_protected_authentication = DISABLED
2021-12-21 21:51:27 us=464203 pkcs11_protected_authentication = DISABLED
2021-12-21 21:51:27 us=464242 pkcs11_protected_authentication = DISABLED
2021-12-21 21:51:27 us=464274 pkcs11_protected_authentication = DISABLED
2021-12-21 21:51:27 us=464306 pkcs11_protected_authentication = DISABLED
2021-12-21 21:51:27 us=464337 pkcs11_protected_authentication = DISABLED
2021-12-21 21:51:27 us=464369 pkcs11_protected_authentication = DISABLED
2021-12-21 21:51:27 us=464400 pkcs11_protected_authentication = DISABLED
2021-12-21 21:51:27 us=464432 pkcs11_protected_authentication = DISABLED
2021-12-21 21:51:27 us=464463 pkcs11_protected_authentication = DISABLED
2021-12-21 21:51:27 us=464495 pkcs11_protected_authentication = DISABLED
2021-12-21 21:51:27 us=464526 pkcs11_protected_authentication = DISABLED
2021-12-21 21:51:27 us=464558 pkcs11_protected_authentication = DISABLED
2021-12-21 21:51:27 us=464589 pkcs11_protected_authentication = DISABLED
2021-12-21 21:51:27 us=464623 pkcs11_private_mode = 00000000
2021-12-21 21:51:27 us=464655 pkcs11_private_mode = 00000000
2021-12-21 21:51:27 us=464687 pkcs11_private_mode = 00000000
2021-12-21 21:51:27 us=464719 pkcs11_private_mode = 00000000
2021-12-21 21:51:27 us=464751 pkcs11_private_mode = 00000000
2021-12-21 21:51:27 us=464783 pkcs11_private_mode = 00000000
2021-12-21 21:51:27 us=464815 pkcs11_private_mode = 00000000
2021-12-21 21:51:27 us=464847 pkcs11_private_mode = 00000000
2021-12-21 21:51:27 us=464879 pkcs11_private_mode = 00000000
2021-12-21 21:51:27 us=464911 pkcs11_private_mode = 00000000
2021-12-21 21:51:27 us=464942 pkcs11_private_mode = 00000000
2021-12-21 21:51:27 us=464974 pkcs11_private_mode = 00000000
2021-12-21 21:51:27 us=465021 pkcs11_private_mode = 00000000
2021-12-21 21:51:27 us=465053 pkcs11_private_mode = 00000000
2021-12-21 21:51:27 us=465085 pkcs11_private_mode = 00000000
2021-12-21 21:51:27 us=465116 pkcs11_private_mode = 00000000
2021-12-21 21:51:27 us=465148 pkcs11_cert_private = DISABLED
2021-12-21 21:51:27 us=465179 pkcs11_cert_private = DISABLED
2021-12-21 21:51:27 us=465210 pkcs11_cert_private = DISABLED
2021-12-21 21:51:27 us=465241 pkcs11_cert_private = DISABLED
2021-12-21 21:51:27 us=465273 pkcs11_cert_private = DISABLED
2021-12-21 21:51:27 us=465304 pkcs11_cert_private = DISABLED
2021-12-21 21:51:27 us=465335 pkcs11_cert_private = DISABLED
2021-12-21 21:51:27 us=465367 pkcs11_cert_private = DISABLED
2021-12-21 21:51:27 us=465398 pkcs11_cert_private = DISABLED
2021-12-21 21:51:27 us=465429 pkcs11_cert_private = DISABLED
2021-12-21 21:51:27 us=465460 pkcs11_cert_private = DISABLED
2021-12-21 21:51:27 us=465491 pkcs11_cert_private = DISABLED
2021-12-21 21:51:27 us=465523 pkcs11_cert_private = DISABLED
2021-12-21 21:51:27 us=465554 pkcs11_cert_private = DISABLED
2021-12-21 21:51:27 us=465585 pkcs11_cert_private = DISABLED
2021-12-21 21:51:27 us=465616 pkcs11_cert_private = DISABLED
2021-12-21 21:51:27 us=465648 pkcs11_pin_cache_period = -1
2021-12-21 21:51:27 us=465679 pkcs11_id = '[UNDEF]'
2021-12-21 21:51:27 us=465710 pkcs11_id_management = DISABLED
2021-12-21 21:51:27 us=465746 server_network = 0.0.0.0
2021-12-21 21:51:27 us=465780 server_netmask = 0.0.0.0
2021-12-21 21:51:27 us=465815 server_network_ipv6 = ::
2021-12-21 21:51:27 us=465846 server_netbits_ipv6 = 0
2021-12-21 21:51:27 us=465880 server_bridge_ip = 0.0.0.0
2021-12-21 21:51:27 us=465914 server_bridge_netmask = 0.0.0.0
2021-12-21 21:51:27 us=465949 server_bridge_pool_start = 0.0.0.0
2021-12-21 21:51:27 us=465983 server_bridge_pool_end = 0.0.0.0
2021-12-21 21:51:27 us=466015 push_entry = 'topology subnet'
2021-12-21 21:51:27 us=466047 push_entry = 'route 172.xxx.xxx.0 255.255.255.0'
2021-12-21 21:51:27 us=466078 push_entry = 'ping 10'
2021-12-21 21:51:27 us=466110 push_entry = 'ping-restart 120'
2021-12-21 21:51:27 us=466141 ifconfig_pool_defined = ENABLED
2021-12-21 21:51:27 us=466176 ifconfig_pool_start = 172.xxx.xxx.2
2021-12-21 21:51:27 us=466211 ifconfig_pool_end = 172.xxx.xxx.253
2021-12-21 21:51:27 us=466245 ifconfig_pool_netmask = 255.255.255.0
2021-12-21 21:51:27 us=466277 ifconfig_pool_persist_filename = 'ipp.txt'
2021-12-21 21:51:27 us=466309 ifconfig_pool_persist_refresh_freq = 600
2021-12-21 21:51:27 us=466340 ifconfig_ipv6_pool_defined = DISABLED
2021-12-21 21:51:27 us=466374 ifconfig_ipv6_pool_base = ::
2021-12-21 21:51:27 us=466406 ifconfig_ipv6_pool_netbits = 0
2021-12-21 21:51:27 us=466438 n_bcast_buf = 256
2021-12-21 21:51:27 us=466469 tcp_queue_limit = 64
2021-12-21 21:51:27 us=466500 real_hash_size = 256
2021-12-21 21:51:27 us=466532 virtual_hash_size = 256
2021-12-21 21:51:27 us=466563 client_connect_script = '[UNDEF]'
2021-12-21 21:51:27 us=466594 learn_address_script = '[UNDEF]'
2021-12-21 21:51:27 us=466626 client_disconnect_script = '[UNDEF]'
2021-12-21 21:51:27 us=466658 client_config_dir = '[UNDEF]'
2021-12-21 21:51:27 us=466689 ccd_exclusive = DISABLED
2021-12-21 21:51:27 us=466720 tmp_dir = '/tmp'
2021-12-21 21:51:27 us=466752 push_ifconfig_defined = DISABLED
2021-12-21 21:51:27 us=466786 push_ifconfig_local = 0.0.0.0
2021-12-21 21:51:27 us=466821 push_ifconfig_remote_netmask = 0.0.0.0
2021-12-21 21:51:27 us=466853 push_ifconfig_ipv6_defined = DISABLED
2021-12-21 21:51:27 us=466887 push_ifconfig_ipv6_local = ::/0
2021-12-21 21:51:27 us=466920 push_ifconfig_ipv6_remote = ::
2021-12-21 21:51:27 us=466952 enable_c2c = DISABLED
2021-12-21 21:51:27 us=466983 duplicate_cn = DISABLED
2021-12-21 21:51:27 us=467015 cf_max = 0
2021-12-21 21:51:27 us=467046 cf_per = 0
2021-12-21 21:51:27 us=467078 max_clients = 1024
2021-12-21 21:51:27 us=467110 max_routes_per_client = 256
2021-12-21 21:51:27 us=467142 auth_user_pass_verify_script = '[UNDEF]'
2021-12-21 21:51:27 us=467189 auth_user_pass_verify_script_via_file = DISABLED
2021-12-21 21:51:27 us=467221 auth_token_generate = DISABLED
2021-12-21 21:51:27 us=467253 auth_token_lifetime = 0
2021-12-21 21:51:27 us=467284 auth_token_secret_file = '[UNDEF]'
2021-12-21 21:51:27 us=467316 port_share_host = '[UNDEF]'
2021-12-21 21:51:27 us=467347 port_share_port = '[UNDEF]'
2021-12-21 21:51:27 us=467378 vlan_tagging = DISABLED
2021-12-21 21:51:27 us=467409 vlan_accept = all
2021-12-21 21:51:27 us=467441 vlan_pvid = 1
2021-12-21 21:51:27 us=467472 client = DISABLED
2021-12-21 21:51:27 us=467503 pull = DISABLED
2021-12-21 21:51:27 us=467535 auth_user_pass_file = '[UNDEF]'
2021-12-21 21:51:27 us=467570 OpenVPN 2.5.1 arm-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on May 14 2021
2021-12-21 21:51:27 us=467613 library versions: OpenSSL 1.1.1k 25 Mar 2021, LZO 2.10
2021-12-21 21:51:27 us=468243 net_route_v4_best_gw query: dst 0.0.0.0
2021-12-21 21:51:27 us=468567 net_route_v4_best_gw result: via 172.xxx.xxx.254 dev eth0
2021-12-21 21:51:27 us=470848 Diffie-Hellman initialized with 2048 bit key
2021-12-21 21:51:27 us=472644 Outgoing Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
2021-12-21 21:51:27 us=472771 Outgoing Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
2021-12-21 21:51:27 us=472811 Incoming Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
2021-12-21 21:51:27 us=472856 Incoming Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
2021-12-21 21:51:27 us=472915 TLS-Auth MTU parms [ L:1621 D:1156 EF:94 EB:0 ET:0 EL:3 ]
2021-12-21 21:51:27 us=474521 TUN/TAP device tun0 opened
2021-12-21 21:51:27 us=474648 do_ifconfig, ipv4=1, ipv6=0
2021-12-21 21:51:27 us=474747 net_iface_mtu_set: mtu 1500 for tun0
2021-12-21 21:51:27 us=474931 net_iface_up: set tun0 up
2021-12-21 21:51:27 us=475162 net_addr_v4_add: 172.xxx.xxx.1/24 dev tun0
2021-12-21 21:51:27 us=475558 Data Channel MTU parms [ L:1621 D:1450 EF:121 EB:406 ET:0 EL:3 ]
2021-12-21 21:51:27 us=476584 Socket Buffers: R=[180224->180224] S=[180224->180224]
2021-12-21 21:51:27 us=476702 UDPv4 link local (bound): [AF_INET][undef]:61111
2021-12-21 21:51:27 us=476738 UDPv4 link remote: [AF_UNSPEC]
2021-12-21 21:51:27 us=476780 GID set to nogroup
2021-12-21 21:51:27 us=476825 UID set to nobody
2021-12-21 21:51:27 us=476881 MULTI: multi_init called, r=256 v=256
2021-12-21 21:51:27 us=476954 IFCONFIG POOL IPv4: base=172.xxx.xxx.2 size=252
2021-12-21 21:51:27 us=477023 ifconfig_pool_read(), in='mobile_nigel,172.xxx.xxx.2,'
2021-12-21 21:51:27 us=477096 succeeded -> ifconfig_pool_set(hand=0)
2021-12-21 21:51:27 us=477131 ifconfig_pool_read(), in='laptop_nigel,172.xxx.xxx.3,'
2021-12-21 21:51:27 us=477165 succeeded -> ifconfig_pool_set(hand=1)
2021-12-21 21:51:27 us=477196 ifconfig_pool_read(), in='mobile_nigel,172.xxx.xxx.4,'
2021-12-21 21:51:27 us=477229 succeeded -> ifconfig_pool_set(hand=2)
2021-12-21 21:51:27 us=477265 IFCONFIG POOL LIST
2021-12-21 21:51:27 us=477300 mobile_nigel,172.xxx.xxx.2,
2021-12-21 21:51:27 us=477333 laptop_nigel,172.xxx.xxx.3,
2021-12-21 21:51:27 us=477367 mobile_nigel,172.xxx.xxx.4,
2021-12-21 21:51:27 us=477579 Initialization Sequence Completed
*client*
Operating system:
ver
Microsoft Windows [Version 10.0.19043.1415]
Client version:
OpenVPN Connect 3.3.4
client
tls-client
dev tun
proto udp4
remote-cert-eku "TLS Web Server Authentication"
remote mydomain.com xxxxx
cipher AES-256-GCM
route 172.xxx.xxx.0 255.255.255.0
verb 4
remote-cert-tls server
ca ca.crt
cert laptop_nigel.crt
key laptop_nigel.key
tls-crypt ta.key
Client log:
[Dec 21, 2021, 22:26:55] OpenVPN core 3.git::d3f8b18b win x86_64 64-bit built on Dec 8 2021 12:04:20
[Dec 21, 2021, 22:26:55] Frame=512/2048/512 mssfix-ctrl=1250
[Dec 21, 2021, 22:26:55] UNUSED OPTIONS
1 [tls-client]
8 [verb] [4]
[Dec 21, 2021, 22:26:55] EVENT: RESOLVE [Dec 21, 2021, 22:26:55] Contacting 151.xxx.xxx.159:61111 via UDP
[Dec 21, 2021, 22:26:55] EVENT: WAIT [Dec 21, 2021, 22:26:55] WinCommandAgent: transmitting bypass route to 151.xxx.xxx.159
{
"host" : "151.xxx.xxx.159",
"ipv6" : false
}
[Dec 21, 2021, 22:26:56] Connecting to [mydomain.com]:61111 (151.xxx.xxx.159) via UDPv4
[Dec 21, 2021, 22:26:56] EVENT: CONNECTING [Dec 21, 2021, 22:26:56] Tunnel Options:V4,dev-type tun,link-mtu 1521,tun-mtu 1500,proto UDPv4,cipher AES-256-GCM,auth [null-digest],keysize 256,key-method 2,tls-client
[Dec 21, 2021, 22:26:56] Creds: UsernameEmpty/PasswordEmpty
[Dec 21, 2021, 22:26:56] Peer Info:
IV_VER=3.git::d3f8b18b
IV_PLAT=win
IV_NCP=2
IV_TCPNL=1
IV_PROTO=30
IV_CIPHERS=AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305
IV_AUTO_SESS=1
IV_GUI_VER=OCWindows_3.3.4-2600
IV_SSO=webauth,openurl,crtext
[Dec 21, 2021, 22:26:56] SSL Handshake: peer certificate: CN=server_nick, 2048 bit RSA, cipher: TLS_AES_256_GCM_SHA384 TLSv1.3 Kx=any Au=any Enc=AESGCM(256) Mac=AEAD
[Dec 21, 2021, 22:26:56] Session is ACTIVE
[Dec 21, 2021, 22:26:56] EVENT: GET_CONFIG [Dec 21, 2021, 22:26:56] Sending PUSH_REQUEST to server...
[Dec 21, 2021, 22:26:56] OPTIONS:
0 [route] [172.xxx.xxx.0] [255.255.255.0]
1 [topology] [subnet]
2 [route] [172.xxx.xxx.0] [255.255.255.0]
3 [ping] [10]
4 [ping-restart] [120]
5 [ifconfig] [172.xxx.xxx.3] [255.255.255.0]
6 [peer-id] [1]
7 [cipher] [AES-256-GCM]
[Dec 21, 2021, 22:26:56] PROTOCOL OPTIONS:
cipher: AES-256-GCM
digest: NONE
key-derivation: OpenVPN PRF
compress: NONE
peer ID: 1
control channel: tls-crypt enabled
[Dec 21, 2021, 22:26:56] EVENT: ASSIGN_IP [Dec 21, 2021, 22:26:56] CAPTURED OPTIONS:
Session Name: mydomain.com
Layer: OSI_LAYER_3
Remote Address: 151.xxx.xxx.159
Tunnel Addresses:
172.xxx.xxx.3/24 -> UNSPEC
Reroute Gateway: IPv4=0 IPv6=0 flags=[ IPv4 ]
Block IPv6: no
Add Routes:
172.xxx.xxx.0/24
172.xxx.xxx.0/24
Exclude Routes:
DNS Servers:
Search Domains:
[Dec 21, 2021, 22:26:56] SetupClient: transmitting tun setup list to \\.\pipe\agent_ovpnconnect
{
"allow_local_dns_resolvers" : false,
"confirm_event" : "0411000000000000",
"destroy_event" : "7c10000000000000",
"tun" :
{
"adapter_domain_suffix" : "",
"add_routes" :
[
{
"address" : "172.xxx.xxx.0",
"gateway" : "",
"ipv6" : false,
"metric" : -1,
"net30" : false,
"prefix_length" : 24
},
{
"address" : "172.xxx.xxx.0",
"gateway" : "",
"ipv6" : false,
"metric" : -1,
"net30" : false,
"prefix_length" : 24
}
],
"block_ipv6" : false,
"layer" : 3,
"mtu" : 0,
"remote_address" :
{
"address" : "151.xxx.xxx.159",
"ipv6" : false
},
"reroute_gw" :
{
"flags" : 256,
"ipv4" : false,
"ipv6" : false
},
"route_metric_default" : -1,
"session_name" : "mydomain.com",
"tunnel_address_index_ipv4" : 0,
"tunnel_address_index_ipv6" : -1,
"tunnel_addresses" :
[
{
"address" : "172.xxx.xxx.3",
"gateway" : "UNSPEC",
"ipv6" : false,
"metric" : -1,
"net30" : false,
"prefix_length" : 24
}
]
},
"wintun" : false
}
POST np://[\\.\pipe\agent_ovpnconnect]/tun-setup : 400 Bad Request
ip_exception: error parsing tunnel_addresses[0].gateway IP address 'UNSPEC' : An invalid argument was supplied.
[Dec 21, 2021, 22:26:56] TUN Error: ovpnagent: request error
[Dec 21, 2021, 22:26:56] EVENT: TUN_SETUP_FAILED ovpnagent: request error[Dec 21, 2021, 22:26:56] EVENT: DISCONNECTED [Dec 21, 2021, 22:26:56] Client exception in transport_recv: tun_exception: not connected