aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-01-01 17:06:10 -0500
committerbmeeks8 <bmeeks8@bellsouth.net>2014-01-01 17:06:10 -0500
commitc7f59df06f608245bbc8ea657ff8ce93bd64e796 (patch)
treeb804a0f271e4da6cd8ce9f3b185afe60e33f5c5a /config/snort
parent79b66e3500c39bb99988e58354611bb97a674724 (diff)
downloadpfsense-packages-c7f59df06f608245bbc8ea657ff8ce93bd64e796.tar.gz
pfsense-packages-c7f59df06f608245bbc8ea657ff8ce93bd64e796.tar.bz2
pfsense-packages-c7f59df06f608245bbc8ea657ff8ce93bd64e796.zip
Add new param to tail command to fix date sorting
Diffstat (limited to 'config/snort')
-rwxr-xr-xconfig/snort/snort_alerts.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/snort/snort_alerts.php b/config/snort/snort_alerts.php
index ede6cf9a..2b957f61 100755
--- a/config/snort/snort_alerts.php
+++ b/config/snort/snort_alerts.php
@@ -379,7 +379,7 @@ if ($pconfig['arefresh'] == 'on')
/* make sure alert file exists */
if (file_exists("/var/log/snort/snort_{$if_real}{$snort_uuid}/alert")) {
- exec("tail -{$anentries} /var/log/snort/snort_{$if_real}{$snort_uuid}/alert | sort -r > /tmp/alert_{$snort_uuid}");
+ exec("tail -{$anentries} -r /var/log/snort/snort_{$if_real}{$snort_uuid}/alert > /tmp/alert_{$snort_uuid}");
if (file_exists("/tmp/alert_{$snort_uuid}")) {
$tmpblocked = array_flip(snort_get_blocked_ips());
$counter = 0;