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

    Log user connections and disconnections from OpenVPN server

    OpenVPN
    2
    4
    915
    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.
    • E
      emiliano1978
      last edited by

      Hi everyone, I need to know how long a user stays connected to my Open VPN server. I need a log to be able to print with written date, connection time, time of disconnection of a user. It's possible? Is there any extension? Thanks!

      1 Reply Last reply Reply Quote 0
      • noplanN
        noplan
        last edited by

        would e-mail do the trick for you
        than you can use this ...

        https://forum.netgate.com/topic/151351/email-notification-openvpn-client-connect-common-name/26

        any requests our if you can improve let me know !

        1 Reply Last reply Reply Quote 0
        • E
          emiliano1978
          last edited by

          Thanks,
          however I unfortunately would like a system to make a monthly report on the total number of connections of a certain user and the total connection time. At the end of the month I have to write a report with the user's name and the number of hours that the connection has been used. Do you think it's possible using pfSense as a server? If I use OpenVPN on QNAP nas, the log is more readable and I also have the total downloaded / uploaded in Gigabyte of each user, as well as the time. I don't know if this is possible with pfSense. Thanks!

          1 Reply Last reply Reply Quote 0
          • noplanN
            noplan
            last edited by

            I would go a road like that

            Write information useded in that email into a text file

            Send this file via cron to another machine

            Doin the reporting stuff there

            Sounds like a nice project

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