summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_logs_ipsec.php
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@dds.nl>2011-03-16 11:37:02 +0100
committerSeth Mos <seth.mos@dds.nl>2011-03-16 11:38:44 +0100
commit413a327e1ee4a8e3e0e8112bba8f8d8764fd4d8c (patch)
tree8ac0f26c20093c0d21dcd48fbf2a89fe31802266 /usr/local/www/diag_logs_ipsec.php
parentbfc0cb5b6af67cda4c29580ad9fe51c9cda197e5 (diff)
downloadpfsense-413a327e1ee4a8e3e0e8112bba8f8d8764fd4d8c.zip
pfsense-413a327e1ee4a8e3e0e8112bba8f8d8764fd4d8c.tar.gz
Add v6 entries to the logs
Diffstat (limited to 'usr/local/www/diag_logs_ipsec.php')
-rwxr-xr-xusr/local/www/diag_logs_ipsec.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr/local/www/diag_logs_ipsec.php b/usr/local/www/diag_logs_ipsec.php
index 560cd1a..d196b30 100755
--- a/usr/local/www/diag_logs_ipsec.php
+++ b/usr/local/www/diag_logs_ipsec.php
@@ -56,13 +56,17 @@ if(is_array($config['ipsec']['phase1']))
$gateway = ipsec_get_phase1_dst($ph1ent);
if(!is_ipaddr($gateway))
continue;
- $search[] = "/(racoon: )([A-Z:].*?)({$gateway}\[[0-9].+\]|{$gateway})(.*)/i";
+ $search[] = "/(racoon: )(INFO[:].*?)({$gateway}\[[0-9].+\]|{$gateway})(.*)/i";
+ $search[] = "/(racoon: )(\[{$gateway}\]|{$gateway})(.*)/i";
+ $replace[] = "$1<strong>[{$ph1ent['descr']}]</strong>: $2$3$4";
$replace[] = "$1<strong>[{$ph1ent['descr']}]</strong>: $2$3$4";
}
/* collect all our own ip addresses */
-exec("/sbin/ifconfig | /usr/bin/awk '/inet / {print $2}'", $ip_address_list);
+exec("/sbin/ifconfig | /usr/bin/awk '/inet/ {print $2}'", $ip_address_list);
foreach($ip_address_list as $address) {
- $search[] = "/(racoon: )([A-Z:].*?)({$address}\[[0-9].+\])(.*isakmp.*)/i";
+ $search[] = "/(racoon: )(INFO[:].*?)({$address}\[[0-9].+\])/i";
+ $search[] = "/(racoon: )(\[{$address}\]|{$address})(.*)/i";
+ $replace[] = "$1<strong>[Self]</strong>: $2$3$4";
$replace[] = "$1<strong>[Self]</strong>: $2$3$4";
}
OpenPOWER on IntegriCloud