From fe0430f761e333db547d62a374f280b8f12d0c79 Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 9 Sep 2014 23:55:43 +0200 Subject: Put some more statistics and the user that gets connected now that we can --- usr/local/www/diag_ipsec.php | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) (limited to 'usr/local/www/diag_ipsec.php') diff --git a/usr/local/www/diag_ipsec.php b/usr/local/www/diag_ipsec.php index 70d9783..76b3089 100644 --- a/usr/local/www/diag_ipsec.php +++ b/usr/local/www/diag_ipsec.php @@ -106,6 +106,7 @@ $status = ipsec_smp_dump_status(); + @@ -168,6 +169,10 @@ $status = ipsec_smp_dump_status(); echo htmlspecialchars($ikesa['remote']['identification']); } else echo 'Unknown'; + + if (is_array($ikesa['remote']['auth']) && !empty($ikesa['remote']['auth']['identity'])) { + echo "
{$ikesa['remote']['auth']['identity']}"; + } } ?> @@ -188,6 +193,9 @@ $status = ipsec_smp_dump_status(); + + +

@@ -215,7 +223,7 @@ $status = ipsec_smp_dump_status(); - +
- Show child SA entries
@@ -226,6 +234,9 @@ $status = ipsec_smp_dump_status(); + + + @@ -262,6 +273,28 @@ $status = ipsec_smp_dump_status(); echo "Unknown"; ?> + + + + + "; + echo htmlspecialchars($childsa['intalg']); + echo "
"; + if (!empty($childsa['esn'])) + echo htmlspecialchars($childsa['rekey']); + ?> + + + "; + echo "Bytes-In: " . htmlspecialchars($childsa['bytesin']) . "/Packets-In: " . htmlspecialchars($childsa['packetsin']);; + echo "
"; + echo "Bytes-Out: " . htmlspecialchars($childsa['bytesout']) . "/Packets-Out: " . htmlspecialchars($childsa['packetsout']);; + ?> +   -- cgit v1.1