Page 1 of 1

Connecting: Wait TapEmulator

Posted: Thu Sep 24, 2020 10:59 am
by juanjo.s2
Hi,

I'm using a vpn profile with tap device which is working seamesly on a Raspberry PI 3B, but with VPN Client Pro it connects but it stucks on "Connecting: Wait TapEmulator".

On the openvpn server I can see the device is connected but I don't receive any traffic of other devices on the network.

Re: Connecting: Wait TapEmulator

Posted: Thu Sep 24, 2020 5:05 pm
by admin
Please, can you post the VPN log?

Here the steps to get the log:
  • tap on VPN profile name
  • tap on LOG tab
  • tap on top right icon with 3 dots
  • tap on "Export log"

Re: Connecting: Wait TapEmulator

Posted: Tue Sep 29, 2020 1:53 pm
by juanjo.s2
Hi, there is the log dump.

2020-09-24 12:27:51 VpnClientPro-google-api15-release-1.00.53 (12010053)
2020-09-24 12:27:51 Connecting request by user
2020-09-24 12:27:51 Current Parameter Settings:
2020-09-24 12:27:51 config = '/data/user/0/it.colucciweb.vpnclientpro/files/temp/128696fe-4786-4076-bb9c-178ee281f0d7.conf'
2020-09-24 12:27:51 mode = 0
2020-09-24 12:27:51 persist_config = DISABLED
2020-09-24 12:27:51 persist_mode = 1
2020-09-24 12:27:51 show_ciphers = DISABLED
2020-09-24 12:27:51 show_digests = DISABLED
2020-09-24 12:27:51 show_engines = DISABLED
2020-09-24 12:27:51 genkey = DISABLED
2020-09-24 12:27:51 key_pass_file = '[UNDEF]'
2020-09-24 12:27:51 show_tls_ciphers = DISABLED
2020-09-24 12:27:51 Connection profiles [default]:
2020-09-24 12:27:51 proto = udp
2020-09-24 12:27:51 local = '[UNDEF]'
2020-09-24 12:27:51 local_port = 1194
2020-09-24 12:27:51 remote = '[UNDEF]'
2020-09-24 12:27:51 remote_port = 1194
2020-09-24 12:27:51 remote_float = DISABLED
2020-09-24 12:27:51 bind_defined = DISABLED
2020-09-24 12:27:51 bind_local = ENABLED
2020-09-24 12:27:51 connect_retry_seconds = 5
2020-09-24 12:27:51 connect_timeout = 10
2020-09-24 12:27:51 connect_retry_max = 0
2020-09-24 12:27:51 xormethod = 0
2020-09-24 12:27:51 xormask = ''
2020-09-24 12:27:51 xormasklen = 0
2020-09-24 12:27:51 socks_proxy_server = '[UNDEF]'
2020-09-24 12:27:51 socks_proxy_port = 0
2020-09-24 12:27:51 socks_proxy_retry = DISABLED
2020-09-24 12:27:51 tun_mtu = 1500
2020-09-24 12:27:51 tun_mtu_defined = DISABLED
2020-09-24 12:27:51 link_mtu = 1500
2020-09-24 12:27:51 link_mtu_defined = DISABLED
2020-09-24 12:27:51 tun_mtu_extra = 0
2020-09-24 12:27:51 tun_mtu_extra_defined = DISABLED
2020-09-24 12:27:51 mtu_discover_type = -1
2020-09-24 12:27:51 fragment = 0
2020-09-24 12:27:51 mssfix = 1450
2020-09-24 12:27:51 explicit_exit_notification = 0
2020-09-24 12:27:51 Connection profiles [0]:
2020-09-24 12:27:51 proto = udp
2020-09-24 12:27:51 local = '[UNDEF]'
2020-09-24 12:27:51 local_port = 0
2020-09-24 12:27:51 remote = 'redacted.domain.tld'
2020-09-24 12:27:51 remote_port = 11008
2020-09-24 12:27:51 remote_float = DISABLED
2020-09-24 12:27:51 bind_defined = DISABLED
2020-09-24 12:27:51 bind_local = DISABLED
2020-09-24 12:27:51 connect_retry_seconds = 5
2020-09-24 12:27:51 connect_timeout = 10
2020-09-24 12:27:51 connect_retry_max = 0
2020-09-24 12:27:51 xormethod = 0
2020-09-24 12:27:51 xormask = ''
2020-09-24 12:27:51 xormasklen = 0
2020-09-24 12:27:51 socks_proxy_server = '[UNDEF]'
2020-09-24 12:27:51 socks_proxy_port = 0
2020-09-24 12:27:51 socks_proxy_retry = DISABLED
2020-09-24 12:27:51 tun_mtu = 1500
2020-09-24 12:27:51 tun_mtu_defined = ENABLED
2020-09-24 12:27:51 link_mtu = 1500
2020-09-24 12:27:51 link_mtu_defined = DISABLED
2020-09-24 12:27:51 tun_mtu_extra = 32
2020-09-24 12:27:51 tun_mtu_extra_defined = ENABLED
2020-09-24 12:27:51 mtu_discover_type = -1
2020-09-24 12:27:51 fragment = 0
2020-09-24 12:27:51 mssfix = 1450
2020-09-24 12:27:51 explicit_exit_notification = 0
2020-09-24 12:27:51 Connection profiles END
2020-09-24 12:27:51 remote_random = DISABLED
2020-09-24 12:27:51 ipchange = '[UNDEF]'
2020-09-24 12:27:51 dev = 'tap'
2020-09-24 12:27:51 dev_type = '[UNDEF]'
2020-09-24 12:27:51 dev_node = '[UNDEF]'
2020-09-24 12:27:51 lladdr = '[UNDEF]'
2020-09-24 12:27:51 topology = 1
2020-09-24 12:27:51 tun_ipv6 = DISABLED
2020-09-24 12:27:51 ifconfig_local = '[UNDEF]'
2020-09-24 12:27:51 ifconfig_remote_netmask = '[UNDEF]'
2020-09-24 12:27:51 ifconfig_noexec = DISABLED
2020-09-24 12:27:51 ifconfig_nowarn = DISABLED
2020-09-24 12:27:51 ifconfig_ipv6_local = '[UNDEF]'
2020-09-24 12:27:51 ifconfig_ipv6_netbits = 0
2020-09-24 12:27:51 ifconfig_ipv6_remote = '[UNDEF]'
2020-09-24 12:27:51 shaper = 0
2020-09-24 12:27:51 mtu_test = 0
2020-09-24 12:27:51 mlock = DISABLED
2020-09-24 12:27:51 keepalive_ping = 10
2020-09-24 12:27:51 keepalive_timeout = 60
2020-09-24 12:27:51 inactivity_timeout = 0
2020-09-24 12:27:51 ping_send_timeout = 10
2020-09-24 12:27:51 ping_rec_timeout = 60
2020-09-24 12:27:51 ping_rec_timeout_action = 2
2020-09-24 12:27:51 ping_timer_remote = DISABLED
2020-09-24 12:27:51 remap_sigusr1 = 0
2020-09-24 12:27:51 persist_tun = DISABLED
2020-09-24 12:27:51 persist_local_ip = DISABLED
2020-09-24 12:27:51 persist_remote_ip = DISABLED
2020-09-24 12:27:51 persist_key = DISABLED
2020-09-24 12:27:51 passtos = DISABLED
2020-09-24 12:27:51 resolve_retry_seconds = 1000000000
2020-09-24 12:27:51 username = '[UNDEF]'
2020-09-24 12:27:51 groupname = '[UNDEF]'
2020-09-24 12:27:51 chroot_dir = '[UNDEF]'
2020-09-24 12:27:51 cd_dir = '[UNDEF]'
2020-09-24 12:27:51 writepid = '[UNDEF]'
2020-09-24 12:27:51 up_script = '[UNDEF]'
2020-09-24 12:27:51 down_script = '[UNDEF]'
2020-09-24 12:27:51 down_pre = DISABLED
2020-09-24 12:27:51 up_restart = DISABLED
2020-09-24 12:27:51 up_delay = DISABLED
2020-09-24 12:27:51 daemon = DISABLED
2020-09-24 12:27:51 inetd = 0
2020-09-24 12:27:51 log = DISABLED
2020-09-24 12:27:51 suppress_timestamps = ENABLED
2020-09-24 12:27:51 nice = 0
2020-09-24 12:27:51 verbosity = 5
2020-09-24 12:27:51 mute = 0
2020-09-24 12:27:51 gremlin = 0
2020-09-24 12:27:51 status_file = '[UNDEF]'
2020-09-24 12:27:51 status_file_version = 1
2020-09-24 12:27:51 status_file_update_freq = 60
2020-09-24 12:27:51 occ = ENABLED
2020-09-24 12:27:51 rcvbuf = 65536
2020-09-24 12:27:51 sndbuf = 65536
2020-09-24 12:27:51 sockflags = 0
2020-09-24 12:27:51 fast_io = DISABLED
2020-09-24 12:27:51 lzo = 0
2020-09-24 12:27:51 route_script = '[UNDEF]'
2020-09-24 12:27:51 route_default_gateway = '[UNDEF]'
2020-09-24 12:27:51 route_default_metric = 0
2020-09-24 12:27:51 route_noexec = DISABLED
2020-09-24 12:27:51 route_delay = 0
2020-09-24 12:27:51 route_delay_window = 30
2020-09-24 12:27:51 route_delay_defined = DISABLED
2020-09-24 12:27:51 route_nopull = DISABLED
2020-09-24 12:27:51 route_gateway_via_dhcp = DISABLED
2020-09-24 12:27:51 max_routes = 100
2020-09-24 12:27:51 allow_pull_fqdn = DISABLED
2020-09-24 12:27:51 shared_secret_file = '[UNDEF]'
2020-09-24 12:27:51 key_direction = 2
2020-09-24 12:27:51 ciphername_defined = ENABLED
2020-09-24 12:27:51 ciphername = 'AES-256-CBC'
2020-09-24 12:27:51 authname_defined = ENABLED
2020-09-24 12:27:51 authname = 'SHA256'
2020-09-24 12:27:51 prng_hash = 'SHA1'
2020-09-24 12:27:51 prng_nonce_secret_len = 16
2020-09-24 12:27:51 keysize = 0
2020-09-24 12:27:51 engine = DISABLED
2020-09-24 12:27:51 replay = ENABLED
2020-09-24 12:27:51 mute_replay_warnings = DISABLED
2020-09-24 12:27:51 replay_window = 64
2020-09-24 12:27:51 replay_time = 15
2020-09-24 12:27:51 packet_id_file = '[UNDEF]'
2020-09-24 12:27:51 use_iv = ENABLED
2020-09-24 12:27:51 test_crypto = DISABLED
2020-09-24 12:27:51 tls_server = DISABLED
2020-09-24 12:27:51 tls_client = ENABLED
2020-09-24 12:27:51 key_method = 2
2020-09-24 12:27:51 ca_file = '[[INLINE]]'
2020-09-24 12:27:51 ca_path = '[UNDEF]'
2020-09-24 12:27:51 dh_file = '[UNDEF]'
2020-09-24 12:27:51 cert_file = '[[INLINE]]'
2020-09-24 12:27:51 priv_key_file = '[[INLINE]]'
2020-09-24 12:27:51 pkcs12_file = '[UNDEF]'
2020-09-24 12:27:51 cipher_list = '[UNDEF]'
2020-09-24 12:27:51 tls_verify = '[UNDEF]'
2020-09-24 12:27:51 tls_export_cert = '[UNDEF]'
2020-09-24 12:27:51 verify_x509_type = 0
2020-09-24 12:27:51 verify_x509_name = '[UNDEF]'
2020-09-24 12:27:51 crl_file = '[UNDEF]'
2020-09-24 12:27:51 ns_cert_type = 0
2020-09-24 12:27:51 remote_cert_ku = 160
2020-09-24 12:27:51 remote_cert_ku = 136
2020-09-24 12:27:51 remote_cert_ku = 0
2020-09-24 12:27:51 remote_cert_ku = 0
2020-09-24 12:27:51 remote_cert_ku = 0
2020-09-24 12:27:51 remote_cert_ku = 0
2020-09-24 12:27:51 remote_cert_ku = 0
2020-09-24 12:27:51 remote_cert_ku = 0
2020-09-24 12:27:51 remote_cert_ku = 0
2020-09-24 12:27:51 remote_cert_ku = 0
2020-09-24 12:27:51 remote_cert_ku[i] = 0
2020-09-24 12:27:51 remote_cert_ku[i] = 0
2020-09-24 12:27:51 remote_cert_ku[i] = 0
2020-09-24 12:27:51 remote_cert_ku[i] = 0
2020-09-24 12:27:51 remote_cert_ku[i] = 0
2020-09-24 12:27:51 remote_cert_ku[i] = 0
2020-09-24 12:27:51 remote_cert_eku = 'TLS Web Server Authentication'
2020-09-24 12:27:51 ssl_flags = 0
2020-09-24 12:27:51 tls_timeout = 2
2020-09-24 12:27:51 renegotiate_bytes = 0
2020-09-24 12:27:51 renegotiate_packets = 0
2020-09-24 12:27:51 renegotiate_seconds = 3600
2020-09-24 12:27:51 handshake_window = 60
2020-09-24 12:27:51 transition_window = 3600
2020-09-24 12:27:51 single_session = DISABLED
2020-09-24 12:27:51 push_peer_info = DISABLED
2020-09-24 12:27:51 tls_exit = DISABLED
2020-09-24 12:27:51 tls_auth_file = '[[INLINE]]'
2020-09-24 12:27:51 client = ENABLED
2020-09-24 12:27:51 pull = ENABLED
2020-09-24 12:27:51 auth_user_pass_file = '[UNDEF]'
2020-09-24 12:27:51 OpenVPN 2.3.2 android-armeabi-v7a [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Sep 14 2020
2020-09-24 12:27:51 Control Channel Authentication: tls-auth using INLINE static key file
2020-09-24 12:27:51 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2020-09-24 12:27:51 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
2020-09-24 12:27:51 Control Channel MTU parms [ L:1601 D:178 EF:78 EB:0 ET:0 EL:0 ]
2020-09-24 12:27:51 Socket Buffers: R=[163840->131072] S=[163840->131072]
2020-09-24 12:27:51 Data Channel MTU parms [ L:1601 D:1450 EF:69 EB:4 ET:32 EL:0 ]
2020-09-24 12:27:51 Local Options String: 'V4,dev-type tap,link-mtu 1601,tun-mtu 1532,proto UDPv4,keydir 1,cipher AES-256-CBC,auth SHA256,keysize 256,tls-auth,key-method 2,tls-client'
2020-09-24 12:27:51 Expected Remote Options String: 'V4,dev-type tap,link-mtu 1601,tun-mtu 1532,proto UDPv4,keydir 0,cipher AES-256-CBC,auth SHA256,keysize 256,tls-auth,key-method 2,tls-server'
2020-09-24 12:27:51 Local Options hash (VER=V4): 'd609428d'
2020-09-24 12:27:51 Expected Remote Options hash (VER=V4): 'df325eff'
2020-09-24 12:27:51 UDPv4 link local: [undef]
2020-09-24 12:27:51 UDPv4 link remote: [AF_INET]re.da.ct.ed:11008
2020-09-24 12:27:51 W
2020-09-24 12:27:51 R
2020-09-24 12:27:51 TLS: Initial packet from [AF_INET]re.da.ct.ed:11008, sid=ed8b6aab 2126c8dd
2020-09-24 12:27:51 W
.....
2020-09-24 12:27:51 R
2020-09-24 12:27:51 VERIFY OK: depth=1, CN=ChangeMe
2020-09-24 12:27:51 Validating certificate key usage
2020-09-24 12:27:51 ++ Certificate has key usage 00a0, expects 00a0
2020-09-24 12:27:51 VERIFY KU OK
2020-09-24 12:27:51 Validating certificate extended key usage
2020-09-24 12:27:51 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
2020-09-24 12:27:51 VERIFY EKU OK
2020-09-24 12:27:51 VERIFY OK: depth=0, CN=server
.....
2020-09-24 12:27:52 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
2020-09-24 12:27:52 Data Channel Encrypt: Using 256 bit message hash 'SHA256' for HMAC authentication
2020-09-24 12:27:52 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
2020-09-24 12:27:52 Data Channel Decrypt: Using 256 bit message hash 'SHA256' for HMAC authentication
2020-09-24 12:27:52 W
2020-09-24 12:27:52 Control Channel: TLSv1, cipher TLSv1/SSLv3 ECDHE-RSA-AES256-SHA, 2048 bit RSA
2020-09-24 12:27:52 [server] Peer Connection Initiated with [AF_INET]re.da.ct.ed:11008
2020-09-24 12:27:54 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
2020-09-24 12:27:54 W
2020-09-24 12:27:54 R
2020-09-24 12:27:54 R
2020-09-24 12:27:54 PUSH: Received control message: 'PUSH_REPLY,route-gateway dhcp,ping 10,ping-restart 120'
2020-09-24 12:27:54 OPTIONS IMPORT: timers and/or timeouts modified
2020-09-24 12:27:54 OPTIONS IMPORT: route-related options modified
2020-09-24 12:27:54 DHCP client started
2020-09-24 12:27:54 TUN/TAP device opened
2020-09-24 12:27:54 Initialization Sequence Completed
2020-09-24 12:27:54 W
2020-09-24 12:27:54 r
2020-09-24 12:27:54 W
2020-09-24 12:27:56 DHCP client timeout
2020-09-24 12:27:56 DHCP client started
...
2020-09-24 12:33:44 DHCP client timeout
2020-09-24 12:33:44 DHCP client started
...
2020-09-24 13:10:33 Disconnecting request by user
2020-09-24 13:10:33 Disconnecting...
2020-09-24 13:10:33 TCP/UDP: Closing socket
2020-09-24 13:10:33 Closing TUN/TAP interface
2020-09-24 13:10:33 SIGINT[soft,] received, process exiting

Re: Connecting: Wait TapEmulator

Posted: Tue Sep 29, 2020 5:32 pm
by admin
This happens because the client cannot obtain a ip address from the DHCP server.
Please, try to set the ip address manually.
Here the steps:
  • edit the VPN profile
  • tap on "Options"
  • select "Set IPv4 address" and fill the below fields

Re: Connecting: Wait TapEmulator

Posted: Wed Sep 30, 2020 2:22 pm
by juanjo.s2
I'm not using ip addresses on the tap connection, are they mandatory?

Re: Connecting: Wait TapEmulator

Posted: Wed Sep 30, 2020 4:51 pm
by admin
yes, it's mandatory.
The ip address can be assigned manually or with a DHCP server