Can't connect to server "TLS Error: cannot locate HMAC in incoming packet from"
Posted: Sat Jul 08, 2017 8:37 pm
Hi,
i have a problem that i cannot solve.
So far:
-) Client Connection to Server Possible IP from Client is shown on server logs...
-> BUT TLS error
SERVER LOG
thx
i have a problem that i cannot solve.
So far:
-) Client Connection to Server Possible IP from Client is shown on server logs...
-> BUT TLS error
SERVER LOG
Client Errorroot@OpenWrt:~# cat /tmp/openvpn.log
Sat Jul 8 21:14:29 2017 OpenVPN 2.3.6 mips-openwrt-linux-gnu [SSL (OpenSSL)] [L ZO] [EPOLL] [MH] [IPv6] built on Jul 25 2015
Sat Jul 8 21:14:29 2017 library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.08
Sat Jul 8 21:14:29 2017 Diffie-Hellman initialized with 2048 bit key
Sat Jul 8 21:14:29 2017 Control Channel Authentication: using '/etc/openvpn/tls auth.key' as a OpenVPN static key file
Sat Jul 8 21:14:29 2017 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
Sat Jul 8 21:14:29 2017 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
Sat Jul 8 21:14:29 2017 Socket Buffers: R=[163840->131072] S=[163840->131072]
Sat Jul 8 21:14:29 2017 TUN/TAP device tun0 opened
Sat Jul 8 21:14:29 2017 TUN/TAP TX queue length set to 100
Sat Jul 8 21:14:29 2017 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Sat Jul 8 21:14:29 2017 /sbin/ifconfig tun0 10.20.30.1 pointopoint 10.20.30.2 m tu 1500
Sat Jul 8 21:14:29 2017 /sbin/route add -net 10.20.30.0 netmask 255.255.255.0 g w 10.20.30.2
Sat Jul 8 21:14:29 2017 UDPv4 link local (bound): [undef]
Sat Jul 8 21:14:29 2017 UDPv4 link remote: [undef]
Sat Jul 8 21:14:29 2017 MULTI: multi_init called, r=256 v=256
Sat Jul 8 21:14:29 2017 IFCONFIG POOL: base=10.20.30.4 size=62, ipv6=0
Sat Jul 8 21:14:29 2017 Initialization Sequence Completed
Sat Jul 8 21:59:12 2017 TLS Error: cannot locate HMAC in incoming packet from [ AF_INET]XXX.XXX.XXX.XXX:50567
Client config file *.ovpnTLS Error: TLS key negotiation failed to occur within 60 seconds
Server config fileclient
dev tun
proto udp
remote dyndns.xxx.at 1194 # Change to your router's External IP
resolv-retry infinite
nobind
ca ca.crt
cert xxx.crt
key xxx.key
dh dh2048.pem
tls-auth tlsauth.key 1
cipher AES-256-CBC
persist-tun
persist-key
verb 3
Any ideas?config openvpn 'myvpn'
option enabled '1'
option dev 'tun'
option proto 'udp'
option log '/tmp/openvpn.log'
option verb '3'
option ca '/etc/openvpn/ca.crt'
option cert '/etc/openvpn/server.crt'
option key '/etc/openvpn/server.key'
option dh '/etc/openvpn/dh2048.pem'
option server '10.20.30.0 255.255.255.0'
option cipher 'AES-256-CBC'
option auth 'SHA256'
option tls_auth '/etc/openvpn/tlsauth.key 0'
option tls_cipher 'TLS-DHE-RSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-CBC-SHA256:TLS-DHE-RSA-WITH-AES-128-GCM-SHA256:TLS-DHE-RSA-WITH-AES-128-CBC-SHA256:TL
option port '1194'
option keepalive '10 120'
option tls_server '1'
option tls_version_min '1.2'
list push 'redirect-gateway def1'
list push 'route 192.168.1.0 255.255.255.0'
list push 'dhcp-option DNS XXX'
list push 'dhcp-option DNS XXX'
list push 'block-outside-dns'
thx