Hi Gert

I will try it , thanks .

On 23/02/21 14:07, Gert Doering wrote:
Hi,

On Tue, Feb 23, 2021 at 02:01:54PM -0300, Dante F. B. Colò wrote:
I'm looking for some better way to generate a report of users sessions
only to get info when they start and end a session , currently i do it
with a shell script that looks for lines in the openvpn log file when
someone connect and authenticate successfully and for disconnection i
look for those lines when a client send a explicit notify or signals
SIGTERM and SIGUSR. If someone here know a proper way to do it or some
ready tool /software that generate this info please help me.
orr...

--client-connect $script
--client-disconnect $script

there is a zillion hooks inside OpenVPN to "notify external parties"
(plugin, script, management-interface) when "things happen".

Look for "client-connect" in "man openvpn".  It will explain the option
syntax, as well as the calling convention, environment variables passed, ...

gert




_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to