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

    Pid openvpn client

    Scheduled Pinned Locked Moved OpenVPN
    7 Posts 3 Posters 1.6k 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.
    • T
      tronix
      last edited by

      I have done 3 openvpn clients

      In Status / System / LogsOpenVPN there is a column PID, some of thats are the clients, but how can I match pid with openVpn client?

      thanks
      Luca

      1 Reply Last reply Reply Quote 0
      • NogBadTheBadN
        NogBadTheBad
        last edited by NogBadTheBad

        Are you trying to figure out what process ID a specific client is using ?

        [2.4.4-RELEASE][admin@pfsense]/root: ps -ax | grep vpn
        16741 -  Ss        0:00.18 /usr/local/sbin/openvpn --config /var/etc/openvpn/client1.conf
        45674  -  Ss        0:00.17 /usr/local/sbin/openvpn --config /var/etc/openvpn/client3.conf
        60215  -  Ss        0:00.17 /usr/local/sbin/openvpn --config /var/etc/openvpn/client2.conf
        11358  0  S+        0:00.00 grep vpn
        [2.4.4-RELEASE][admin@pfsense]/root: grep remote /var/etc/openvpn/client1.conf
        remote us2896.nordvpn.com 1194
        remote-random
        remote-cert-tls server
        [2.4.4-RELEASE][admin@pfsense]/root:
        

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

        1 Reply Last reply Reply Quote 0
        • T
          tronix
          last edited by tronix

          Yes, because I want understand what client have some warnings in Status / System / LogsOpenVPN.
          What about using webgui instead ssh?
          Otherwise what is the purpose of writing this data(PID) on webgui?

          Thanks
          Luca

          1 Reply Last reply Reply Quote 0
          • NogBadTheBadN
            NogBadTheBad
            last edited by

            Diagnostics -> Command Prompt -> Execute Shell Command

            Andy

            1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

            1 Reply Last reply Reply Quote 1
            • JeGrJ
              JeGr LAYER 8 Moderator
              last edited by JeGr

              If you gave your OpenVPN server and client configurations proper descriptions they will show up under Status/OpenVPN or Interfaces/Assignments. The later one will show you which ovpnsX or ovpncY interface is which instance so you know which configuration (ovpns5 -> server5, ovpnc2 -> client2) is used.

              If you want to match the PID, just grep it with command prompt "ps ax | grep <pid>" to show the OVPN process in question. Other than that, the PID is more for debugging logs and to grep/see, which log entries belong to the same instance. If you have multiple servers/clients connecting at the same time, you can sort with that what messages belong to what instance.

              Don't forget to upvote ๐Ÿ‘ those who kindly offered their time and brainpower to help you!

              If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

              1 Reply Last reply Reply Quote 1
              • T
                tronix
                last edited by

                For the reasons you say JeGr, I think that the openvpn log in webgui is more readable with client description than with PID, or add the process ID in Interfaces/Assignments.
                Thank you all for the answers.
                Luca

                1 Reply Last reply Reply Quote 0
                • JeGrJ
                  JeGr LAYER 8 Moderator
                  last edited by JeGr

                  @tronix said in Pid openvpn client:

                  client description

                  Those would be dependent on either using the ovpns/ovpnc interface - which wouldn't be any more specific than using the PID like now - or showing the description the user enters while configuring the client or server setup. So if nothing is entered as description, what should be shown? You see, it's not that hard showing something but hard to show the right thing ;)
                  Also having to dig out the ovpn interface and description belonging to the specific PID (the log that is shown is the system log from OpenVPN itself) would require multiple calls to parse config.xml or ovpn config files to read the informations so would probably slow down log parsing/showing, too.

                  Don't forget to upvote ๐Ÿ‘ those who kindly offered their time and brainpower to help you!

                  If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

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