aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata/suricata_generate_yaml.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-03-18 12:42:08 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-03-18 12:42:08 -0400
commita6f4ab08784d3bcaef35b74f7e22358378acdc53 (patch)
treec43477a2f843668826ca5aa600028c50c6fb7cf7 /config/suricata/suricata_generate_yaml.php
parent279bed909a58259a0f04c5de575955ce9e956ec0 (diff)
downloadpfsense-packages-a6f4ab08784d3bcaef35b74f7e22358378acdc53.tar.gz
pfsense-packages-a6f4ab08784d3bcaef35b74f7e22358378acdc53.tar.bz2
pfsense-packages-a6f4ab08784d3bcaef35b74f7e22358378acdc53.zip
Add log_limit and sensor_id params to Barnyard2 configuration page.
Diffstat (limited to 'config/suricata/suricata_generate_yaml.php')
-rw-r--r--config/suricata/suricata_generate_yaml.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/suricata/suricata_generate_yaml.php b/config/suricata/suricata_generate_yaml.php
index 0614adf8..115f0045 100644
--- a/config/suricata/suricata_generate_yaml.php
+++ b/config/suricata/suricata_generate_yaml.php
@@ -226,6 +226,16 @@ if ($suricatacfg['barnyard_enable'] == 'on')
else
$barnyard2_enabled = "no";
+if (isset($suricatacfg['unified2_log_limit']))
+ $unified2_log_limit = "{$suricatacfg['unified2_log_limit']}mb";
+else
+ $unified2_log_limit = "32mb";
+
+if (isset($suricatacfg['barnyard_sensor_id']))
+ $unified2_sensor_id = $suricatacfg['barnyard_sensor_id'];
+else
+ $unified2_sensor_id = "0";
+
// Add interface-specific IP defrag settings
if (!empty($suricatacfg['frag_memcap']))
$frag_memcap = $suricatacfg['frag_memcap'];