[strongSwan] Strongswan stats.

Noel Kuntze noel at familie-kuntze.de
Wed Sep 24 11:04:34 CEST 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Pawel,

Look at the swanctl tool. It's easier to grep values from it.
Also, there's the vici low level API to communicate with charon.

Mit freundlichen Grüßen/Regards,
Noel Kuntze

Fingerprint: 23CA BB60 2146 05E7 7278 6592 3839 298F 63EC 6658

Am 24.09.2014 um 10:54 schrieb Pawel Grzesik:
> Hi All,
> 
> I have a quick question about statistics on strongswan. I’m trying to check values (bytes in and bytes out) per tunnel and it’s kind of problematic.
> My first choice was to get all of those values from iptables but the problem is that if I have vpn tunnel with the same peers I cannot say which rule is for which tunnel.
> So my second choice is actually command ipsec statusall but sometimes those values are not in the same position.
> For example sometimes I have bytes_o but I don’t have bytes_i or otherwise, so it’s more difficult to just grep those values by awk/cut. I guess I will need
> to use regex on it? But maybe there is more comfortable way that using regex?
> 
> Thanks,
> Pawel
> _______________________________________________
> Users mailing list
> Users at lists.strongswan.org
> https://lists.strongswan.org/mailman/listinfo/users
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJUIokhAAoJEDg5KY9j7GZYG3oP/jrmeKHku1mxlMKONsqoCrx3
BXY+SBe4mK1OVDRkw2lMh1Vg5WYm2TsJ7VB7JLu2eFg6CGtRlkZJv2Tgh42OB65X
cPsiphJ33DPKGgMqW4wgAIFpuzBy9PHE1/sf2Rxh+xnJTY3T/YoO2/MhWTwMUg0U
j3TVz42DH+ad5ftDWJRbV8L/aHxcXMKHSHdDO4bNT+rlBHChAIXi2SkZovq7lDQd
8Ij1BOKRc4ssaShxCeV+V9LvuHFZByxTLh5/IiyMSJB+SYQ93d1YpKFeFpD+o6go
axpRlGDsyAdEyZ/j+daUu5hkuZJiJBVBCNW/moW/drVD26p9StF6vn8Dq4Ez/1m3
/Z6qSj/zEtdLACcXY7Ll1UVfxLEMtaTyqPh4qfBZ1PwHTnfrmNfvonELTCRDTUn6
WZ/muERB5asOGiFYI03qBqvC+YGt9XAXxYR6sVOLEHkjycoElunyu/B+rUpZDbjY
PKFvZqN3wJ0LHC0euV+UBXwg7P6lDcS27aV0kTGeiFI2vOA/bC7rM5hgPnNKuPVw
1aAVIa6acT/1sYNMDZGDEACHDwk+vbzJMKLDIbpEGtfWwhLUf2C6isDOrwYWd/10
uU8JOzgRUsnjNFOkmQFZncyht89Y+cUjVMcNqadxBxICtck0Mb/BU5Yj0MGxRo5N
eImkai2b3I2BJPg+xumJ
=9VVT
-----END PGP SIGNATURE-----


More information about the Users mailing list