diff options
author | Seth Mos <seth.mos@dds.nl> | 2011-03-16 11:37:02 +0100 |
---|---|---|
committer | Seth Mos <seth.mos@dds.nl> | 2011-03-16 11:38:44 +0100 |
commit | 413a327e1ee4a8e3e0e8112bba8f8d8764fd4d8c (patch) | |
tree | 8ac0f26c20093c0d21dcd48fbf2a89fe31802266 /usr/local/www | |
parent | bfc0cb5b6af67cda4c29580ad9fe51c9cda197e5 (diff) | |
download | pfsense-413a327e1ee4a8e3e0e8112bba8f8d8764fd4d8c.zip pfsense-413a327e1ee4a8e3e0e8112bba8f8d8764fd4d8c.tar.gz |
Add v6 entries to the logs
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/diag_logs_ipsec.php | 10 |
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"; } |