aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_preprocessors.php
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2010-04-05 16:38:51 -0700
committerrobiscool <robrob2626@yahoo.com>2010-04-05 16:38:51 -0700
commit26a2160f92664ed0679eea165d021793771504a8 (patch)
tree50c92a3ae55830b144ac1a2ddf82ebb153413696 /config/snort/snort_preprocessors.php
parent3710433a3810588b81eba7d47d135ba03ffd0e83 (diff)
downloadpfsense-packages-26a2160f92664ed0679eea165d021793771504a8.tar.gz
pfsense-packages-26a2160f92664ed0679eea165d021793771504a8.tar.bz2
pfsense-packages-26a2160f92664ed0679eea165d021793771504a8.zip
snort, add warning change code
Diffstat (limited to 'config/snort/snort_preprocessors.php')
-rw-r--r--config/snort/snort_preprocessors.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/snort/snort_preprocessors.php b/config/snort/snort_preprocessors.php
index 25963cbe..d6cbb55d 100644
--- a/config/snort/snort_preprocessors.php
+++ b/config/snort/snort_preprocessors.php
@@ -119,7 +119,7 @@ if (isset($_GET['dup']))
}
/* convert fake interfaces to real */
-$if_real = convert_friendly_interface_to_real_interface_name2($pconfig['interface']);
+$if_real = convert_friendly_interface_to_real_interface_name($pconfig['interface']);
$snort_uuid = $pconfig['uuid'];
@@ -212,7 +212,7 @@ $d_snortconfdirty_path = "/var/run/snort_conf_{$snort_uuid}_{$if_real}.dirty";
$natent['dce_rpc_2'] = $_POST['dce_rpc_2'] ? on : off;
$natent['dns_preprocessor'] = $_POST['dns_preprocessor'] ? on : off;
- if (isset($id) && $a_nat[$id])
+ if (isset($id) && $a_nat[$id])
$a_nat[$id] = $natent;
else {
if (is_numeric($after))
@@ -220,11 +220,11 @@ $d_snortconfdirty_path = "/var/run/snort_conf_{$snort_uuid}_{$if_real}.dirty";
else
$a_nat[] = $natent;
}
-
+
write_config();
/* after click go to this page */
- touch($d_snortconfdirty_path);
+ //touch($d_snortconfdirty_path);
header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' );
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
header( 'Cache-Control: no-store, no-cache, must-revalidate' );