Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write UDP [ECONNREFUSED]: Operation not permitted (code=1) #472

Closed
litebito opened this issue Apr 6, 2016 · 10 comments
Closed

write UDP [ECONNREFUSED]: Operation not permitted (code=1) #472

litebito opened this issue Apr 6, 2016 · 10 comments

Comments

@litebito
Copy link

litebito commented Apr 6, 2016

Hi,

I installed ics-openvpn today, because U would like to use it in stead of the offical OpenVPN app on android

I imported an openvpn profile the same way as in official OpenVPN app.
I can connected without problems using the official app, but ics-openvpn gives a "write UDP [ECONNREFUSED]: Operation not permitted (code=1)" error.

I've checked the password multiple times

My setup:
-Oneplus One
-with CyanogenMod 12 (official from Oneplus One)
-rooted

I'm not sure what else I have to check or do?

Logging below:


2016-04-06 14:50:31 official build 0.6.50 running on oneplus A0001 (MSM8974), Android 5.0.2 (LRX22G) API 21, ABI armeabi-v7a, (oneplus/bacon/A0001:5.0.2/LRX22G/YNG1TAS17L:user/release-keys)
2016-04-06 14:50:31 Building configuration…
2016-04-06 14:50:31 MANAGEMENT: CMD 'signal SIGINT'
2016-04-06 14:50:31 TCP/UDP: Closing socket
2016-04-06 14:50:31 SIGINT[hard,] received, process exiting
2016-04-06 14:50:31 MANAGEMENT: >STATE:1459947031,EXITING,SIGINT,,,,,
2016-04-06 14:50:32 started Socket Thread
2016-04-06 14:50:32 Network Status: CONNECTED HSPA+ to MOBILE apn.telecomprovider.xxx
2016-04-06 14:50:32 Current Parameter Settings:
2016-04-06 14:50:32   config = '/data/data/de.blinkt.openvpn/cache/android.conf'
2016-04-06 14:50:32   mode = 0
2016-04-06 14:50:32   show_ciphers = DISABLED
2016-04-06 14:50:32   show_digests = DISABLED
2016-04-06 14:50:32   show_engines = DISABLED
2016-04-06 14:50:32   genkey = DISABLED
2016-04-06 14:50:32   key_pass_file = '[UNDEF]'
2016-04-06 14:50:32   show_tls_ciphers = DISABLED
2016-04-06 14:50:32   connect_retry_max = 5
2016-04-06 14:50:32 Connection profiles [0]:
2016-04-06 14:50:32   proto = udp
2016-04-06 14:50:32   local = '[UNDEF]'
2016-04-06 14:50:32   local_port = '[UNDEF]'
2016-04-06 14:50:32   remote = 'server.vpnprovider.com'
2016-04-06 14:50:32   remote_port = '1194'
2016-04-06 14:50:32   remote_float = DISABLED
2016-04-06 14:50:32   bind_defined = DISABLED
2016-04-06 14:50:32   bind_local = DISABLED
2016-04-06 14:50:32   bind_ipv6_only = DISABLED
2016-04-06 14:50:32   connect_retry_seconds = 5
2016-04-06 14:50:32   connect_timeout = 120
2016-04-06 14:50:32   socks_proxy_server = '[UNDEF]'
2016-04-06 14:50:32   socks_proxy_port = '[UNDEF]'
2016-04-06 14:50:32   socks_proxy_retry = DISABLED
2016-04-06 14:50:32   tun_mtu = 1500
2016-04-06 14:50:32   tun_mtu_defined = ENABLED
2016-04-06 14:50:33   link_mtu = 1500
2016-04-06 14:50:33   link_mtu_defined = DISABLED
2016-04-06 14:50:33   tun_mtu_extra = 0
2016-04-06 14:50:33   tun_mtu_extra_defined = DISABLED
2016-04-06 14:50:33   mtu_discover_type = -1
2016-04-06 14:50:33   fragment = 0
2016-04-06 14:50:33   mssfix = 1450
2016-04-06 14:50:33   explicit_exit_notification = 0
2016-04-06 14:50:33 Connection profiles END
2016-04-06 14:50:33   remote_random = DISABLED
2016-04-06 14:50:33   ipchange = '[UNDEF]'
2016-04-06 14:50:33   dev = 'tun'
2016-04-06 14:50:33   dev_type = '[UNDEF]'
2016-04-06 14:50:33   dev_node = '[UNDEF]'
2016-04-06 14:50:33   lladdr = '[UNDEF]'
2016-04-06 14:50:33   topology = 1
2016-04-06 14:50:33   tun_ipv6 = DISABLED
2016-04-06 14:50:33   ifconfig_local = '[UNDEF]'
2016-04-06 14:50:33   ifconfig_remote_netmask = '[UNDEF]'
2016-04-06 14:50:33   ifconfig_noexec = DISABLED
2016-04-06 14:50:33   ifconfig_nowarn = ENABLED
2016-04-06 14:50:33   ifconfig_ipv6_local = '[UNDEF]'
2016-04-06 14:50:33   ifconfig_ipv6_netbits = 0
2016-04-06 14:50:33   ifconfig_ipv6_remote = '[UNDEF]'
2016-04-06 14:50:33   shaper = 0
2016-04-06 14:50:33   mtu_test = 0
2016-04-06 14:50:33   mlock = DISABLED
2016-04-06 14:50:33   keepalive_ping = 0
2016-04-06 14:50:33   keepalive_timeout = 0
2016-04-06 14:50:33   inactivity_timeout = 0
2016-04-06 14:50:33   ping_send_timeout = 0
2016-04-06 14:50:33   ping_rec_timeout = 0
2016-04-06 14:50:33   ping_rec_timeout_action = 0
2016-04-06 14:50:33   ping_timer_remote = DISABLED
2016-04-06 14:50:33   remap_sigusr1 = 0
2016-04-06 14:50:33   persist_tun = ENABLED
2016-04-06 14:50:33   persist_local_ip = DISABLED
2016-04-06 14:50:33   persist_remote_ip = DISABLED
2016-04-06 14:50:33   persist_key = DISABLED
2016-04-06 14:50:33   passtos = DISABLED
2016-04-06 14:50:33   resolve_retry_seconds = 1000000000
2016-04-06 14:50:33   resolve_in_advance = ENABLED
2016-04-06 14:50:33   username = '[UNDEF]'
2016-04-06 14:50:33   groupname = '[UNDEF]'
2016-04-06 14:50:33   chroot_dir = '[UNDEF]'
2016-04-06 14:50:33   cd_dir = '[UNDEF]'
2016-04-06 14:50:33   writepid = '[UNDEF]'
2016-04-06 14:50:33   up_script = '[UNDEF]'
2016-04-06 14:50:33   down_script = '[UNDEF]'
2016-04-06 14:50:33   down_pre = DISABLED
2016-04-06 14:50:33   up_restart = DISABLED
2016-04-06 14:50:33   up_delay = DISABLED
2016-04-06 14:50:33   daemon = DISABLED
2016-04-06 14:50:33   inetd = 0
2016-04-06 14:50:33   log = DISABLED
2016-04-06 14:50:33   suppress_timestamps = DISABLED
2016-04-06 14:50:33   machine_readable_output = ENABLED
2016-04-06 14:50:33   nice = 0
2016-04-06 14:50:33   verbosity = 4
2016-04-06 14:50:33   mute = 0
2016-04-06 14:50:33   gremlin = 0
2016-04-06 14:50:33   status_file = '[UNDEF]'
2016-04-06 14:50:33   status_file_version = 1
2016-04-06 14:50:33   status_file_update_freq = 60
2016-04-06 14:50:33   occ = ENABLED
2016-04-06 14:50:33   rcvbuf = 0
2016-04-06 14:50:33   sndbuf = 0
2016-04-06 14:50:33   sockflags = 0
2016-04-06 14:50:33   fast_io = DISABLED
2016-04-06 14:50:33   comp.alg = 2
2016-04-06 14:50:33   comp.flags = 1
2016-04-06 14:50:33   route_script = '[UNDEF]'
2016-04-06 14:50:33   route_default_gateway = '[UNDEF]'
2016-04-06 14:50:33   route_default_metric = 0
2016-04-06 14:50:33   route_noexec = DISABLED
2016-04-06 14:50:33   route_delay = 0
2016-04-06 14:50:33   route_delay_window = 30
2016-04-06 14:50:33   route_delay_defined = DISABLED
2016-04-06 14:50:33   route_nopull = DISABLED
2016-04-06 14:50:33   route_gateway_via_dhcp = DISABLED
2016-04-06 14:50:33   allow_pull_fqdn = DISABLED
2016-04-06 14:50:33   management_addr = '/data/data/de.blinkt.openvpn/cache/mgmtsocket'
2016-04-06 14:50:33   management_port = 'unix'
2016-04-06 14:50:33   management_user_pass = '[UNDEF]'
2016-04-06 14:50:33   management_log_history_cache = 250
2016-04-06 14:50:33   management_echo_buffer_size = 100
2016-04-06 14:50:33   management_write_peer_info_file = '[UNDEF]'
2016-04-06 14:50:33   management_client_user = '[UNDEF]'
2016-04-06 14:50:33   management_client_group = '[UNDEF]'
2016-04-06 14:50:33   management_flags = 4390
2016-04-06 14:50:33   shared_secret_file = '[UNDEF]'
2016-04-06 14:50:33   key_direction = 0
2016-04-06 14:50:33   ciphername_defined = ENABLED
2016-04-06 14:50:33   ciphername = 'BF-CBC'
2016-04-06 14:50:33   authname_defined = ENABLED
2016-04-06 14:50:33   authname = 'SHA1'
2016-04-06 14:50:33   prng_hash = 'SHA1'
2016-04-06 14:50:33   prng_nonce_secret_len = 16
2016-04-06 14:50:33   keysize = 0
2016-04-06 14:50:33   engine = DISABLED
2016-04-06 14:50:33   replay = ENABLED
2016-04-06 14:50:33   mute_replay_warnings = DISABLED
2016-04-06 14:50:33   replay_window = 64
2016-04-06 14:50:33   replay_time = 15
2016-04-06 14:50:33   packet_id_file = '[UNDEF]'
2016-04-06 14:50:33   use_iv = ENABLED
2016-04-06 14:50:33   test_crypto = DISABLED
2016-04-06 14:50:33   tls_server = DISABLED
2016-04-06 14:50:33   tls_client = ENABLED
2016-04-06 14:50:33   key_method = 2
2016-04-06 14:50:33   ca_file = '[[INLINE]]'
2016-04-06 14:50:33   ca_path = '[UNDEF]'
2016-04-06 14:50:33   dh_file = '[UNDEF]'
2016-04-06 14:50:33   cert_file = '[UNDEF]'
2016-04-06 14:50:33   extra_certs_file = '[UNDEF]'
2016-04-06 14:50:33   priv_key_file = '[UNDEF]'
2016-04-06 14:50:33   pkcs12_file = '[UNDEF]'
2016-04-06 14:50:33   cipher_list = '[UNDEF]'
2016-04-06 14:50:33   tls_verify = '[UNDEF]'
2016-04-06 14:50:33   tls_export_cert = '[UNDEF]'
2016-04-06 14:50:33   verify_x509_type = 0
2016-04-06 14:50:33   verify_x509_name = '[UNDEF]'
2016-04-06 14:50:33   crl_file = '[[INLINE]]'
2016-04-06 14:50:33   ns_cert_type = 0
2016-04-06 14:50:33   remote_cert_ku[i] = 160
2016-04-06 14:50:33   remote_cert_ku[i] = 136
2016-04-06 14:50:33   remote_cert_ku[i] = 0
2016-04-06 14:50:33   remote_cert_ku[i] = 0
2016-04-06 14:50:33   remote_cert_ku[i] = 0
2016-04-06 14:50:33   remote_cert_ku[i] = 0
2016-04-06 14:50:33   remote_cert_ku[i] = 0
2016-04-06 14:50:33   remote_cert_ku[i] = 0
2016-04-06 14:50:33   remote_cert_ku[i] = 0
2016-04-06 14:50:33   remote_cert_ku[i] = 0
2016-04-06 14:50:33   remote_cert_ku[i] = 0
2016-04-06 14:50:33   remote_cert_ku[i] = 0
2016-04-06 14:50:33   remote_cert_ku[i] = 0
2016-04-06 14:50:33   remote_cert_ku[i] = 0
2016-04-06 14:50:33   remote_cert_ku[i] = 0
2016-04-06 14:50:33   remote_cert_ku[i] = 0
2016-04-06 14:50:33   remote_cert_eku = 'TLS Web Server Authentication'
2016-04-06 14:50:33   ssl_flags = 0
2016-04-06 14:50:33   tls_timeout = 2
2016-04-06 14:50:33   renegotiate_bytes = 0
2016-04-06 14:50:33   renegotiate_packets = 0
2016-04-06 14:50:33   renegotiate_seconds = 0
2016-04-06 14:50:33   handshake_window = 60
2016-04-06 14:50:33   transition_window = 3600
2016-04-06 14:50:33   single_session = DISABLED
2016-04-06 14:50:33   push_peer_info = DISABLED
2016-04-06 14:50:33   tls_exit = DISABLED
2016-04-06 14:50:33   tls_auth_file = '[UNDEF]'
2016-04-06 14:50:33   client = ENABLED
2016-04-06 14:50:33   pull = ENABLED
2016-04-06 14:50:33   auth_user_pass_file = 'stdin'
2016-04-06 14:50:33 OpenVPN 2.4-icsopenvpn [git:icsopenvpn-a6eda60c1e79b5c9] android-14-armeabi-v7a [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH] [IPv6] built on Mar  9 2016
2016-04-06 14:50:33 library versions: OpenSSL 1.0.2g  1 Mar 2016, LZO 2.09
2016-04-06 14:50:33 MANAGEMENT: Connected to management server at /data/data/de.blinkt.openvpn/cache/mgmtsocket
2016-04-06 14:50:33 MANAGEMENT: CMD 'hold release'
2016-04-06 14:50:33 MANAGEMENT: CMD 'bytecount 2'
2016-04-06 14:50:33 MANAGEMENT: CMD 'state on'
2016-04-06 14:50:33 MANAGEMENT: CMD 'username 'Auth' p4929295'
2016-04-06 14:50:33 MANAGEMENT: CMD 'password [...]'
2016-04-06 14:50:33 MANAGEMENT: >STATE:1459947033,RESOLVE,,,,,,
2016-04-06 14:50:33 MANAGEMENT: CMD 'proxy NONE'
2016-04-06 14:50:34 LZO compression initializing
2016-04-06 14:50:34 Control Channel MTU parms [ L:1542 D:1212 EF:38 EB:0 ET:0 EL:3 ]
2016-04-06 14:50:34 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:393 ET:0 EL:3 ]
2016-04-06 14:50:34 Local Options String (VER=V4): 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
2016-04-06 14:50:34 Expected Remote Options String (VER=V4): 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
2016-04-06 14:50:34 TCP/UDP: Preserving recently used remote address: [AF_INET]46.166.190.200:1194
2016-04-06 14:50:34 Socket Buffers: R=[163840->163840] S=[163840->163840]
2016-04-06 14:50:34 MANAGEMENT: CMD 'needok 'PROTECTFD' ok'
2016-04-06 14:50:34 UDP link local: (not bound)
2016-04-06 14:50:34 UDP link remote: [AF_INET]46.166.190.200:1194
2016-04-06 14:50:34 MANAGEMENT: >STATE:1459947034,WAIT,,,,,,
2016-04-06 14:50:34 write UDP [ECONNREFUSED]: Operation not permitted (code=1)
2016-04-06 14:50:36 write UDP [ECONNREFUSED]: Operation not permitted (code=1)
2016-04-06 14:50:40 write UDP [ECONNREFUSED]: Operation not permitted (code=1)
2016-04-06 14:50:48 write UDP [ECONNREFUSED]: Operation not permitted (code=1)
2016-04-06 14:51:04 write UDP [ECONNREFUSED]: Operation not permitted (code=1)
2016-04-06 14:51:34 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
2016-04-06 14:51:34 TLS Error: TLS handshake failed
2016-04-06 14:51:34 TCP/UDP: Closing socket
2016-04-06 14:51:34 SIGUSR1[soft,tls-error] received, process restarting
2016-04-06 14:51:34 MANAGEMENT: >STATE:1459947094,RECONNECTING,tls-error,,,,,
2016-04-06 14:51:34 MANAGEMENT: CMD 'hold release'
2016-04-06 14:51:34 MANAGEMENT: CMD 'bytecount 2'
2016-04-06 14:51:34 MANAGEMENT: CMD 'state on'
2016-04-06 14:51:34 MANAGEMENT: CMD 'proxy NONE'
2016-04-06 14:51:35 LZO compression initializing
2016-04-06 14:51:35 Control Channel MTU parms [ L:1542 D:1212 EF:38 EB:0 ET:0 EL:3 ]
2016-04-06 14:51:35 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:393 ET:0 EL:3 ]
2016-04-06 14:51:35 Local Options String (VER=V4): 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
2016-04-06 14:51:35 Expected Remote Options String (VER=V4): 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
2016-04-06 14:51:35 TCP/UDP: Preserving recently used remote address: [AF_INET]46.166.138.172:1194
2016-04-06 14:51:35 Socket Buffers: R=[163840->163840] S=[163840->163840]
2016-04-06 14:51:35 MANAGEMENT: CMD 'needok 'PROTECTFD' ok'
2016-04-06 14:51:35 UDP link local: (not bound)
2016-04-06 14:51:35 UDP link remote: [AF_INET]46.166.138.172:1194
2016-04-06 14:51:35 MANAGEMENT: >STATE:1459947095,WAIT,,,,,,
2016-04-06 14:51:35 write UDP [ECONNREFUSED]: Operation not permitted (code=1)
2016-04-06 14:51:38 write UDP [ECONNREFUSED]: Operation not permitted (code=1)
2016-04-06 14:51:42 write UDP [ECONNREFUSED]: Operation not permitted (code=1)
2016-04-06 14:51:51 write UDP [ECONNREFUSED]: Operation not permitted (code=1)
2016-04-06 14:52:07 write UDP [ECONNREFUSED]: Operation not permitted (code=1)
2016-04-06 14:52:35 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
2016-04-06 14:52:35 TLS Error: TLS handshake failed
2016-04-06 14:52:35 TCP/UDP: Closing socket
2016-04-06 14:52:35 SIGUSR1[soft,tls-error] received, process restarting
2016-04-06 14:52:35 MANAGEMENT: >STATE:1459947155,RECONNECTING,tls-error,,,,,
2016-04-06 14:52:35 MANAGEMENT: CMD 'hold release'
2016-04-06 14:52:35 MANAGEMENT: CMD 'bytecount 2'
2016-04-06 14:52:35 MANAGEMENT: CMD 'state on'
2016-04-06 14:52:35 MANAGEMENT: CMD 'proxy NONE'
2016-04-06 14:52:36 LZO compression initializing
2016-04-06 14:52:36 Control Channel MTU parms [ L:1542 D:1212 EF:38 EB:0 ET:0 EL:3 ]
2016-04-06 14:52:36 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:393 ET:0 EL:3 ]
2016-04-06 14:52:36 Local Options String (VER=V4): 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
2016-04-06 14:52:36 Expected Remote Options String (VER=V4): 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
2016-04-06 14:52:36 TCP/UDP: Preserving recently used remote address: [AF_INET]109.201.154.155:1194
2016-04-06 14:52:36 Socket Buffers: R=[163840->163840] S=[163840->163840]
2016-04-06 14:52:36 MANAGEMENT: CMD 'needok 'PROTECTFD' ok'
2016-04-06 14:52:36 UDP link local: (not bound)
2016-04-06 14:52:36 UDP link remote: [AF_INET]109.201.154.155:1194
2016-04-06 14:52:36 MANAGEMENT: >STATE:1459947156,WAIT,,,,,,
2016-04-06 14:52:36 write UDP [ECONNREFUSED]: Operation not permitted (code=1)
2016-04-06 14:52:38 write UDP [ECONNREFUSED]: Operation not permitted (code=1)
2016-04-06 14:52:42 write UDP [ECONNREFUSED]: Operation not permitted (code=1)
2016-04-06 14:52:50 write UDP [ECONNREFUSED]: Operation not permitted (code=1)
2016-04-06 14:53:06 write UDP [ECONNREFUSED]: Operation not permitted (code=1)
2016-04-06 14:53:36 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
2016-04-06 14:53:36 TLS Error: TLS handshake failed
2016-04-06 14:53:36 TCP/UDP: Closing socket
2016-04-06 14:53:36 SIGUSR1[soft,tls-error] received, process restarting
2016-04-06 14:53:36 MANAGEMENT: >STATE:1459947216,RECONNECTING,tls-error,,,,,
2016-04-06 14:53:36 MANAGEMENT: CMD 'hold release'
2016-04-06 14:53:36 MANAGEMENT: CMD 'bytecount 2'
2016-04-06 14:53:36 MANAGEMENT: CMD 'state on'
2016-04-06 14:53:36 MANAGEMENT: CMD 'proxy NONE'
2016-04-06 14:53:37 LZO compression initializing
2016-04-06 14:53:37 Control Channel MTU parms [ L:1542 D:1212 EF:38 EB:0 ET:0 EL:3 ]
2016-04-06 14:53:37 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:393 ET:0 EL:3 ]
2016-04-06 14:53:37 Local Options String (VER=V4): 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
2016-04-06 14:53:37 Expected Remote Options String (VER=V4): 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
2016-04-06 14:53:37 TCP/UDP: Preserving recently used remote address: [AF_INET]46.166.190.176:1194
2016-04-06 14:53:37 Socket Buffers: R=[163840->163840] S=[163840->163840]
2016-04-06 14:53:37 MANAGEMENT: CMD 'needok 'PROTECTFD' ok'
2016-04-06 14:53:37 UDP link local: (not bound)
2016-04-06 14:53:37 UDP link remote: [AF_INET]46.166.190.176:1194
2016-04-06 14:53:37 MANAGEMENT: >STATE:1459947217,WAIT,,,,,,
2016-04-06 14:53:37 write UDP [ECONNREFUSED]: Operation not permitted (code=1)
2016-04-06 14:53:40 write UDP [ECONNREFUSED]: Operation not permitted (code=1)
2016-04-06 14:53:44 write UDP [ECONNREFUSED]: Operation not permitted (code=1)
2016-04-06 14:53:52 write UDP [ECONNREFUSED]: Operation not permitted (code=1)
2016-04-06 14:54:08 write UDP [ECONNREFUSED]: Operation not permitted (code=1)

