xelerance / Openswan

Openswan
Other
856 stars 211 forks source link

Want to see traffic per tunnel statistics...? #158

Open p2yogibear opened 8 years ago

p2yogibear commented 8 years ago

Per tunnel statistics is supported by openswan. I am using openswan version 2.6.38. When updating a SA entry does it monitor traffic for particular SA entry....??

raghavenderlomte commented 6 years ago

is it possible to get per tunnel statistics in openswan ?

letoams commented 6 years ago

With libreswan you can do that with: ipsec whack —trafficstatus

Paul https://nohats.ca/swan.gif

Sent from my phone

On Jun 6, 2018, at 09:39, raghavenderlomte notifications@github.com wrote:

is it possible to get per tunnel statistics in openswan ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

mcr commented 6 years ago

raghavenderlomte notifications@github.com wrote:

is it possible to get per tunnel statistics in openswan ?

No, the NETKEY interface is not collecting the statistics into openswan, but it's a good idea.

You can run "ip xfrm state show" and parse it, or better, use C/python code to pull the cooked AF_NETLINK data directly. I wish that ip xfrm state show did not dump the session keys without an extra option though.