[strongSwan] How to determine how many connections are currently active?

Houman houmie at gmail.com
Wed Jul 31 10:05:58 CEST 2019


Good morning,


What is the best way to determine how many connections are currently active
on the StrongSwan server?


Maybe there is a simpler way but I thought of one way. I’m using FreeRadius
with Mysql DB as storage.


There are three fields that capture the start (acctstarttime), ongoing
(acctupdatetime) and the end (acctstoptime) of a connection.


I could theoretically filter for all acctupdatetime that start from today
and have a acctstoptime that is null.  The count of these records would be
the approximate number of active connections to the server.


Is there a better way to achieve this or do you agree to this approach?



Many Thanks,

Houman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/users/attachments/20190731/278319f5/attachment.html>


More information about the Users mailing list