Openvpn android network eof error

Openvpn android network eof error

Бесплатный чек-лист
по настройке RouterOS
на 28 пунктов

Клиент не подключается к OpenVPN

09:22:44.403 — —— OpenVPN Start ——

09:22:44.404 — EVENT: CORE_THREAD_ACTIVE

09:22:44.418 — Frame=512/2048/512 mssfix-ctrl=1250

09:22:44.435 — UNUSED OPTIONS
5 [resolv-retry] [infinite]
6 [nobind]
7 [persist-key]
8 [persist-tun]
10 [verb] [3]

09:22:44.436 — EVENT: RESOLVE

09:22:44.443 — Contacting ххх.ххх.ххх.ххх:1194 via TCP

09:22:44.444 — EVENT: WAIT

09:22:44.560 — Connecting to [ххх.ххх.ххх.ххх]:1194 (ххх.ххх.ххх.ххх) via TCPv4

09:22:44.719 — EVENT: CONNECTING

09:22:44.832 — Tunnel Options:V4,dev-type tun,link-mtu 1559,tun-mtu 1500,proto TCPv4_CLIENT,cipher AES-128-CBC,auth SHA1,keysize 128,key-method 2,tls-client

09:22:44.837 — Creds: Username/Password

09:22:44.842 — Peer Info:
IV_GUI_VER=OC30Android
IV_VER=3.2
IV_PLAT=android
IV_NCP=2
IV_TCPNL=1
IV_PROTO=2
IV_AUTO_SESS=1

09:22:46.600 — VERIFY OK : depth=0
cert. version : 3
serial number : 01
issuer name : C=RU, ST=STA, L=Stavropol, O=Company, OU=server, CN=server, ??=server, emailAddress=mail@mail.ru
subject name : C=RU, ST=STA, L=Stavropol, O=Company, OU=server, CN=server, ??=server, emailAddress=mail@mail.ru
issued on : 2018-07-10 11:48:50
expires on : 2028-07-07 11:48:50
signed using : RSA with SHA-256
RSA key size : 4096 bits
basic constraints : CA=false
cert. type : SSL Server
key usage : Digital Signature, Key Encipherment
ext key usage : TLS Web Server Authentication

09:22:47.910 — TCP recv EOF

09:22:47.917 — Transport Error: Transport error on ‘ххх.ххх.ххх.ххх: NETWORK_EOF_ERROR

09:22:47.926 — EVENT: TRANSPORT_ERROR info=’Transport error on ‘ххх.ххх.ххх.ххх: NETWORK_EOF_ERROR’

09:22:47.935 — Client terminated, restarting in 5000 ms..

Источник

«Transport error on \’xxx.xxx.xxx.xxx: NETWORK_EOF_ERROR» #69

Comments

Richard1202 commented Jun 1, 2018

My PacketTunnelProvider is like this.

guard
let fileContent = providerConfiguration[ProviderConfigurationKey.fileContent] as? Data,
let caRef = providerConfiguration[ProviderConfigurationKey.caRef] as? Data,
let userCertificateRef = providerConfiguration[ProviderConfigurationKey.userCertificateRef] as? Data,
let userKeyRef = providerConfiguration[ProviderConfigurationKey.userKeyRef] as? Data
else <
preconditionFailure(«fileContent, certificates and a key should be provided to the tunnel provider»)
>

guard
let ca = String(data: caRef, encoding: .utf8)?.replacingOccurrences(of: «\n», with: «\n»),
let userCertificate = String(data: userCertificateRef, encoding: .utf8)?.replacingOccurrences(of: «\n», with: «\n»),
let userKey = String(data: userKeyRef, encoding: .utf8)?.replacingOccurrences(of: «\n», with: «\n»)
else <
fatalError(«Failed to retrieve certificates and a user key from keychain»)
>

// Create representation of the OpenVPN configuration. Other properties such as connection timeout or
// private key password aslo may be provided there.
let vpnConfiguration = OpenVPNConfiguration().then <
$0.fileContent = fileContent
$0.settings = [
«ca» : ca,
«cert» : userCertificate,
«key» : userKey
]
>

// Apply OpenVPN configuration
let properties: OpenVPNProperties
do <
properties = try vpnAdapter.apply(configuration: vpnConfiguration)
> catch <
completionHandler(error)
return
>

Читайте также:  Что лучше для телевизора тизен или андроид

Then I go this error. Please let me know why this error happened.

The text was updated successfully, but these errors were encountered:

Источник

QNAP NAS Community Forum

openVPN and Android

openVPN and Android

Post by 26196008 » Wed Jun 01, 2016 8:35 pm

I’m trying to connect with my samsung galaxy tab note 12.2 Android Version 4.4.2 to my QNAP TS-563 Version 4.2.1 (19.04.2016), but I get always a Connection Timeout.

If I try to connect with my IPhone with the same configuration apart from the deleted last line, the connect works fine.

Here is my configuration:

And here is my openVPN-Log:

What I’m doing wrong?

Re: openVPN and Android

Post by hallux » Thu Jun 02, 2016 2:24 am

Re: openVPN and Android

Post by 26196008 » Thu Jun 02, 2016 2:35 am

Re: openVPN and Android

Post by hallux » Thu Jun 02, 2016 9:22 pm

Good to know! It is really strange what is happening with OpenVPN Connect.

Re: openVPN and Android

Post by neenus » Wed Jun 08, 2016 10:50 am

OpenVPN Connect app used to work for me on my Samsung Note Edge for as long as I can remember and all of the sudden last week it stopped working and it kept giving me network_eof_error when trying to connect; after lots of research online I tried all possible settings in few apps that works with openvpn and lots of hair pulling I found out that it’s a bug in the Android OS after updating my phone to Android Marshmallow 6.0.1 and it has something to do with power saving on Android I turned power saving off and it worked.

I know you mentioned you had Android 4.4.2 but it might be worth trying because if it is then Samsung had the bug on that Android version which obviously got fixed on Android 5.x then it appeared again on Android 6.0.1 . Let me know if it works and good luck

Re: openVPN and Android

Post by 26196008 » Wed Jun 08, 2016 5:21 pm

Thanks for your hint.

I just checked this, but it doesn’t solve the problem.

Источник

OpenVPN Support Forum

Community Support Forum

[Resolved] NETWORK_EOF_ERROR (transport error)

[Resolved] NETWORK_EOF_ERROR (transport error)

Post by hey_aj » Sat Aug 26, 2017 11:25 am

Have been using OpenVPN on 3 different iOS devices for weeks without issues. Yesterday, all 3 encountered the same issue- my iPad and iPhone here on business travel in Australia, my wife’s iPhone back home in the US. Doesn’t matter if on cell data or wifi. Key problem seems to be a transport error per the log below. Client status toggles between «waiting for server» and «transport pause» before timing out. Had wife reboot our asus router but did not resolve. Grateful for any assistance.

Читайте также:  Переход между экранами android studio kotlin

2017-08-26 20:59:26 EVENT: RESOLVE
2017-08-26 20:59:26 Contacting 24.9.69.17:443 via TCP
2017-08-26 20:59:26 EVENT: WAIT
2017-08-26 20:59:26 SetTunnelSocket returned 1
2017-08-26 20:59:27 Connecting to [xxxx.asuscomm.com]:443 (24.9.69.17) via TCPv4
2017-08-26 20:59:27 TCP recv EOF
2017-08-26 20:59:27 Transport Error: Transport error on ‘xxxx.asuscomm.com: NETWORK_EOF_ERROR
2017-08-26 20:59:27 EVENT: TRANSPORT_ERROR Transport error on ‘xxxx.asuscomm.com: NETWORK_EOF_ERROR [ERR]
2017-08-26 20:59:27 Client terminated, restarting in 5000 ms.
2017-08-26 20:59:27 NET Internet:ReachableViaWiFi/-R t——
2017-08-26 20:59:30 RECONNECT TEST: Internet:ReachableViaWiFi/-R t——
2017-08-26 20:59:30 Client terminated, reconnecting in 1.
2017-08-26 20:59:31 EVENT: RECONNECTING
2017-08-26 20:59:31 EVENT: RESOLVE
2017-08-26 20:59:31 Contacting 24.9.69.17:443 via TCP
2017-08-26 20:59:31 EVENT: WAIT
2017-08-26 20:59:31 SetTunnelSocket returned 1
2017-08-26 20:59:31 Connecting to [xxxx.asuscomm.com]:443 (24.9.69.17) via TCPv4
2017-08-26 20:59:32 TCP recv EOF
2017-08-26 20:59:32 Transport Error: Transport error on ‘xxxx.asuscomm.com: NETWORK_EOF_ERROR
2017-08-26 20:59:32 EVENT: TRANSPORT_ERROR Transport error on ‘xxxx.asuscomm.com: NETWORK_EOF_ERROR [ERR]
2017-08-26 20:59:32 Client terminated, restarting in 5000 ms.
2017-08-26 20:59:35 RECONNECT TEST: Internet:ReachableViaWiFi/-R t——
2017-08-26 20:59:35 Client terminated, reconnecting in 1.
2017-08-26 20:59:36 EVENT: RECONNECTING
2017-08-26 20:59:36 EVENT: RESOLVE
2017-08-26 20:59:36 Contacting 24.9.69.17:443 via TCP
2017-08-26 20:59:36 EVENT: WAIT
2017-08-26 20:59:36 SetTunnelSocket returned 1
2017-08-26 20:59:36 Connecting to [xxxx.asuscomm.com]:443 (24.9.69.17) via TCPv4
2017-08-26 20:59:36 TCP recv EOF
2017-08-26 20:59:36 Transport Error: Transport error on ‘xxxx.asuscomm.com: NETWORK_EOF_ERROR
2017-08-26 20:59:36 EVENT: TRANSPORT_ERROR Transport error on ‘xxxx.asuscomm.com: NETWORK_EOF_ERROR [ERR]
2017-08-26 20:59:36 Client terminated, restarting in 5000 ms.
2017-08-26 20:59:39 RECONNECT TEST: Internet:ReachableViaWiFi/-R t——
2017-08-26 20:59:39 Client terminated, reconnecting in 1.
2017-08-26 20:59:40 EVENT: RECONNECTING
2017-08-26 20:59:40 EVENT: RESOLVE
2017-08-26 20:59:40 Contacting 24.9.69.17:443 via TCP
2017-08-26 20:59:40 EVENT: WAIT
2017-08-26 20:59:40 SetTunnelSocket returned 1
2017-08-26 20:59:40 Connecting to [xxxx.asuscomm.com]:443 (24.9.69.17) via TCPv4
2017-08-26 20:59:41 TCP recv EOF
2017-08-26 20:59:41 Transport Error: Transport error on ‘xxxx.asuscomm.com: NETWORK_EOF_ERROR
2017-08-26 20:59:41 EVENT: TRANSPORT_ERROR Transport error on ‘xxxx.asuscomm.com: NETWORK_EOF_ERROR [ERR]
2017-08-26 20:59:41 Client terminated, restarting in 5000 ms.
2017-08-26 20:59:41 EVENT: DISCONNECTED
2017-08-26 20:59:41 Raw stats on disconnect:
BYTES_OUT : 64
PACKETS_OUT : 4
NETWORK_EOF_ERROR : 4
TRANSPORT_ERROR : 4
N_RECONNECT : 3
2017-08-26 20:59:41 Performance stats on disconnect:
CPU usage (microseconds): 21531
Network bytes per CPU second: 2972
Tunnel bytes per CPU second: 0

Re: NETWORK_EOF_ERROR (transport error)

