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

Log user connections and disconnections from OpenVPN server

Scheduled Pinned Locked Moved OpenVPN
4 Posts 2 Posters 998 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.
  • E
    emiliano1978
    last edited by Apr 24, 2020, 8:59 PM

    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
    • N
      noplan
      last edited by Apr 25, 2020, 6:59 AM

      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 Apr 25, 2020, 5:13 PM

        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
        • N
          noplan
          last edited by Apr 25, 2020, 8:03 PM

          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
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received