TLS Error: incoming packet authentication failed from [AF_INET6]::ffff:noip:36123

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
monsieurN
OpenVpn Newbie
Posts: 10
Joined: Sat Oct 03, 2020 8:27 pm

TLS Error: incoming packet authentication failed from [AF_INET6]::ffff:noip:36123

Post by monsieurN » Sat Dec 12, 2020 8:32 pm

Good morning, everyone.
I come back to try to understand an error when everything looks perfectly good. I configured a vpn connection using openvpn.
So I installed openvpn server on my windows server
I installed openvpn on my windows 10 client. The connection goes perfectly well, no problem.
So I convert my windows client configuration file to android client. And there, I have this error that appears: (and unable to connect to the server from this client)

Authenticate/Decrypt packet error: packet HMAC authentication failed
TLS Error: incoming packet authentication failed from [AF_INET6]::ffff:no-ip:36123

Server config

port 1194
proto udp
dev tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\ServerVPN.crt"
key "C:\\Program Files\\OpenVPN\\config\\ServerVPN.key"
dh "C:\\Program Files\\OpenVPN\\config\\dh2048.pem"
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
tls-auth ta.key 0 # This file is secret
cipher AES-256-CBC
persist-key
persist-tun
status openvpn-status.log
verb 3
explicit-exit-notify 1



openvpn client Windows 10

client
dev tun
proto udp
remote monip1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\ClientVPN.crt"
key "C:\\Program Files\\OpenVPN\\config\\ClientVPN.key"
remote-cert-tls server
tls-auth ta.key 1
cipher AES-256-CBC
verb 3


openvpn cconfig client android

client
dev tun
proto udp
remote monip 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
<ca>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</ca>

<cert>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</cert>

<key>
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
</key>

<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
-----END OpenVPN Static key V1-----
</tls-auth>

cipher AES-256-CBC
verb 3


Does anyone have any idea?
Last edited by Pippin on Sat Dec 12, 2020 10:00 pm, edited 1 time in total.
Reason: Formatting

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

Re: TLS Error: incoming packet authentication failed from [AF_INET6]::ffff:noip:36123

Post by TinCanTech » Sat Dec 12, 2020 8:38 pm

monsieurN wrote:
Sat Dec 12, 2020 8:32 pm
Authenticate/Decrypt packet error: packet HMAC authentication failed
TLS Error: incoming packet authentication failed from [AF_INET6]::ffff:no-ip:36123
HMAC authentication failed because the --tls-auth key is corrupt or wrong.
monsieurN wrote:
Sat Dec 12, 2020 8:32 pm
I convert my windows client configuration file to android client. And there, I have this error that appears
Maybe you have corrupted the key or file ? Like Line-endings ?

monsieurN
OpenVpn Newbie
Posts: 10
Joined: Sat Oct 03, 2020 8:27 pm

Re: TLS Error: incoming packet authentication failed from [AF_INET6]::ffff:noip:36123

Post by monsieurN » Sun Dec 13, 2020 6:57 am

Finally, I started all over again. And by creating a specific ovpn folder in android with only config files, everything works perfectly. Thank you so much for your help

Post Reply