Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Trying to connect pfsense to openvpn as a client

    Scheduled Pinned Locked Moved OpenVPN
    7 Posts 2 Posters 1.3k Views 1 Watching
    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.
    • J
      jacklemeup
      last edited by jacklemeup

      The issue I get is specified here. This is the log file from the client, pfsense. Specifically it just restarts after establishing a connection. The server side log file is located here. It states that there is an issue with my HMAC authentication.

      My pfsense configuration can be seen here.

      There is nothing wrong with the openvpn server itself, I have verified this by importing the ovpn file on my laptop and successfully connecting to it. The issue is with my configuration on pfsense. If anyone could help me figure out either where the server configuration data or help me figure out what I have misconfigured I would greatly appreciate it.

      1 Reply Last reply
      Reply Quote 0
      • PippinP
        Pippin
        last edited by Pippin

        Also post the client config as exported by OpenVPN-AS.
        x out the remote IP.

        Edit your second link... lhttps://termbin.com/te6s

        I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
        Halton Arp

        1 Reply Last reply
        Reply Quote 0
        • J
          jacklemeup
          last edited by

          client.ovpn

          openvas.log

          1 Reply Last reply
          Reply Quote 0
          • PippinP
            Pippin
            last edited by

            Did you add
            key-direction 1
            to the advanced configuration field in pfS?

            I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
            Halton Arp

            1 Reply Last reply
            Reply Quote 0
            • J
              jacklemeup
              last edited by jacklemeup

              My custom options under advanced configuration are as follows:

              verb 3;
              key-direction 1;

              sorry for the multiple edits, I was trying something out and had to revert it back to its original form.

              1 Reply Last reply
              Reply Quote 0
              • J
                jacklemeup
                last edited by

                With your suggestion I get a new error on the client: https://pastebin.com/9UU9pZxC

                1 Reply Last reply
                Reply Quote 0
                • J
                  jacklemeup
                  last edited by

                  key-direction 1;

                  Needed to be in custom options under advanced configuration; thanks @Pippin !!!

                  1 Reply Last reply
                  Reply Quote 0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post
                  Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                  Privacy Policy · Cookie Policy