Page 1 of 2

OpenVPN tries to connect to my home router continuously

Posted: Wed Mar 06, 2019 2:27 pm
by Econdoc
OpenVPN seems to work correctly when I am away from home. When on my home network, I see in my router logs that OpenVPN attempts constantly to connect to my home network. Here is a sample message from my router logs:

[OpenVPN, connection fail]IP address:192.168.1.51 Wednesday, Mar 06,2019 09:19:39

I have tried to prevent this from happening by adding my SSID to the settings under Auto Connect > Connect when the WiFi is connected but not to these SSIDs.

It does not seem to affect the failed connection attempts.

Is this the way it is supposed to work?

Re: OpenVPN tries to connect to my home router continuously

Posted: Wed Mar 06, 2019 3:05 pm
by admin
Hi,

do you have also selected the option "Disconnect when the WiFi is down"?

Re: OpenVPN tries to connect to my home router continuously

Posted: Wed Mar 06, 2019 3:20 pm
by Econdoc
Yes. Is that a poor choice?

Re: OpenVPN tries to connect to my home router continuously

Posted: Wed Mar 06, 2019 3:26 pm
by admin
Econdoc wrote: Wed Mar 06, 2019 3:20 pm Yes. Is that a poor choice?
No, it's correct.

Do you use Android 8.1 or later?
If so, you must enable the Android's Location (GPS) feature, otherwise is not possible to obtain the current WiFi SSID.

Re: OpenVPN tries to connect to my home router continuously

Posted: Wed Mar 06, 2019 3:37 pm
by Econdoc
I am using Android 9. Location is always on for this OS.

Re: OpenVPN tries to connect to my home router continuously

Posted: Wed Mar 06, 2019 3:49 pm
by admin
please, can you follow these steps?
  • turn off the WiFi
  • start the VPN
  • turn on the WiFi and connect to your home SSID
  • goto to VPN log tab
  • tap on the top right 3 dots icon
  • tap on "Export log"
  • post the log (if you wish you can strip the ip addresses)

Re: OpenVPN tries to connect to my home router continuously

Posted: Wed Mar 06, 2019 3:58 pm
by Econdoc

Code: Select all

