1
Virtual private networks / Re: OPenVPN between OPNSEnse and PiVPN
« on: June 17, 2021, 01:48:18 pm »
I'm nearly there with my config but find that there is a TLS-crypt error on my remote PI Server:
Jun 17 11:26:39 CloudServer0 ovpn-server[696]: tls-crypt unwrap error: packet authentication failed
Jun 17 11:26:39 CloudServer0 ovpn-server[696]: TLS Error: tls-crypt unwrapping failed from [AF_INET]REDACTED:49805
This an error I only see on my OPNSense setup.
When I try with PFSense (It's only a VirtualBox test setup for comparison) using the same configuration the OpenVPN connection works perfectly. I've nailed this down to the following config option which does not be seem to be available on OPNSense (but is on PFSense):
TLS Key Usage Mode: TLS Encryption and Authentication
On PFsense, if this is set to "TLS Authentication only" the connection fails in the same way as OPNSense. But changing it to "TLS Encryption and Authentication" the VPN tunnel activates.
Therefore, can anyone shed some light on how to setup TLS Encryption and Authentication on OPNSense for their OpenVPN Client?
By the way, once I have this working with OPNSense I will write-up a configuration guide for the community.
Jun 17 11:26:39 CloudServer0 ovpn-server[696]: tls-crypt unwrap error: packet authentication failed
Jun 17 11:26:39 CloudServer0 ovpn-server[696]: TLS Error: tls-crypt unwrapping failed from [AF_INET]REDACTED:49805
This an error I only see on my OPNSense setup.
When I try with PFSense (It's only a VirtualBox test setup for comparison) using the same configuration the OpenVPN connection works perfectly. I've nailed this down to the following config option which does not be seem to be available on OPNSense (but is on PFSense):
TLS Key Usage Mode: TLS Encryption and Authentication
On PFsense, if this is set to "TLS Authentication only" the connection fails in the same way as OPNSense. But changing it to "TLS Encryption and Authentication" the VPN tunnel activates.
Therefore, can anyone shed some light on how to setup TLS Encryption and Authentication on OPNSense for their OpenVPN Client?
By the way, once I have this working with OPNSense I will write-up a configuration guide for the community.