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

    Viewing Currently Connected Clients

    Scheduled Pinned Locked Moved OpenVPN
    10 Posts 5 Posters 5.4k 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.
    • L
      leo2308
      last edited by

      I have a pfsense server running, with 15 or so clients which can connect via OpenVPN. Its all running like a well oiled machine :) Flawless.

      Ok, so sorry if this is a really obvious one, but how do I view currently connected clients ? as in, the client certificates which are currently in use ?

      Must be a way, is it through the shell somehow  ???

      EDIT…

      Ok I found out that 2.0 will have a VPN-Status feature, but is there any way at all I can currently do this with 1.2.3 ?

      1 Reply Last reply Reply Quote 0
      • GruensFroeschliG
        GruensFroeschli
        last edited by

        You can enable the managment console.
        Search the forum for this term since there are threads about this.

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

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

          I am tinkering with backporting the 2.0 openvpn status to a 1.2.3 package if I can find time. It's been on my TODO list for about a month and I haven't had a chance to take a serious look yet.

          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
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            I just uploaded a package for OpenVPN status which brings the status page from 2.0 to 1.2.3.

            A few notes:

            • It only works for OpenVPN servers in PKI mode
            • Will list all active client connections with their common name, real IP, virtual IP, connect time, and bytes sent/received.
            • You will have to manually enable the management interface for each OpenVPN server in the custom options box, using the port from that entry as well. For example, if your OpenVPN server is running on port 1194, use this:
             management 127.0.0.1 1194;
            

            I didn't write the code for this, just adjusted it slightly to work on PHP4/pfSense 1.2.3 and turned it into a package. Eventually I'd like to add support for killing a client connection, too, but not yet.

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

              @jimp:

              I just uploaded a package for OpenVPN status which brings the status page from 2.0 to 1.2.3.
              …..................
              I didn't write the code for this, just adjusted it slightly to work on PHP4/pfSense 1.2.3 and turned it into a package. Eventually I'd like to add support for killing a client connection, too, but not yet.

              It is working. Tnx for that package/feature. I am using that on linux routers with combination of webmin web management tool.

              Regards

              Sasa

              1 Reply Last reply Reply Quote 0
              • L
                leo2308
                last edited by

                @jimp:

                I just uploaded a package for OpenVPN status which brings the status page from 2.0 to 1.2.3.

                A few notes:

                • It only works for OpenVPN servers in PKI mode
                • Will list all active client connections with their common name, real IP, virtual IP, connect time, and bytes sent/received.
                • You will have to manually enable the management interface for each OpenVPN server in the custom options box, using the port from that entry as well. For example, if your OpenVPN server is running on port 1194, use this:
                 management 127.0.0.1 1194;
                

                I didn't write the code for this, just adjusted it slightly to work on PHP4/pfSense 1.2.3 and turned it into a package. Eventually I'd like to add support for killing a client connection, too, but not yet.

                Thank you, very much appreciated, this is exactly what I needed!

                1 Reply Last reply Reply Quote 0
                • M
                  mazzz86
                  last edited by

                  Hye, sorry if my question seems stupid, but where can I find this package ?

                  Thx

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

                    In the same place all of the other packages are found. From your pfSense WebGUI, go to System > Packages.

                    Once there, it will be in the list. You may have to scroll down a bit to find it (or use your browser's search-this-page function, typically ctrl-f).

                    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
                    • M
                      mazzz86
                      last edited by

                      I haven't the System > Packages menu.

                      Maybe because I'm just testing it on a LiveCD…

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

                        @mazzz86:

                        I haven't the System > Packages menu.

                        Maybe because I'm just testing it on a LiveCD…

                        Packages are not available on LiveCD, so that would explain why you don't see it. You have to install to the HDD first and then you can install packages.

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