@schwabe
Copy link
Owner

schwabe commented Apr 6, 2016

To be honest, that looks like a ROM with broken VPNService routing.

@litebito
Copy link
Author

litebito commented Apr 7, 2016

Hi,

so it is an issue with the official ROM from OnePlus One ? (I'm not using a custom rom, it is the official Cyanogen from OPO)

and is it normal then that the official OpenVPN app works?

Thanks,

@schwabe
Copy link
Owner

schwabe commented Apr 7, 2016

Without access to that phone I cannot really debug what is going on. I never seen that behaviour before. But both OnePlus phones and CyanogenMod have been quirky before, so my first guess is that this is something with the ROM.

@markwilkinson
Copy link

I'm having this exact problem using the official OpenVPN app, and an .ovpn file from mullvad. It's happening on a stock Samsung G S7 (non-rooted, one month old, no weird stuff). The same setup works on all my other devices (phones, tablets, etc.) - only this one device gives me this exact same behaviour and error message.

Still trying to troubleshoot the problem, but any suggestions would be very welcome!

@schwabe
Copy link
Owner

schwabe commented Apr 21, 2016

For Samsung devices see the Samsung FAQ.

@markwilkinson
Copy link

Well, given that I have a GitHub account, we can safely assume that I have already done that, na? ;-)

