aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata/suricata_migrate_config.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-11-26 15:39:07 -0500
committerbmeeks8 <bmeeks8@bellsouth.net>2014-12-15 12:15:44 -0500
commit95b568faae3d838eeb29e8ea2a46e32e4c1afa0b (patch)
tree2a728f9d4852c3a004d952f89eab5e59097a8b8a /config/suricata/suricata_migrate_config.php
parent617fe1038c458fcd366f675d2f94a6c2401a78a2 (diff)
downloadpfsense-packages-95b568faae3d838eeb29e8ea2a46e32e4c1afa0b.tar.gz
pfsense-packages-95b568faae3d838eeb29e8ea2a46e32e4c1afa0b.tar.bz2
pfsense-packages-95b568faae3d838eeb29e8ea2a46e32e4c1afa0b.zip
Add GUI support for new GeoIP rule options.
Diffstat (limited to 'config/suricata/suricata_migrate_config.php')
-rw-r--r--config/suricata/suricata_migrate_config.php20
1 files changed, 14 insertions, 6 deletions
diff --git a/config/suricata/suricata_migrate_config.php b/config/suricata/suricata_migrate_config.php
index d5f56a62..a53b5ba4 100644
--- a/config/suricata/suricata_migrate_config.php
+++ b/config/suricata/suricata_migrate_config.php
@@ -71,12 +71,20 @@ if ($config['installedpackages']['suricata']['config'][0]['suricata_config_ver']
/**********************************************************/
/* Create new Auto SID Mgmt settings if not set */
/**********************************************************/
- if (empty($config['installedpackages']['suricata']['config'][0]['auto_manage_sids'])) {
- $config['installedpackages']['suricata']['config'][0]['auto_manage_sids'] = "off";
- $config['installedpackages']['suricata']['config'][0]['sid_changes_log_limit_size'] = "250";
- $config['installedpackages']['suricata']['config'][0]['sid_changes_log_retention'] = "336";
- $updated_cfg = true;
- }
+if (empty($config['installedpackages']['suricata']['config'][0]['auto_manage_sids'])) {
+ $config['installedpackages']['suricata']['config'][0]['auto_manage_sids'] = "off";
+ $config['installedpackages']['suricata']['config'][0]['sid_changes_log_limit_size'] = "250";
+ $config['installedpackages']['suricata']['config'][0]['sid_changes_log_retention'] = "336";
+ $updated_cfg = true;
+}
+
+/**********************************************************/
+/* Create new Auto GeoIP update setting if not set */
+/**********************************************************/
+if (empty($config['installedpackages']['suricata']['config'][0]['autogeoipupdate'])) {
+ $config['installedpackages']['suricata']['config'][0]['autogeoipupdate'] = "on";
+ $updated_cfg = true;
+}
// Now process the interface-specific settings
foreach ($rule as &$r) {