[Openswan Users] Count number of current IPsec connections?

Will Roberts ironwill42 at gmail.com
Sat Jan 29 12:30:20 EST 2011


Looks like that /proc tree doesn't exist when using NETKEY (at least not 
for me). However doing this does work:

ipsec auto --status | grep -c "IPsec SA established"

Thanks!
--Will

On 01/29/2011 11:29 AM, sertys at estates.bg wrote:
> 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
>>
>
>
> _______________________________________________
> 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