diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-02-13 02:04:16 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-02-13 02:04:16 +0000 |
commit | 79a586b167a0a490d2dfa2e3c23be84fd31e9897 (patch) | |
tree | ee355a55f3bd8065d30acbed5f0891c81c70447c /usr/local/www/diag_logs_filter.php | |
parent | ac70ae79f47b7cab485a2e9edb2d5fbac2494f42 (diff) | |
download | pfsense-79a586b167a0a490d2dfa2e3c23be84fd31e9897.zip pfsense-79a586b167a0a490d2dfa2e3c23be84fd31e9897.tar.gz |
If we could not parse a filter log rule, log the rule and ask them to report the rule to mailing list or forum
Diffstat (limited to 'usr/local/www/diag_logs_filter.php')
-rwxr-xr-x | usr/local/www/diag_logs_filter.php | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php index e5c0598..bdbf83f 100755 --- a/usr/local/www/diag_logs_filter.php +++ b/usr/local/www/diag_logs_filter.php @@ -128,15 +128,21 @@ function conv_clog($logfile, $tail = 50) { $tmp = split("/", $log_split[2]); $flent['rulenum'] = $tmp[0]; + $shouldadd = true; + if($flent['src'] == "") - continue; + $shouldadd = false; if($flent['dst'] == "") - continue; + $shouldadd = true; if($flent['time'] == "") - continue; + $shouldadd = true; - $counter++; - $filterlog[] = $flent; + if($shouldadd == true) { + $counter++; + $filterlog[] = $flent; + } else { + log_error("There was a error parsing rule: $logent . Please report to mailing list or forum."); + } } |