This is my first post. After reading I want to thank for all the usefull information.
Now I have to start writing, perhaps you can help me out.

My setup is the following:
- Router(fritzbox) with Portforwarding 1192 (udp), 443 (tcp+udp), 80 (tcp+udp) and 943 (udp) to my Raspberry
- Raspberry PI with "DietPI" and installed openvpn, version ... (http://dietpi.com/phpbb/viewtopic.php?f=8&t=5&p=623)
- trying to connect with the latest installer version for windows (https://openvpn.net/index.php/open-sour ... loads.html)
Serverconfig:
Code: Select all
port 1192
proto udp
dev tun
ca ca.crt
cert DietPi_OpenVPN_Server.crt
key DietPi_OpenVPN_Server.key
dh dh1024.pem
server 10.8.0.0 255.255.255.0
client-to-client
keepalive 10 60
comp-lzo
max-clients 10
user nobody
group nogroup
persist-key
persist-tun
verb 3
#Web Forwarding (uncomment to enable)
#push "redirect-gateway"
#push "dhcp-option DNS 10.8.0.1"
Code: Select all
client
dev tun
proto udp
remote m.y.i.p 1192
resolv-retry infinite
nobind
persist-key
persist-tun
key-direction 1
remote-cert-tls server
tls-version-min 1.2
verify-x509-name server name
cipher AES-256-CBC
auth SHA256
comp-lzo
verb 1
<ca>
-----BEGIN CERTIFICATE-----
[certificate]
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
[certificate]
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN ENCRYPTED PRIVATE KEY-----
[private key]
-----END ENCRYPTED PRIVATE KEY-----
</key>
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
[static key]
-----END OpenVPN Static key V1-----
</tls-auth>
TLS Error: cannot locate HMAC in incoming packet
After some research I investigated that there is missing the tls-preshared key on the server side. So I created a PSK with
Code: Select all
openvpn --genkey --secret ta.key
Code: Select all
tls-auth /etc/openvpn/easy-rsa2/keys/ta.key 1
Some other additions to my server config are:
Code: Select all
auth SHA512 #same in clientconfig
cipher AES-256-CBC
remote-cert-tls client
tls-version-min 1.2
tls-cipher TLS-RSA-WITH-AES-128-CBC-SHA
I also have tried with standard port number 1194 and with tcp but udp (changed portforwarding, server and clientconfig). I get no useable connection.Mon Mar 27 19:04:33 2017 Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Mon Mar 27 19:04:33 2017 Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Mon Mar 27 19:04:33 2017 TCP/UDP: Preserving recently used remote address: [AF_INET]m.y.i.p:1192
Mon Mar 27 19:04:33 2017 Socket Buffers: R=[65536->65536] S=[65536->65536]
Mon Mar 27 19:04:33 2017 UDP link local: (not bound)
Mon Mar 27 19:04:33 2017 UDP link remote: [AF_INET]m.y.i.p:1192
Mon Mar 27 19:04:33 2017 MANAGEMENT: >STATE:1490634273,WAIT,,,,,,
Do you have some hint for me. Allthough the internet seems to explode of information about openvpn I do not find a solution for my special problem. Thank you for every answer.