aboutsummaryrefslogtreecommitdiffstats
path: root/packages/snort/snort_blocked.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-10-08 18:53:21 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-10-08 18:53:21 +0000
commita56c2fc9602290b558912e19850221b95609659d (patch)
tree9aedcfad798893999a131a8bb9f32588736b7988 /packages/snort/snort_blocked.php
parent848dbb6a68d98eb26836d27e1d867e1ce6c830cc (diff)
downloadpfsense-packages-a56c2fc9602290b558912e19850221b95609659d.tar.gz
pfsense-packages-a56c2fc9602290b558912e19850221b95609659d.tar.bz2
pfsense-packages-a56c2fc9602290b558912e19850221b95609659d.zip
* Correct minor variable scope bug
* Add associate snort alert to ip option (handy for large snort installations)
Diffstat (limited to 'packages/snort/snort_blocked.php')
-rw-r--r--packages/snort/snort_blocked.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/snort/snort_blocked.php b/packages/snort/snort_blocked.php
index 778e607c..67bd1f90 100644
--- a/packages/snort/snort_blocked.php
+++ b/packages/snort/snort_blocked.php
@@ -81,6 +81,7 @@ include("head.inc");
</tr>
<?php
+ $associatealertip = $config['installedpackages']['snort']['config'][0]['associatealertip'];
$ips = `/sbin/pfctl -t snort2c -T show`;
$ips_array = split("\n", $ips);
$counter = 0;
@@ -89,7 +90,10 @@ include("head.inc");
continue;
$ww_ip = str_replace(" ", "", $ip);
$counter++;
- $alert_description = get_snort_alert($ww_ip);
+ if($associatealertip)
+ $alert_description = get_snort_alert($ww_ip);
+ else
+ $alert_description = "";
echo "\n<tr>";
echo "\n<td align=\"center\" valign=\"top\"'><a href='snort_blocked.php?todelete=" . trim(urlencode($ww_ip)) . "'>";
echo "\n<img title=\"Delete\" border=\"0\" name='todelete' id='todelete' alt=\"Delete\" src=\"./themes/{$g['theme']}/images/icons/icon_x.gif\"></a></td>";