TLS Error: cannot locate HMAC in incoming packet from

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
Federico87
OpenVpn Newbie
Posts: 3
Joined: Sun Sep 18, 2016 1:39 pm

TLS Error: cannot locate HMAC in incoming packet from

Post by Federico87 » Sun Sep 18, 2016 1:43 pm

Hi,
I'm trying to connect my client to my server but I get the error in subject. Googoling a while, I can confirm than TLS option is disabled on server/client
2016-09-18 14:26:23+0100 [-] OVPN 0 OUT: 'Sun Sep 18 13:26:23 2016 TLS Error: cannot locate HMAC in incoming packet from [AF_INET]2.25.60.99:23734'
2016-09-18 14:26:25+0100 [-] OVPN 0 OUT: 'Sun Sep 18 13:26:25 2016 TLS Error: cannot locate HMAC in incoming packet from [AF_INET]2.25.60.99:237


---SERVER--
...
# The second parameter should be '0'
# on the server and '1' on the clients.
;tls-auth ta.key 0 # This file is secret
...
--CLIENT--
...
# then every client must also have the key.
;tls-auth ta.key 1
...

I have tried also to enable the feature and create the key but a that point I get

2016-09-18 11:38:45+0100 [-] OVPN 0 OUT: 'Sun Sep 18 10:38:45 2016 Authenticate/Decrypt packet error: packet HMAC authentication failed'
2016-09-18 11:38:45+0100 [-] OVPN 0 OUT: 'Sun Sep 18 10:38:45 2016 TLS Error: incoming packet authentication failed from [AF_INET]2.25.60.99:22932'

Any idea?
Thanks!

Federico87
OpenVpn Newbie
Posts: 3
Joined: Sun Sep 18, 2016 1:39 pm

Openvpn LOGS

Post by Federico87 » Sun Sep 18, 2016 1:48 pm

Hi,
Following indications I enabled the syslog on server config file but I cannot see the logs under the directory. Any idea why?

# Output a short status file showing
# current connections, truncated
# and rewritten every minute.
status openvpn-status.log

# By default, log messages will go to the syslog (or
# on Windows, if running as a service, they will go to
# the "\Program Files\OpenVPN\log" directory).
# Use log or log-append to override this default.
# "log" will truncate the log file on OpenVPN startup,
# while "log-append" will append to it. Use one
# or the other (but not both).
;log openvpn.log
;log-append openvpn.log
log-append /var/log/openvpn.log

# Set the appropriate level of log
# file verbosity.
#
# 0 is silent, except for fatal errors
# 4 is reasonable for general usage
# 5 and 6 can help to debug connection problems
# 9 is extremely verbose
verb 9

Post Reply