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

    pfSense OpenVPN server with user auth (LDAP) and hardware certificate

    Scheduled Pinned Locked Moved OpenVPN
    5 Posts 2 Posters 1.1k Views 3 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.
    • R
      reschi1
      last edited by

      Hi OpenVPN gurus!

      I currently run an OpenVPN server in Server Mode "Remote Access (User Auth)" to an LDAP backend. It works without any issues.

      I'm wondering if there's a way to make sure that OpenVPN users will only use allowed hardware to connect to the OpenVPN server. I thought about a certificate for the hardware or sth. similar. The server mode "Remote Access (User Auth + TLS/SSL)" would be a combination of user authentication and user certificate, if I understood the Netgate docs correctly.

      I'd appreciate very much if you had a hint how to achieve the goal.

      Thank you!

      1 Reply Last reply
      Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        No, there isn't. Even if you issue a certificate, the user could copy that certificate to something else.

        Even if you had a security token those can be moved between devices.

        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply
        Reply Quote 1
        • R
          reschi1
          last edited by

          Thank you @jimp!

          I understand that you cannot prevent disallowed devices from establishing the connection to the OpenVPN server.

          What about the firewall rules for the virtual OpenVPN adapter (Firewall > Rules > OpenVPN). Is there a way to restrict the OpenVPN clients accessing the LAN segment - e.g. only clients registered in the LAN segment's DHCP server table are allowed to access the LAN?

          1 Reply Last reply
          Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            No, once it has enough connectivity to reach the DHCP server it's already past OpenVPN auth and so on.

            Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply
            Reply Quote 1
            • R
              reschi1
              last edited by

              OK, so there is no way. Thanks again!

              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