I'm trying for weeks to connect my Mint Linux laptop to my OPNsense box with OpenVPN with no luck.
I've been following this tutorial: https://www.kirkg.us/posts/building-an-openvpn-server-with-opnsense/ (https://www.kirkg.us/posts/building-an-openvpn-server-with-opnsense/)
This is the last error I see in /var/log/openvpn.log:
Nov 20 21:21:08 firewall openvpn[44222]: TLS Error: cannot locate HMAC in incoming packet from [AF_INET]
Any idea where I make a mistake?
HMAC is usually calculated using a digest algorithm like SHA-256. You may have a mismatch there.
Maybe I should start with the first problem.
When I try to import the exported files (.ovpn, .p12 and .key) I get this error:
The file "...." could not be read or does not contain recognized VPN information.
Error: unknown error
you should try to run it on the command line: openvpn config.ovpn
Almost there. Works with iPhone and iPad. This is the error on my linux laptop:
Tue Nov 22 20:40:30 2016 ERROR: Cannot ioctl TUNSETIFF tun: Operation not permitted (errno=1)
Tue Nov 22 20:40:30 2016 Exiting due to fatal error
Any ideas?
Fixed. :)
I needed sudo
This method is new to me. Maybe someone can point me in the right direction what's next.
The commond line seems to hang but it looks like that is the point where I have a working VPN connection. Is there a way to save this setup or do I always have to do it like this?
You can start the connection via systemd or NetworkManager on Linux. NetworkManager offers you the possibility to import your configuration.
That's where things go wrong. I'm unable to import. I get an error.
On my computer I can import *.ovpn files. I use files in pem format for the key and the certificates. Maybe it is because of your p12 file.
Could be, but I don't see an option what to export in the archive file.