summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-01 00:33:00 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-01 00:33:00 +0000
commit539d363322fde744d44206cfc7c5f2994e808a1a (patch)
tree8e3221f39ac3e95f6546693acc14597b15f85838 /usr
parentf6a7ef1f5bc5e18d2a833636a50b7971ddb90c89 (diff)
downloadpfsense-539d363322fde744d44206cfc7c5f2994e808a1a.zip
pfsense-539d363322fde744d44206cfc7c5f2994e808a1a.tar.gz
Further cleanup firewall logs
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/diag_logs_filter.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php
index 146f900..3cfca2c 100755
--- a/usr/local/www/diag_logs_filter.php
+++ b/usr/local/www/diag_logs_filter.php
@@ -91,7 +91,7 @@ function conv_clog($logfile, $tail) {
$flent['time'] = $first_split[0] . ", " . $first_split[1] . " " . $first_split[2];
$flent['interface'] = $second_split[5];
-
+
$flent['proto'] = $second_split[10];
$flent['act'] = $second_split[1];
$flent['src'] = format_ipf_ip($second_split[7]);
@@ -103,7 +103,9 @@ function conv_clog($logfile, $tail) {
if($second_split[11] == "udp" or $second_split[11] == "tcp" or $second_split[11] == "icmp" or $second_split[11] == "igmp") $flent['proto'] = $second_split[11];
- if($flent['proto'] == "S" or $flent['proto'] == "R") $dontdisplay = 1;
+ $flent['proto'] = ereg_replace(":", "", $flent['proto']);
+
+ if($flent['proto'] == "S" or $flent['proto'] == "NBT" or $flent['proto'] == "." or $flent['proto'] == "R" or $flent['proto'] == ">") $dontdisplay = 1;
if($dontdisplay == 0)
$filterlog[] = $flent;
OpenPOWER on IntegriCloud