aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-12-08 14:44:30 -0500
committerbmeeks8 <bmeeks8@bellsouth.net>2014-12-15 12:15:48 -0500
commit625a2136f876acd1671dd34d79744b7ddffaf616 (patch)
tree5d9487863c476af5fb45b8bcb048fd26837f1f85 /config/suricata
parent477886371b45c363d02727afce409a03a99d516a (diff)
downloadpfsense-packages-625a2136f876acd1671dd34d79744b7ddffaf616.tar.gz
pfsense-packages-625a2136f876acd1671dd34d79744b7ddffaf616.tar.bz2
pfsense-packages-625a2136f876acd1671dd34d79744b7ddffaf616.zip
Disable IP REPUTATION when platform is NanoBSD.
Diffstat (limited to 'config/suricata')
-rw-r--r--config/suricata/suricata_ip_list_mgmt.php8
-rw-r--r--config/suricata/suricata_ip_reputation.php8
2 files changed, 15 insertions, 1 deletions
diff --git a/config/suricata/suricata_ip_list_mgmt.php b/config/suricata/suricata_ip_list_mgmt.php
index b63d3e77..ee3a7009 100644
--- a/config/suricata/suricata_ip_list_mgmt.php
+++ b/config/suricata/suricata_ip_list_mgmt.php
@@ -41,7 +41,7 @@
require_once("guiconfig.inc");
require_once("/usr/local/pkg/suricata/suricata.inc");
-global $config;
+global $config, $g;
if (!is_array($config['installedpackages']['suricata']['rule']))
$config['installedpackages']['suricata']['rule'] = array();
@@ -204,6 +204,11 @@ if ($savemsg)
<div id="mainarea">
<table id="maintable" class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0">
<tbody>
+ <?php if ($g['platform'] == "nanobsd") : ?>
+ <tr>
+ <td colspan="2" class="listtopic"><?php echo gettext("IP Reputation is not supported on NanoBSD installs"); ?></td>
+ </tr>
+ <?php else: ?>
<tr>
<td colspan="2" class="listtopic"><?php echo gettext("Emerging Threats IQRisk Settings"); ?></td>
</tr>
@@ -357,6 +362,7 @@ if ($savemsg)
</table>
</td>
</tr>
+ <?php endif; ?>
</tbody>
</table>
</div>
diff --git a/config/suricata/suricata_ip_reputation.php b/config/suricata/suricata_ip_reputation.php
index d1e67dad..3e02d484 100644
--- a/config/suricata/suricata_ip_reputation.php
+++ b/config/suricata/suricata_ip_reputation.php
@@ -195,6 +195,7 @@ if ($savemsg)
<?php endif; ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
+ <tbody>
<tr>
<td>
<?php
@@ -232,6 +233,11 @@ if ($savemsg)
<td><div id="mainarea">
<table id="maintable" class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0">
<tbody>
+ <?php if ($g['platform'] == "nanobsd") : ?>
+ <tr>
+ <td colspan="2" class="listtopic"><?php echo gettext("IP Reputation is not supported on NanoBSD installs"); ?></td>
+ </tr>
+ <?php else: ?>
<tr>
<td colspan="2" valign="top" class="listtopic"><?php echo gettext("IP Reputation Configuration"); ?></td>
</tr>
@@ -371,11 +377,13 @@ if ($savemsg)
</table>
</td>
</tr>
+ <?php endif; ?>
</tbody>
</table>
</div>
</td>
</tr>
+ </tbody>
</table>
<script type="text/javascript">