aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_migrate_config.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2013-12-12 09:30:20 -0500
committerbmeeks8 <bmeeks8@bellsouth.net>2013-12-12 09:30:20 -0500
commit5911bdeff000bea36ecfdd78fb49490a35ce2995 (patch)
tree6ab96f63bda3d63af00c2c051c30055b64435557 /config/snort/snort_migrate_config.php
parentdf96cff4973bafa17872ea49a6f28e899be5ae7b (diff)
downloadpfsense-packages-5911bdeff000bea36ecfdd78fb49490a35ce2995.tar.gz
pfsense-packages-5911bdeff000bea36ecfdd78fb49490a35ce2995.tar.bz2
pfsense-packages-5911bdeff000bea36ecfdd78fb49490a35ce2995.zip
Set sensible defaults for new SDF preproc options.
Diffstat (limited to 'config/snort/snort_migrate_config.php')
-rw-r--r--config/snort/snort_migrate_config.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/config/snort/snort_migrate_config.php b/config/snort/snort_migrate_config.php
index 35dd3847..78ccb737 100644
--- a/config/snort/snort_migrate_config.php
+++ b/config/snort/snort_migrate_config.php
@@ -279,6 +279,18 @@ foreach ($rule as &$r) {
$pconfig['ftp_server_engine']['item'][] = $default;
}
+ // Set sensible defaults for new SDF options if SDF is enabled
+ if ($pconfig['sensitive_data'] == 'on') {
+ if (empty($pconfig['sdf_alert_threshold'])) {
+ $pconfig['sdf_alert_threshold'] = 25;
+ $updated_cfg = true;
+ }
+ if (empty($pconfig['sdf_alert_data_type'])) {
+ $pconfig['sdf_alert_data_type'] = "Credit Card,Email Addresses,U.S. Phone Numbers,U.S. Social Security Numbers";
+ $updated_cfg = true;
+ }
+ }
+
// Save the new configuration data into the $config array pointer
$r = $pconfig;
}