aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_interfaces.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-08-03 08:50:45 +0000
committerErmal <eri@pfsense.org>2011-08-03 08:50:45 +0000
commit7d7a5b66b63cdce23661c1e7e76643ffc196db26 (patch)
treef165a6c83266985177dbdb12b735337096d64d14 /config/snort/snort_interfaces.php
parent362e56bb3514ea92891d2fcffc64d0e122a7c359 (diff)
downloadpfsense-packages-7d7a5b66b63cdce23661c1e7e76643ffc196db26.tar.gz
pfsense-packages-7d7a5b66b63cdce23661c1e7e76643ffc196db26.tar.bz2
pfsense-packages-7d7a5b66b63cdce23661c1e7e76643ffc196db26.zip
Check that wrong input is not posted on the final config file. Let the pacakge system handle removing of freebsd packages. When starting stopping from the Snort Interfaces screen sync the configuration as well.
Diffstat (limited to 'config/snort/snort_interfaces.php')
-rw-r--r--config/snort/snort_interfaces.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/snort/snort_interfaces.php b/config/snort/snort_interfaces.php
index 337e50ac..a192ca43 100644
--- a/config/snort/snort_interfaces.php
+++ b/config/snort/snort_interfaces.php
@@ -141,6 +141,8 @@ if ($_GET['act'] == 'toggle' && is_numeric($id)) {
/* Log Iface stop */
exec("/usr/bin/logger -p daemon.info -i -t SnortStartup 'Toggle for {$snort_uuid}_{$if_real}...'");
+ sync_snort_package_all($id, $if_real, $snort_uuid);
+
$tester2 = Running_Ck($snort_uuid, $if_real, $id);
if ($tester2 == 'yes') {
@@ -159,7 +161,6 @@ if ($_GET['act'] == 'toggle' && is_numeric($id)) {
}else{
- sync_snort_package_all($id, $if_real, $snort_uuid);
Running_Start($snort_uuid, $if_real, $id);
header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' );