[strongSwan] how can I see some traffic statistics from Strongswan?

Andreas Steffen andreas.steffen at strongswan.org
Fri Apr 30 13:34:55 CEST 2010

Hello Cristina,

the command

    ip -s xfrm state

will give you the number of sent and received packets per SA.

    ipsec statusall <conn>

will give you only the amount of inbound and outbound bytes.

Best regards


On 30.04.2010 13:02, Cristina Vintila wrote:
> Hello
> I have a working Strongswan and I would be interested to see the number
> of packets transmitted (sent/received) over a certain SA / all SAs.
> Is that possible?
> (I must confess I haven't spent too much time on the documentation).
> Thank you very much for your time,
> Cristina

Andreas Steffen                         andreas.steffen at strongswan.org
strongSwan - the Linux VPN Solution!                www.strongswan.org
Institute for Internet Technologies and Applications
University of Applied Sciences Rapperswil
CH-8640 Rapperswil (Switzerland)

More information about the Users mailing list