The point is, knowing that the same phenomenon happens on other devices gives you additional information to troubleshoot this problem (i.e. that it isn't necessarily a problem with the ROM)

Just trying to be helpful

@schwabe
Copy link
Owner

schwabe commented Apr 21, 2016

@markwilkinson Sorry, did not want to be rude but in my experience that is not the the case. Also some users might have read the FAQ the first time they installed the app and never seen the new FAQs.

Apart from the one report of the OnePlus, all other that indicate this problem are Samsung 6.0 devices. My other 6.0 devices (Shield TV, Nexus 7 and Sony Z5c) are not having this problem and so far all of them could have been resolved with the solution highlighted in the FAQ (Exempt the app from Energy saving options). So far it looks like a Samsung firmware bug to me.

In my experience Samsung ROMs are the most buggy, followed by Cyanogenmod and OnePlus.

@markwilkinson
Copy link

Gotcha :-) Cheers!

@schwabe schwabe closed this as completed Apr 27, 2016
@MightyMaveous
Copy link

MightyMaveous commented Feb 25, 2018

Same here on OP2(OOS3.6.1)

Only received

write UDP [ECONNREFUSED]: Operation not permitted (code=1)

repeatedly.

Problem only occurred when Battery Saver was turned on.
Makes sense since it kills connections when screen is off.

Turning Battery Saver off and reconnecting fixed it for me.
Hope this helps someone

@sec-martin
Copy link

Hello,

I have Sony Xperia Z5 Premium with Android 6.0.1 and same issue appeared. After I have excluded OpenVPN client from battery optimization on mobile phone and it started to work.

Thanks schwabe!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants