EVENT: Transport error on 'domain.com: NETWORK_EOF_ERROR [ERR]

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Locked
anadolu
OpenVpn Newbie
Posts: 4
Joined: Fri Aug 04, 2017 3:32 pm

EVENT: Transport error on 'domain.com: NETWORK_EOF_ERROR [ERR]

Post by anadolu » Fri Aug 04, 2017 8:56 pm

Hello,

I have been trying to connect to my iPhone through OpenVPN. The .ovpn file is below. I am getting the following error. What setting(s) is wrong?
EVENT: TRANSPORT_ERROR Transport error on 'domain.com: NETWORK_EOF_ERROR [ERR]
The tail of the log file from iPhone is below. The port 1195 was forwarded to TUN.

Code: Select all

client
dev tun
proto tcp
remote domain.com 1195
auth-user-pass
resolv-retry infinite
nobind
persist-tun
persist-key
persist-remote-ip
tls-client
cipher AES-256-CBC
auth SHA256
key-direction 1
comp-lzo
verb 3

<ca>
-----BEGIN CERTIFICATE-----
MIIGkzCCBHugAwIBAgIJAL9qVOrsXYJwMA0GCSqGSIb3DQEBDQUAMIGIMQswCQYD

6K8RrUKC2Q==
-----END CERTIFICATE-----
</ca>

<cert>
-----BEGIN CERTIFICATE-----
MIIGmDCCBICgAwIBAgIBAzANBgkqhkiG9w0BAQ0FADCBiDELMAkGA1UEBhMCVVMx

X6UMwQyYeD098rsa
-----END CERTIFICATE-----
</cert>

<key>
-----BEGIN PRIVATE KEY-----
MIIJQwIBADANBgkqhkiG9w0BAQEFAASCCS0wggkpAgEAAoICAQC5ZC4bVjlhjst9

Eq4CWIZVNW/ivF76v19W0aDIF01nMM0=
-----END PRIVATE KEY-----
</key>

<tls-auth>
-----BEGIN OpenVPN Static key V1-----
933b4e0a363e352e9071a4f37cde671f

2f8ccd174e4caa2da66cc5608350d6d5
-----END OpenVPN Static key V1-----
</tls-auth>


The server configuration on the Asus AC2300 router is below:

Code: Select all

Start with WAN			checked
Interface Type			TUN
Protocol				TCP
Port					1195
Firewall				Automatic	
Authorization Mode		TLS
Extra HMAC 			Incoming(0)	
VPN subnet/netmask		10.8.0.0	 255.255.255.0
The error log from iPhone:
................
2017-08-04 15:37:36 RECONNECT TEST: Internet:ReachableViaWiFi/-R t------
2017-08-04 15:37:36 Client terminated, reconnecting in 1...
2017-08-04 15:37:37 EVENT: RECONNECTING
2017-08-04 15:37:37 EVENT: RESOLVE
2017-08-04 15:37:37 Contacting xx.xx.xx.xx:1195 via TCP
2017-08-04 15:37:37 EVENT: WAIT
2017-08-04 15:37:37 SetTunnelSocket returned 1
2017-08-04 15:37:37 Connecting to [adomain.com]:1195 (73.197.86.66) via TCPv4
2017-08-04 15:37:37 TCP recv EOF
2017-08-04 15:37:37 Transport Error: Transport error on 'domain.com: NETWORK_EOF_ERROR
2017-08-04 15:37:37 EVENT: TRANSPORT_ERROR Transport error on 'domain.com: NETWORK_EOF_ERROR [ERR]
2017-08-04 15:37:37 Client terminated, restarting in 5000 ms...
2017-08-04 15:37:40 RECONNECT TEST: Internet:ReachableViaWiFi/-R t------
2017-08-04 15:37:40 Client terminated, reconnecting in 1...
2017-08-04 15:37:40 EVENT: CONNECTION_TIMEOUT [ERR]
2017-08-04 15:37:40 EVENT: DISCONNECTED
2017-08-04 15:37:40 Raw stats on disconnect:
BYTES_OUT : 784
PACKETS_OUT : 14
NETWORK_EOF_ERROR : 14
TRANSPORT_ERROR : 14
CONNECTION_TIMEOUT : 1
N_RECONNECT : 13
2017-08-04 15:37:40 Performance stats on disconnect:
CPU usage (microseconds): 78993
Network bytes per CPU second: 9924
Tunnel bytes per CPU second: 0
2017-08-04 15:37:40 EVENT: DISCONNECT_PENDING
2017-08-04 15:37:40 ----- OpenVPN Stop -----

anadolu
OpenVpn Newbie
Posts: 4
Joined: Fri Aug 04, 2017 3:32 pm

Re: EVENT: Transport error on 'domain.com: NETWORK_EOF_ERROR [ERR]

Post by anadolu » Sun Aug 06, 2017 4:00 pm

[SOLVED]TLS-Auth key was wrong. When fixed it worked.

zohair
OpenVpn Newbie
Posts: 2
Joined: Sat Apr 28, 2018 3:13 pm

Re: EVENT: Transport error on 'domain.com: NETWORK_EOF_ERROR [ERR]

Post by zohair » Sat Apr 28, 2018 3:14 pm

Hello!
I've got the same error. Can you please elaborate on how you fixed the TLS-auth key?
I'm running an OpenVPN server on my Raspberry Pi.
Thank you!

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: EVENT: Transport error on 'domain.com: NETWORK_EOF_ERROR [ERR]

Post by TinCanTech » Sat Apr 28, 2018 3:55 pm

You use the correct key for --tls-auth

zohair
OpenVpn Newbie
Posts: 2
Joined: Sat Apr 28, 2018 3:13 pm

Re: EVENT: Transport error on 'domain.com: NETWORK_EOF_ERROR [ERR]

Post by zohair » Sat Apr 28, 2018 6:00 pm

I'm sorry I still don't see where I'm going wrong. I've got only one key for tls-auth, so I don't understand how I can use an incorrect one. Sorry, I'm new to all of this.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: EVENT: Transport error on 'domain.com: NETWORK_EOF_ERROR [ERR]

Post by TinCanTech » Sat Apr 28, 2018 6:57 pm


Locked