mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
Export TUN device statistics from the worker process.
When a worker process terminates in authenticated state, then export statistics from the tun device (currently bytes_in and bytes_out). These statistics are sent to main process using an informational message just prior to process exit. The statistics are also exported to the disconnect script using the STATS_BYTES_IN and STATS_BYTES_OUT environment variables.
This commit is contained in:
5
TODO
5
TODO
@@ -6,11 +6,6 @@ Short term items:
|
||||
requires the reload of all certificates/parameters on the worker
|
||||
process, and imposes a quite high penalty (see the 'exec' branch).
|
||||
|
||||
* On worker process exit, send the main process the packet/bytes statistics
|
||||
of the tun device. That would allow the main process to report them
|
||||
to the disconnect script. That will most probably require ocserv to
|
||||
be linked with libnl3, and more system calls to be allowed by seccomp.
|
||||
|
||||
* Think for ways for ocserv to co-exist on the same system with
|
||||
an HTTPS server (while sharing the same port).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user