diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2013-12-12 09:30:20 -0500 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2013-12-12 09:30:20 -0500 |
commit | 5911bdeff000bea36ecfdd78fb49490a35ce2995 (patch) | |
tree | 6ab96f63bda3d63af00c2c051c30055b64435557 /config/snort/snort_migrate_config.php | |
parent | df96cff4973bafa17872ea49a6f28e899be5ae7b (diff) | |
download | pfsense-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.php | 12 |
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; } |