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

    OpenVPN site-to-site, how to query for common name of connected sites?

    Scheduled Pinned Locked Moved OpenVPN
    6 Posts 3 Posters 1.5k 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.
    • B Offline
      bplein
      last edited by

      All,

      I am successfully connecting my Unifi USG gateway as an OpenVPN site-to-site client with my central pfSense router. Everything works as planned.

      As I connect more external systems to my pfSense OpenVPN instance, I will need to use client-specific overrides. To do so I need the Common Name from the USG cert.

      Is there a way from pfSense to get the common name from the connected clients? Since I am already connecting successfully, this would be the easiest way to ensure I get the right text to use for my OpenVPN overrides.

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

        Status/OpenVPN shows Common Name of connected clients.

        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
        • B Offline
          bplein
          last edited by

          Thanks for the quick reply.

          I don't see where the common name would be. The columns that I see that could be the name are "Name" (which is the name of the SERVER, not the client), and there's a "Remote Host" which is the apparent IP (public IP address, not the real IP) of the connected client.

          1 Reply Last reply Reply Quote 0
          • B Offline
            bplein
            last edited by

            This could be a case of bad understanding on my part.

            It appears that the interface for adding client-specific overrides only applies to Remote Access (non-site-to-site) settings. That also seems to make sense as shared key does NOT have a cert generation for the client site that I'm aware of, so no common name to set.

            If anyone can set me straight here, thanks. Otherwise I think I'll just set up multiple OpenVPN servers.

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

              If you use Peer to Peer (SSL/TLS) it uses overrides.

              If you use Peer to Peer (Shared Key), you need one server per client.

              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 0
              • B Offline
                bplein
                last edited by

                Thanks for the succinct answer!

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