Log user connections and disconnections from OpenVPN server
-
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!
-
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 !
-
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! -
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