Post by TinCanTech » Sat Aug 26, 2017 1:45 pm

Re: NETWORK_EOF_ERROR (transport error)

Post by hey_aj » Mon Aug 28, 2017 8:31 am

Sure, two follow-up questions:
1) I assume you are referring to the log on my router, in which case I will need to check when I return home as I am currently remote
2) Any suggestion as to what I am looking for or what the issue is? Or, just generic guidance to check the log?

Re: NETWORK_EOF_ERROR (transport error)

Post by TinCanTech » Mon Aug 28, 2017 12:17 pm

You need to verify that a connection attempt was made and what went wrong.

Re: NETWORK_EOF_ERROR (transport error)

Post by klanimantsi » Tue Sep 05, 2017 10:06 am

Источник

OpenVPN Support Forum

Community Support Forum

Читайте также:  32 бит режим андроид

Connection Timeout: NETWORK_EOF_ERROR

Connection Timeout: NETWORK_EOF_ERROR

Post by christiansam » Sat Feb 02, 2013 10:17 am

I have problems connecting with openvpn connect (ios) to my openvpn server. Before any crypto-stuff can get handled out, it breaks up with the following message:

logfile:
EVENT: CONNECTIONG
Tunnel Options: .
Peer Info: .
.
TCP recv EOF
Transport Error: Transport error on ‘ ‘: NETWORK _EOF_ERROR
Client terminated, restarting in 2.
EVENT: RECONNECTING
—-
Authentifcation mode is set to TLS with KEY CERT and CA generated by the easy-rsa utility. Except for changing auth-mode to something else I I tried (nearly) every possible mix of client-configration setting, without any success. My client-conf is based on sample-file, provided in windows openvpn package and works well with linux, windows and android openvpn clients.

Can’t tell you exactly which version of the openvpn server I use, it is included in an alternative firmware for Linksys’ WRT54G/GL routers, please see: http://tomatovpn.keithmoyer.com/

Best regards,
christian

Re: Connection Timeout: NETWORK_EOF_ERROR

Post by mtrussa » Fri Mar 22, 2013 1:42 pm

Exactly thesame problem here!
Having a look on the server side it seems the connection never reach the server!

Dns resolution is fine (I see it in logs) but Connection Timeout: NETWORK_EOF_ERROR suddenly appears.

Are we missing something?

The same configuration works fine on Openvpn Connect on android.

Re: Connection Timeout: NETWORK_EOF_ERROR

Post by jbove » Thu May 02, 2013 12:23 pm

Re: Connection Timeout: NETWORK_EOF_ERROR

Post by jbove » Fri May 03, 2013 7:33 am

Re: Connection Timeout: NETWORK_EOF_ERROR

Post by guru431 » Wed Oct 23, 2013 8:39 am

Re: Connection Timeout: NETWORK_EOF_ERROR

Post by boostpt » Sun Dec 08, 2013 12:33 am

I made a reset to my primary router and
now the ddwrt have the same problem.
I don’t know why, I didn’t touch the ddwrt
configs at all. But I’m facing this problem.

When I use the internal connection (192.168.x.x)
I can connect to the server , but when I use
The Internet with my external ip, it doesn’t work.
I have all configured: noip; port forward on my
primary router. All worked fine before the router reset.

You fix the error just by adding the keysize
text on the server config, or you made
something else?
Did you creat other CRT or key file or something Else?

Re: Connection Timeout: NETWORK_EOF_ERROR

Post by boostpt » Mon Dec 09, 2013 9:24 pm

I’ve figured it out.

In my case it has nothing to do with keysize
My primary router was not properly configured.
It has several options for port forwarding.
And it wasn’t correctly configured.
Work like a charm now.

Re: Connection Timeout: NETWORK_EOF_ERROR

Post by plopes1960 » Thu Mar 13, 2014 11:45 am

I have exactly the same log problem when I try to conect from my iPad (openvpn client) to my router (openvpn server).

Источник

Оцените статью