2019-03-06 10:52:43 OpenVpnClient-google-api27-release-2.20.14 (22022014)
2019-03-06 10:52:43 Connecting request by user
2019-03-06 10:52:43 Current Parameter Settings:
2019-03-06 10:52:43   config = '/data/user/0/it.colucciweb.openvpn/files/temp/c1757431-959c-49ef-a369-0264dcb1d081.conf'
2019-03-06 10:52:43   mode = 0
2019-03-06 10:52:43   persist_config = DISABLED
2019-03-06 10:52:43   persist_mode = 1
2019-03-06 10:52:43   show_ciphers = DISABLED
2019-03-06 10:52:43   show_digests = DISABLED
2019-03-06 10:52:43   show_engines = DISABLED
2019-03-06 10:52:43   genkey = DISABLED
2019-03-06 10:52:43   key_pass_file = '[UNDEF]'
2019-03-06 10:52:43   show_tls_ciphers = DISABLED
2019-03-06 10:52:43   connect_retry_max = 0
2019-03-06 10:52:43 Connection profiles [0]:
2019-03-06 10:52:43   proto = udp
2019-03-06 10:52:43   local = '[UNDEF]'
2019-03-06 10:52:43   local_port = '[UNDEF]'
2019-03-06 10:52:43   remote = 'abcdefghi.no-ip.info'
2019-03-06 10:52:43   remote_port = '1194'
2019-03-06 10:52:43   remote_float = DISABLED
2019-03-06 10:52:43   bind_defined = DISABLED
2019-03-06 10:52:43   bind_local = DISABLED
2019-03-06 10:52:43   bind_ipv6_only = DISABLED
2019-03-06 10:52:43   connect_retry_seconds = 5
2019-03-06 10:52:43   connect_timeout = 120
2019-03-06 10:52:43   xormethod = 0
2019-03-06 10:52:43   xormask = ''
2019-03-06 10:52:43   xormasklen = 0
2019-03-06 10:52:43   socks_proxy_server = '[UNDEF]'
2019-03-06 10:52:43   socks_proxy_port = '[UNDEF]'
2019-03-06 10:52:43   tun_mtu = 1500
2019-03-06 10:52:43   tun_mtu_defined = ENABLED
2019-03-06 10:52:43   link_mtu = 1500
2019-03-06 10:52:43   link_mtu_defined = DISABLED
2019-03-06 10:52:43   tun_mtu_extra = 0
2019-03-06 10:52:43   tun_mtu_extra_defined = DISABLED
2019-03-06 10:52:43   mtu_discover_type = -1
2019-03-06 10:52:43   fragment = 0
2019-03-06 10:52:43   mssfix = 1450
2019-03-06 10:52:43   explicit_exit_notification = 0
2019-03-06 10:52:43 Connection profiles END
2019-03-06 10:52:43   remote_random = DISABLED
2019-03-06 10:52:43   ipchange = '[UNDEF]'
2019-03-06 10:52:43   dev = 'tun'
2019-03-06 10:52:43   dev_type = '[UNDEF]'
2019-03-06 10:52:43   dev_node = '[UNDEF]'
2019-03-06 10:52:43   lladdr = '[UNDEF]'
2019-03-06 10:52:43   topology = 1
2019-03-06 10:52:43   ifconfig_local = '[UNDEF]'
2019-03-06 10:52:43   ifconfig_remote_netmask = '[UNDEF]'
2019-03-06 10:52:43   ifconfig_noexec = DISABLED
2019-03-06 10:52:43   ifconfig_nowarn = DISABLED
2019-03-06 10:52:43   ifconfig_ipv6_local = '[UNDEF]'
2019-03-06 10:52:43   ifconfig_ipv6_netbits = 0
2019-03-06 10:52:43   ifconfig_ipv6_remote = '[UNDEF]'
2019-03-06 10:52:43   shaper = 0
2019-03-06 10:52:43   mtu_test = 0
2019-03-06 10:52:43   mlock = DISABLED
2019-03-06 10:52:43   keepalive_ping = 0
2019-03-06 10:52:43   keepalive_timeout = 0
2019-03-06 10:52:43   inactivity_timeout = 0
2019-03-06 10:52:43   ping_send_timeout = 0
2019-03-06 10:52:43   ping_rec_timeout = 0
2019-03-06 10:52:43   ping_rec_timeout_action = 0
2019-03-06 10:52:43   ping_timer_remote = DISABLED
2019-03-06 10:52:43   remap_sigusr1 = 0
2019-03-06 10:52:43   persist_tun = DISABLED
2019-03-06 10:52:43   persist_local_ip = DISABLED
2019-03-06 10:52:43   persist_remote_ip = DISABLED
2019-03-06 10:52:43   persist_key = DISABLED
2019-03-06 10:52:43   passtos = DISABLED
2019-03-06 10:52:43   resolve_retry_seconds = 1000000000
2019-03-06 10:52:43   resolve_in_advance = DISABLED
2019-03-06 10:52:43   username = '[UNDEF]'
2019-03-06 10:52:43   groupname = '[UNDEF]'
2019-03-06 10:52:43   chroot_dir = '[UNDEF]'
2019-03-06 10:52:43   cd_dir = '[UNDEF]'
2019-03-06 10:52:43   writepid = '[UNDEF]'
2019-03-06 10:52:43   up_script = '[UNDEF]'
2019-03-06 10:52:43   down_script = '[UNDEF]'
2019-03-06 10:52:43   down_pre = DISABLED
2019-03-06 10:52:43   up_restart = DISABLED
2019-03-06 10:52:43   up_delay = DISABLED
2019-03-06 10:52:43   daemon = DISABLED
2019-03-06 10:52:43   inetd = 0
2019-03-06 10:52:43   log = DISABLED
2019-03-06 10:52:43   suppress_timestamps = ENABLED
2019-03-06 10:52:43   machine_readable_output = DISABLED
2019-03-06 10:52:43   nice = 0
2019-03-06 10:52:43   verbosity = 5
2019-03-06 10:52:43   mute = 0
2019-03-06 10:52:43   gremlin = 0
2019-03-06 10:52:43   status_file = '[UNDEF]'
2019-03-06 10:52:43   status_file_version = 1
2019-03-06 10:52:43   status_file_update_freq = 60
2019-03-06 10:52:43   occ = ENABLED
2019-03-06 10:52:43   rcvbuf = 0
2019-03-06 10:52:43   sndbuf = 0
2019-03-06 10:52:43   sockflags = 0
2019-03-06 10:52:43   fast_io = DISABLED
2019-03-06 10:52:43   comp.alg = 2
2019-03-06 10:52:43   comp.flags = 1
2019-03-06 10:52:43   route_script = '[UNDEF]'
2019-03-06 10:52:43   route_default_gateway = '[UNDEF]'
2019-03-06 10:52:43   route_default_metric = 0
2019-03-06 10:52:43   route_noexec = DISABLED
2019-03-06 10:52:43   route_delay = 0
2019-03-06 10:52:43   route_delay_window = 30
2019-03-06 10:52:43   route_delay_defined = DISABLED
2019-03-06 10:52:43   route_nopull = DISABLED
2019-03-06 10:52:43   route_gateway_via_dhcp = DISABLED
2019-03-06 10:52:43   allow_pull_fqdn = DISABLED
2019-03-06 10:52:43   [redirect_default_gateway local=0]
2019-03-06 10:52:43   route 192.168.1.51/255.255.255.0/net_gateway/default (not set)
2019-03-06 10:52:43   shared_secret_file = '[UNDEF]'
2019-03-06 10:52:43   key_direction = not set
2019-03-06 10:52:43   ciphername = 'AES-128-CBC'
2019-03-06 10:52:43   ncp_enabled = ENABLED
2019-03-06 10:52:43   ncp_ciphers = 'AES-256-GCM:AES-128-GCM'
2019-03-06 10:52:43   authname = 'SHA1'
2019-03-06 10:52:43   prng_hash = 'SHA1'
2019-03-06 10:52:43   prng_nonce_secret_len = 16
2019-03-06 10:52:43   keysize = 0
2019-03-06 10:52:43   engine = DISABLED
2019-03-06 10:52:43   replay = ENABLED
2019-03-06 10:52:43   mute_replay_warnings = DISABLED
2019-03-06 10:52:43   replay_window = 64
2019-03-06 10:52:43   replay_time = 15
2019-03-06 10:52:43   packet_id_file = '[UNDEF]'
2019-03-06 10:52:43   use_iv = ENABLED
2019-03-06 10:52:43   test_crypto = DISABLED
2019-03-06 10:52:43   tls_server = DISABLED
2019-03-06 10:52:43   tls_client = ENABLED
2019-03-06 10:52:43   key_method = 2
2019-03-06 10:52:43   ca_file = '[[INLINE]]'
2019-03-06 10:52:43   ca_path = '[UNDEF]'
2019-03-06 10:52:43   dh_file = '[UNDEF]'
2019-03-06 10:52:43   cert_file = '[[INLINE]]'
2019-03-06 10:52:43   extra_certs_file = '[UNDEF]'
2019-03-06 10:52:43   priv_key_file = '[[INLINE]]'
2019-03-06 10:52:43   pkcs12_file = '[UNDEF]'
2019-03-06 10:52:43   cipher_list = '[UNDEF]'
2019-03-06 10:52:43   cipher_list_tls13 = '[UNDEF]'
2019-03-06 10:52:43   tls_cert_profile = '[UNDEF]'
2019-03-06 10:52:43   tls_verify = '[UNDEF]'
2019-03-06 10:52:43   tls_export_cert = '[UNDEF]'
2019-03-06 10:52:43   verify_x509_type = 0
2019-03-06 10:52:43   verify_x509_name = '[UNDEF]'
2019-03-06 10:52:43   crl_file = '[UNDEF]'
2019-03-06 10:52:43   ns_cert_type = 0
2019-03-06 10:52:43   remote_cert_ku[i] = 0
2019-03-06 10:52:43   remote_cert_ku[i] = 0
2019-03-06 10:52:43   remote_cert_ku[i] = 0
2019-03-06 10:52:43   remote_cert_ku[i] = 0
2019-03-06 10:52:43   remote_cert_ku[i] = 0
2019-03-06 10:52:43   remote_cert_ku[i] = 0
2019-03-06 10:52:43   remote_cert_ku[i] = 0
2019-03-06 10:52:43   remote_cert_ku[i] = 0
2019-03-06 10:52:43   remote_cert_ku[i] = 0
2019-03-06 10:52:43   remote_cert_ku[i] = 0
2019-03-06 10:52:43   remote_cert_ku[i] = 0
2019-03-06 10:52:43   remote_cert_ku[i] = 0
2019-03-06 10:52:43   remote_cert_ku[i] = 0
2019-03-06 10:52:43   remote_cert_ku[i] = 0
2019-03-06 10:52:43   remote_cert_ku[i] = 0
2019-03-06 10:52:43   remote_cert_ku[i] = 0
2019-03-06 10:52:43   remote_cert_eku = '[UNDEF]'
2019-03-06 10:52:43   ssl_flags = 0
2019-03-06 10:52:43   tls_timeout = 2
2019-03-06 10:52:43   renegotiate_bytes = -1
2019-03-06 10:52:43   renegotiate_packets = 0
2019-03-06 10:52:43   renegotiate_seconds = 3600
2019-03-06 10:52:43   handshake_window = 60
2019-03-06 10:52:43   transition_window = 3600
2019-03-06 10:52:43   single_session = DISABLED
2019-03-06 10:52:43   push_peer_info = DISABLED
2019-03-06 10:52:43   tls_exit = DISABLED
2019-03-06 10:52:43   tls_auth_file = '[UNDEF]'
2019-03-06 10:52:43   tls_crypt_file = '[UNDEF]'
2019-03-06 10:52:43   client = ENABLED
2019-03-06 10:52:43   pull = ENABLED
2019-03-06 10:52:43   auth_user_pass_file = '[UNDEF]'
2019-03-06 10:52:43 OpenVPN 2.4.7 android-armeabi-v7a [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Feb 26 2019
2019-03-06 10:52:43 library versions: OpenSSL 1.1.1a  20 Nov 2018, LZO 2.10
2019-03-06 10:52:43 WARNING: No server certificate verification method has been enabled.  See http://openvpn.net/howto.html#mitm for more info.
2019-03-06 10:52:43 LZO compression initializing
2019-03-06 10:52:43 Control Channel MTU parms [ L:1622 D:1212 EF:38 EB:0 ET:0 EL:3 ]
2019-03-06 10:52:43 Data Channel MTU parms [ L:1622 D:1450 EF:122 EB:406 ET:0 EL:3 ]
2019-03-06 10:52:43 Local Options String (VER=V4): 'V4,dev-type tun,link-mtu 1558,tun-mtu 1500,proto UDPv4,comp-lzo,cipher AES-128-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
2019-03-06 10:52:43 Expected Remote Options String (VER=V4): 'V4,dev-type tun,link-mtu 1558,tun-mtu 1500,proto UDPv4,comp-lzo,cipher AES-128-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
2019-03-06 10:52:43 TCP/UDP: Preserving recently used remote address: [AF_INET]xxx.xxx.xxx.xxx:1194
2019-03-06 10:52:43 Socket Buffers: R=[163840->163840] S=[163840->163840]
2019-03-06 10:52:43 UDPv4 link local: (not bound)
2019-03-06 10:52:43 UDPv4 link remote: [AF_INET]xxx.xxx.xxx.xxx:1194
2019-03-06 10:52:43 W
2019-03-06 10:52:43 R
2019-03-06 10:52:43 TCP/UDP: Incoming packet rejected from [AF_INET]192.168.1.1:1194[2], expected peer address: [AF_INET]xxx.xxx.xxx.xxx:1194 (allow this incoming source address/port by removing --remote or adding --float)
2019-03-06 10:52:45 W
2019-03-06 10:52:45 R
2019-03-06 10:52:45 TCP/UDP: Incoming packet rejected from [AF_INET]192.168.1.1:1194[2], expected peer address: [AF_INET]xxx.xxx.xxx.xxx:1194 (allow this incoming source address/port by removing --remote or adding --float)
2019-03-06 10:52:49 R
2019-03-06 10:52:49 TCP/UDP: Incoming packet rejected from [AF_INET]192.168.1.1:1194[2], expected peer address: [AF_INET]xxx.xxx.xxx.xxx:1194 (allow this incoming source address/port by removing --remote or adding --float)
2019-03-06 10:52:49 W
2019-03-06 10:52:49 R
2019-03-06 10:52:49 TCP/UDP: Incoming packet rejected from [AF_INET]192.168.1.1:1194[2], expected peer address: [AF_INET]xxx.xxx.xxx.xxx:1194 (allow this incoming source address/port by removing --remote or adding --float)
2019-03-06 10:52:57 W
2019-03-06 10:52:57 R
2019-03-06 10:52:57 TCP/UDP: Incoming packet rejected from [AF_INET]192.168.1.1:1194[2], expected peer address: [AF_INET]xxx.xxx.xxx.xxx:1194 (allow this incoming source address/port by removing --remote or adding --float)
2019-03-06 10:52:57 R
2019-03-06 10:52:57 TCP/UDP: Incoming packet rejected from [AF_INET]192.168.1.1:1194[2], expected peer address: [AF_INET]xxx.xxx.xxx.xxx:1194 (allow this incoming source address/port by removing --remote or adding --float)
2019-03-06 10:53:13 R
2019-03-06 10:53:13 TCP/UDP: Incoming packet rejected from [AF_INET]192.168.1.1:1194[2], expected peer address: [AF_INET]xxx.xxx.xxx.xxx:1194 (allow this incoming source address/port by removing --remote or adding --float)
2019-03-06 10:53:13 W
2019-03-06 10:53:13 R
2019-03-06 10:53:13 TCP/UDP: Incoming packet rejected from [AF_INET]192.168.1.1:1194[2], expected peer address: [AF_INET]xxx.xxx.xxx.xxx:1194 (allow this incoming source address/port by removing --remote or adding --float)
2019-03-06 10:53:43 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
2019-03-06 10:53:43 TLS Error: TLS handshake failed
2019-03-06 10:53:43 TCP/UDP: Closing socket
2019-03-06 10:53:43 SIGUSR1[soft,tls-error] received, process restarting
2019-03-06 10:53:43 Restart pause, 5 second(s)

Re: OpenVPN tries to connect to my home router continuously

Posted: Wed Mar 06, 2019 4:20 pm
by admin
I don't see the messages "Connectivity change detected:"
These messages are logged every time the device's connectivity change

Please can you try again with these steps:
  • turn on the WiFi
  • start the VPN
  • turn off the WiFi
  • wait some seconds
  • turn on the WiFi
  • wait some seconds
  • disconnect the VPN
  • export the log
P.S.
The log verbosity is too high is better to set it at 4:
  • edit the VPN
  • tap "Custom options"
  • tap on verb option and set the value to 4
  • save the changes
I changed your last post to wrap the log content in "code" tag, so it's more readable.

Re: OpenVPN tries to connect to my home router continuously

Posted: Wed Mar 06, 2019 4:28 pm
by Econdoc

Code: Select all

2019-03-06 11:23:56 OpenVpnClient-google-api27-release-2.20.14 (22022014)
2019-03-06 11:23:56 Connecting request by user
2019-03-06 11:23:56 Current Parameter Settings:
2019-03-06 11:23:56   config = '/data/user/0/it.colucciweb.openvpn/files/temp/c1757431-959c-49ef-a369-0264dcb1d081.conf'
2019-03-06 11:23:56   mode = 0
2019-03-06 11:23:56   persist_config = DISABLED
2019-03-06 11:23:56   persist_mode = 1
2019-03-06 11:23:56   show_ciphers = DISABLED
2019-03-06 11:23:56   show_digests = DISABLED
2019-03-06 11:23:56   show_engines = DISABLED
2019-03-06 11:23:56   genkey = DISABLED
2019-03-06 11:23:56   key_pass_file = '[UNDEF]'
2019-03-06 11:23:56   show_tls_ciphers = DISABLED
2019-03-06 11:23:56   connect_retry_max = 0
2019-03-06 11:23:56 Connection profiles [0]:
2019-03-06 11:23:56   proto = udp
2019-03-06 11:23:56   local = '[UNDEF]'
2019-03-06 11:23:56   local_port = '[UNDEF]'
2019-03-06 11:23:56   remote = 'abcdefghi.no-ip.info'
2019-03-06 11:23:56   remote_port = '1194'
2019-03-06 11:23:56   remote_float = DISABLED
2019-03-06 11:23:56   bind_defined = DISABLED
2019-03-06 11:23:56   bind_local = DISABLED
2019-03-06 11:23:56   bind_ipv6_only = DISABLED
2019-03-06 11:23:56   connect_retry_seconds = 5
2019-03-06 11:23:56   connect_timeout = 120
2019-03-06 11:23:56   xormethod = 0
2019-03-06 11:23:56   xormask = ''
2019-03-06 11:23:56   xormasklen = 0
2019-03-06 11:23:56   socks_proxy_server = '[UNDEF]'
2019-03-06 11:23:56   socks_proxy_port = '[UNDEF]'
2019-03-06 11:23:56   tun_mtu = 1500
2019-03-06 11:23:56   tun_mtu_defined = ENABLED
2019-03-06 11:23:56   link_mtu = 1500
2019-03-06 11:23:56   link_mtu_defined = DISABLED
2019-03-06 11:23:56   tun_mtu_extra = 0
2019-03-06 11:23:56   tun_mtu_extra_defined = DISABLED
2019-03-06 11:23:56   mtu_discover_type = -1
2019-03-06 11:23:56   fragment = 0
2019-03-06 11:23:56   mssfix = 1450
2019-03-06 11:23:56   explicit_exit_notification = 0
2019-03-06 11:23:56 Connection profiles END
2019-03-06 11:23:56   remote_random = DISABLED
2019-03-06 11:23:56   ipchange = '[UNDEF]'
2019-03-06 11:23:56   dev = 'tun'
2019-03-06 11:23:56   dev_type = '[UNDEF]'
2019-03-06 11:23:56   dev_node = '[UNDEF]'
2019-03-06 11:23:56   lladdr = '[UNDEF]'
2019-03-06 11:23:56   topology = 1
2019-03-06 11:23:56   ifconfig_local = '[UNDEF]'
2019-03-06 11:23:56   ifconfig_remote_netmask = '[UNDEF]'
2019-03-06 11:23:56   ifconfig_noexec = DISABLED
2019-03-06 11:23:56   ifconfig_nowarn = DISABLED
2019-03-06 11:23:56   ifconfig_ipv6_local = '[UNDEF]'
2019-03-06 11:23:56   ifconfig_ipv6_netbits = 0
2019-03-06 11:23:56   ifconfig_ipv6_remote = '[UNDEF]'
2019-03-06 11:23:56   shaper = 0
2019-03-06 11:23:56   mtu_test = 0
2019-03-06 11:23:56   mlock = DISABLED
2019-03-06 11:23:56   keepalive_ping = 0
2019-03-06 11:23:56   keepalive_timeout = 0
2019-03-06 11:23:56   inactivity_timeout = 0
2019-03-06 11:23:56   ping_send_timeout = 0
2019-03-06 11:23:56   ping_rec_timeout = 0
2019-03-06 11:23:56   ping_rec_timeout_action = 0
2019-03-06 11:23:56   ping_timer_remote = DISABLED
2019-03-06 11:23:56   remap_sigusr1 = 0
2019-03-06 11:23:56   persist_tun = DISABLED
2019-03-06 11:23:56   persist_local_ip = DISABLED
2019-03-06 11:23:56   persist_remote_ip = DISABLED
2019-03-06 11:23:56   persist_key = DISABLED
2019-03-06 11:23:56   passtos = DISABLED
2019-03-06 11:23:56   resolve_retry_seconds = 1000000000
2019-03-06 11:23:56   resolve_in_advance = DISABLED
2019-03-06 11:23:56   username = '[UNDEF]'
2019-03-06 11:23:56   groupname = '[UNDEF]'
2019-03-06 11:23:56   chroot_dir = '[UNDEF]'
2019-03-06 11:23:56   cd_dir = '[UNDEF]'
2019-03-06 11:23:56   writepid = '[UNDEF]'
2019-03-06 11:23:56   up_script = '[UNDEF]'
2019-03-06 11:23:56   down_script = '[UNDEF]'
2019-03-06 11:23:56   down_pre = DISABLED
2019-03-06 11:23:56   up_restart = DISABLED
2019-03-06 11:23:56   up_delay = DISABLED
2019-03-06 11:23:56   daemon = DISABLED
2019-03-06 11:23:56   inetd = 0
2019-03-06 11:23:56   log = DISABLED
2019-03-06 11:23:56   suppress_timestamps = ENABLED
2019-03-06 11:23:56   machine_readable_output = DISABLED
2019-03-06 11:23:56   nice = 0
2019-03-06 11:23:56   verbosity = 4
2019-03-06 11:23:56   mute = 0
2019-03-06 11:23:56   gremlin = 0
2019-03-06 11:23:56   status_file = '[UNDEF]'
2019-03-06 11:23:56   status_file_version = 1
2019-03-06 11:23:56   status_file_update_freq = 60
2019-03-06 11:23:56   occ = ENABLED
2019-03-06 11:23:56   rcvbuf = 0
2019-03-06 11:23:56   sndbuf = 0
2019-03-06 11:23:56   sockflags = 0
2019-03-06 11:23:56   fast_io = DISABLED
2019-03-06 11:23:56   comp.alg = 2
2019-03-06 11:23:56   comp.flags = 1
2019-03-06 11:23:56   route_script = '[UNDEF]'
2019-03-06 11:23:56   route_default_gateway = '[UNDEF]'
2019-03-06 11:23:56   route_default_metric = 0
2019-03-06 11:23:56   route_noexec = DISABLED
2019-03-06 11:23:56   route_delay = 0
2019-03-06 11:23:56   route_delay_window = 30
2019-03-06 11:23:56   route_delay_defined = DISABLED
2019-03-06 11:23:56   route_nopull = DISABLED
2019-03-06 11:23:56   route_gateway_via_dhcp = DISABLED
2019-03-06 11:23:56   allow_pull_fqdn = DISABLED
2019-03-06 11:23:56   [redirect_default_gateway local=0]
2019-03-06 11:23:56   route 192.168.1.51/255.255.255.0/net_gateway/default (not set)
2019-03-06 11:23:56   shared_secret_file = '[UNDEF]'
2019-03-06 11:23:56   key_direction = not set
2019-03-06 11:23:56   ciphername = 'AES-128-CBC'
2019-03-06 11:23:56   ncp_enabled = ENABLED
2019-03-06 11:23:56   ncp_ciphers = 'AES-256-GCM:AES-128-GCM'
2019-03-06 11:23:56   authname = 'SHA1'
2019-03-06 11:23:56   prng_hash = 'SHA1'
2019-03-06 11:23:56   prng_nonce_secret_len = 16
2019-03-06 11:23:56   keysize = 0
2019-03-06 11:23:56   engine = DISABLED
2019-03-06 11:23:56   replay = ENABLED
2019-03-06 11:23:56   mute_replay_warnings = DISABLED
2019-03-06 11:23:56   replay_window = 64
2019-03-06 11:23:56   replay_time = 15
2019-03-06 11:23:56   packet_id_file = '[UNDEF]'
2019-03-06 11:23:56   use_iv = ENABLED
2019-03-06 11:23:56   test_crypto = DISABLED
2019-03-06 11:23:56   tls_server = DISABLED
2019-03-06 11:23:56   tls_client = ENABLED
2019-03-06 11:23:56   key_method = 2
2019-03-06 11:23:56   ca_file = '[[INLINE]]'
2019-03-06 11:23:56   ca_path = '[UNDEF]'
2019-03-06 11:23:56   dh_file = '[UNDEF]'
2019-03-06 11:23:56   cert_file = '[[INLINE]]'
2019-03-06 11:23:56   extra_certs_file = '[UNDEF]'
2019-03-06 11:23:56   priv_key_file = '[[INLINE]]'
2019-03-06 11:23:56   pkcs12_file = '[UNDEF]'
2019-03-06 11:23:56   cipher_list = '[UNDEF]'
2019-03-06 11:23:56   cipher_list_tls13 = '[UNDEF]'
2019-03-06 11:23:56   tls_cert_profile = '[UNDEF]'
2019-03-06 11:23:56   tls_verify = '[UNDEF]'
2019-03-06 11:23:56   tls_export_cert = '[UNDEF]'
2019-03-06 11:23:56   verify_x509_type = 0
2019-03-06 11:23:56   verify_x509_name = '[UNDEF]'
2019-03-06 11:23:56   crl_file = '[UNDEF]'
2019-03-06 11:23:56   ns_cert_type = 0
2019-03-06 11:23:56   remote_cert_ku[i] = 0
2019-03-06 11:23:56   remote_cert_ku[i] = 0
2019-03-06 11:23:56   remote_cert_ku[i] = 0
2019-03-06 11:23:56   remote_cert_ku[i] = 0
2019-03-06 11:23:56   remote_cert_ku[i] = 0
2019-03-06 11:23:56   remote_cert_ku[i] = 0
2019-03-06 11:23:56   remote_cert_ku[i] = 0
2019-03-06 11:23:56   remote_cert_ku[i] = 0
2019-03-06 11:23:56   remote_cert_ku[i] = 0
2019-03-06 11:23:56   remote_cert_ku[i] = 0
2019-03-06 11:23:56   remote_cert_ku[i] = 0
2019-03-06 11:23:56   remote_cert_ku[i] = 0
2019-03-06 11:23:56   remote_cert_ku[i] = 0
2019-03-06 11:23:56   remote_cert_ku[i] = 0
2019-03-06 11:23:56   remote_cert_ku[i] = 0
2019-03-06 11:23:56   remote_cert_ku[i] = 0
2019-03-06 11:23:56   remote_cert_eku = '[UNDEF]'
2019-03-06 11:23:56   ssl_flags = 0
2019-03-06 11:23:56   tls_timeout = 2
2019-03-06 11:23:56   renegotiate_bytes = -1
2019-03-06 11:23:56   renegotiate_packets = 0
2019-03-06 11:23:56   renegotiate_seconds = 3600
2019-03-06 11:23:56   handshake_window = 60
2019-03-06 11:23:56   transition_window = 3600
2019-03-06 11:23:56   single_session = DISABLED
2019-03-06 11:23:56   push_peer_info = DISABLED
2019-03-06 11:23:56   tls_exit = DISABLED
2019-03-06 11:23:56   tls_auth_file = '[UNDEF]'
2019-03-06 11:23:56   tls_crypt_file = '[UNDEF]'
2019-03-06 11:23:56   client = ENABLED
2019-03-06 11:23:56   pull = ENABLED
2019-03-06 11:23:56   auth_user_pass_file = '[UNDEF]'
2019-03-06 11:23:57 OpenVPN 2.4.7 android-armeabi-v7a [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Feb 26 2019
2019-03-06 11:23:57 library versions: OpenSSL 1.1.1a  20 Nov 2018, LZO 2.10
2019-03-06 11:23:57 WARNING: No server certificate verification method has been enabled.  See http://openvpn.net/howto.html#mitm for more info.
2019-03-06 11:23:57 LZO compression initializing
2019-03-06 11:23:57 Control Channel MTU parms [ L:1622 D:1212 EF:38 EB:0 ET:0 EL:3 ]
2019-03-06 11:23:57 Data Channel MTU parms [ L:1622 D:1450 EF:122 EB:406 ET:0 EL:3 ]
2019-03-06 11:23:57 Local Options String (VER=V4): 'V4,dev-type tun,link-mtu 1558,tun-mtu 1500,proto UDPv4,comp-lzo,cipher AES-128-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
2019-03-06 11:23:57 Expected Remote Options String (VER=V4): 'V4,dev-type tun,link-mtu 1558,tun-mtu 1500,proto UDPv4,comp-lzo,cipher AES-128-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
2019-03-06 11:23:57 TCP/UDP: Preserving recently used remote address: [AF_INET]xxx,xxx,xxx,xxx:1194
2019-03-06 11:23:57 Socket Buffers: R=[163840->163840] S=[163840->163840]
2019-03-06 11:23:57 UDPv4 link local: (not bound)
2019-03-06 11:23:57 UDPv4 link remote: [AF_INET]xxx,xxx,xxx,xxx:1194
2019-03-06 11:23:57 TCP/UDP: Incoming packet rejected from [AF_INET]192.168.1.1:1194[2], expected peer address: [AF_INET]xxx,xxx,xxx,xxx:1194 (allow this incoming source address/port by removing --remote or adding --float)
2019-03-06 11:23:59 TCP/UDP: Incoming packet rejected from [AF_INET]192.168.1.1:1194[2], expected peer address: [AF_INET]xxx,xxx,xxx,xxx:1194 (allow this incoming source address/port by removing --remote or adding --float)
2019-03-06 11:24:03 TCP/UDP: Incoming packet rejected from [AF_INET]192.168.1.1:1194[2], expected peer address: [AF_INET]xxx,xxx,xxx,xxx:1194 (allow this incoming source address/port by removing --remote or adding --float)
2019-03-06 11:24:03 TCP/UDP: Incoming packet rejected from [AF_INET]192.168.1.1:1194[2], expected peer address: [AF_INET]xxx,xxx,xxx,xxx:1194 (allow this incoming source address/port by removing --remote or adding --float)
2019-03-06 11:24:11 TCP/UDP: Incoming packet rejected from [AF_INET]192.168.1.1:1194[2], expected peer address: [AF_INET]xxx,xxx,xxx,xxx:1194 (allow this incoming source address/port by removing --remote or adding --float)
2019-03-06 11:24:28 TCP/UDP: Incoming packet rejected from [AF_INET]192.168.1.1:1194[2], expected peer address: [AF_INET]xxx,xxx,xxx,xxx:1194 (allow this incoming source address/port by removing --remote or adding --float)

Re: OpenVPN tries to connect to my home router continuously

Posted: Wed Mar 06, 2019 4:47 pm
by admin
The app doesn't receive the Android's notifications about the network changes.
This is very strange, seem that your device doesn't work as expected.
Do you use a custom Android ROM?