[Openswan Users] Count number of current IPsec connections?

sertys at estates.bg sertys at estates.bg
Sat Jan 29 11:29:43 EST 2011


ipsec auto --status | grep "IPsec SA established"  | wc -l

i use this one

> Will Roberts writes:
>
>> Is there a command or something in /proc I can use to get the number of
>> currently established transport mode connections? I'm interested in
>> tracking them over time. We're using NETKEY if it makes a difference.
>
> The contents of /proc/net/ipsec/eroute/all might be useful for that, but
> I'm
> using KLIPS, so YMMV.
>
> Regards,
>
> Roel
>
> _______________________________________________
> Users at openswan.org
> http://lists.openswan.org/mailman/listinfo/users
> Micropayments: https://flattr.com/thing/38387/IPsec-for-Linux-made-easy
> Building and Integrating Virtual Private Networks with Openswan:
> http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155
>




More information about the Users mailing list