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

    openvpn-monitor for pfSense OpenVPN

    Scheduled Pinned Locked Moved OpenVPN
    6 Posts 4 Posters 1.3k 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.
    • S
      sehep75559
      last edited by

      Hi Guys,

      anyone have any success with the https://github.com/furlongm/openvpn-monitor/?

      with the effects of the corona virus and work from home initiated by several businesses, I've been trying to setup a monitoring tool for openvpn, I am able to monitor thru logs using the NPS/Radius logs and the Openvpn syslogs however I find interesting to use the above openvpn-monitor, however I am stuck on the setting up the 'management 127.0.0.1 5555' part on the pfsense side.

      Appreciate if anyone could help.

      Thanks!

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

        @sehep75559 said in openvpn-monitor for pfSense OpenVPN:

        with the effects of the corona virus

        Make sure your antivirus software is up to date. 😉

        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...

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

          Look in the server config file, it uses a unix socket.

          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
          • S
            sehep75559
            last edited by sehep75559

            hi mate, apologies, can you please elaborate. i'm still at lost regarding this.. thanks!

            GertjanG 1 Reply Last reply Reply Quote 1
            • GertjanG
              Gertjan @sehep75559
              last edited by

              @sehep75559
              What @Pippin said was all I needed to see how this Management works.

              Actually, the OpenVPN server widget present on the pfSense dashboard uses it already !!
              So, no need to set something like :

              @sehep75559 said in openvpn-monitor for pfSense OpenVPN:

              'management 127.0.0.1 5555'

              it would break the widget.

              Check for your in the OpenVPN server config file.
              It is here : /var/etc/openvpn/serverx.conf where x is the OpenVPN server number.

              You will find a line like :

              management /var/etc/openvpn/server1.sock unix
              

              So, it is a socket.

              Open a (SSH) console and :

              telnet /var/etc/openvpn/server1.sock unix
              

              Type

              status
              

              and have a look at the OpenVPN for the entire Management console doc - just for kicks for learning how stuff is done.

              According to https://github.com/furlongm/openvpn-monitor/blob/master/openvpn-monitor.py#L642 this tool should accepts unix sockets, so edit your "openvpn-monitor.conf" file, add something like
              socket /var/etc/openvpn/server1.sock

              See also https://github.com/furlongm/openvpn-monitor/issues ... which tells me that this project is somewhat abandoned.
              You should probably edit the openvpn-monitor.py to make it work with (unix) sockets.
              Here : https://github.com/furlongm/openvpn-monitor/blob/ed346321ec2dbd3298ca52e5f6cd30407f3e343a/openvpn-monitor.py#L242

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

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

                For information:
                https://github.com/OpenVPN/openvpn/blob/master/doc/management-notes.txt

                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
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.