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

    OpenVPN client computer names

    Scheduled Pinned Locked Moved OpenVPN
    7 Posts 3 Posters 755 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.
    • W
      WhiteEagle
      last edited by WhiteEagle

      Hello,

      There are two OpenVPN servers running on my pfSense. One for employees, the other for subcontractors. I know the names of my employees 'computers, but I do not know the names of the subcontractors' computers. Both employees and subcontractors connect to one system working at our client's. Sometimes they use the same user to log in (I cannot create additional users in this system, because it is a client system). If the subcontractor logs in, this system will report that there is already an open session on this user. On this system it shows up with the message that on this user there is already a session open by "username + his computer name". I would like to be able to identify the names of the subcontractors' computers, as that way I can reach the user and ask him to log out. Is this only possible using WINS servers? It is now deprecated.
      Sorry for my English.

      Regards

      JKnottJ 1 Reply Last reply Reply Quote 0
      • JKnottJ
        JKnott @WhiteEagle
        last edited by

        @whiteeagle

        This has nothing to do with pfsense or OpenVPN. However, name resolution is handled by the DNS server these days.

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

        W 1 Reply Last reply Reply Quote 0
        • W
          WhiteEagle @JKnott
          last edited by WhiteEagle

          @jknott
          I tried DNS related settings in the OpenVPN server and DNS Resolver.
          My OpenVPN server settings:
          screen 1
          screen 2

          DNS Resolver:
          screen 3

          In darkstat, I can see the address of the OpenVPN client, but it does not recognize the hostname.
          screen 4

          Opinions on forums are diffrent, some say it works via DNS, elsewhere say "NetBIOS enable" must be used. There were also threads that you should use WINS or tap mode instead of tun.
          I've tried everything and it doesn't recognize the hostnames of OpenVPN clients (our staff members too, but that's not a problem for me).

          V 1 Reply Last reply Reply Quote 0
          • V
            viragomann @WhiteEagle
            last edited by

            @whiteeagle
            Simply allow multiple sessions for a single user on the destination system if possible.

            Also you should enable an automatic log-off when the session is idle for a certain peroid of time.

            W 1 Reply Last reply Reply Quote 0
            • W
              WhiteEagle @viragomann
              last edited by

              @viragomann
              No, it is not possible. As I wrote, these are our clients' servers. I dont administer them.

              V 1 Reply Last reply Reply Quote 0
              • V
                viragomann @WhiteEagle
                last edited by

                @whiteeagle
                So you will have to request the responsible admin to do this.

                Can't think of any you can do on the OpenVPN server, since the clients use equal user accounts on the terminal server.

                W 1 Reply Last reply Reply Quote 0
                • W
                  WhiteEagle @viragomann
                  last edited by WhiteEagle

                  @viragomann said in OpenVPN client computer names:

                  So you will have to request the responsible admin to do this.
                  Can't think of any you can do on the OpenVPN server, since the clients use equal user accounts on the terminal server.

                  Maybe you got me wrong. Both our employees and subcontractors have their own individual OpenVPN accounts. However, they have one user account for the customer's system (another company). We connect to this client's network (another company) through the IPsec tunnel. When our employee tries to log into this system and the subcontractor is already logged in, a message appears that this user is already logged in to the computer (and the computer name appears here). If I could link an OpenVPN account with an unknown computer name of the subcontractor, I would know who to turn to, e.g. to log out.
                  Currently, subcontractors get static IP addresses from OpenVPN. So I am able to bind the user - ip account, but I am not able to bind the ip address - computer name.

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