Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    [solved] OpenVPN with Linux-NetworkmanagerClient

    Scheduled Pinned Locked Moved OpenVPN
    1 Posts 1 Posters 112 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      eagle61
      last edited by

      I need hours to solve this problem. In the end it was simple. My Linux Clients was unable to connect OpenVPN-Server on pfsense. In pfsence i always got error Messages like this:
      Jun 18 10:55:41 openvpn 27145 TLS Error: cannot locate HMAC in incoming packet from [AF_INET]77.XXX.XXX.XX7:44398
      To import the client connection i used the nmcli import option on my Linux Clients. one of the Problems, but an easy to solve one, was nmcli import don't accept p12 files for the keys. So i used the keys of the Viscosity Client-Export of the pfsense export addon together with the Bundled Configurations Config file.
      But, and that was the mayor problem leading to the errors metioned above, the Viscosity tls-key (ta.key) and all other files not in p12 container, have a header like this:

      2048 bit OpenVPN static key

      This header needs to be removed for network manager. If its removed everthing works fine. And i got stable OpenVPN-Connections to pfsense.
      So maybe a further version of the pfsense OpenVPN Export addon can deliver a version of the tls-key without this header to prevent others to have similar problems like me, wasting 3 or 4 hours to solve it.

      Thanks

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.