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
--
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany [email protected]
signature.asc
Description: PGP signature
_______________________________________________ Openvpn-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-users
