diff options
author | robiscool <robrob2626@yahoo.com> | 2011-06-13 16:01:36 -0700 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2011-06-13 16:04:51 -0700 |
commit | 3a16379bd0e3afc1a0845c0ea57a669923a57a4d (patch) | |
tree | a55bf0b769dc3f253cbeb379a889076be44a9679 /config/snort-dev/snort_new.inc | |
parent | 44868bdce5b4fd7316e118d6dda91dd918db6942 (diff) | |
download | pfsense-packages-3a16379bd0e3afc1a0845c0ea57a669923a57a4d.tar.gz pfsense-packages-3a16379bd0e3afc1a0845c0ea57a669923a57a4d.tar.bz2 pfsense-packages-3a16379bd0e3afc1a0845c0ea57a669923a57a4d.zip |
snort-dev update download rules code, rules settings for ifaces added
Diffstat (limited to 'config/snort-dev/snort_new.inc')
-rw-r--r-- | config/snort-dev/snort_new.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/snort-dev/snort_new.inc b/config/snort-dev/snort_new.inc index cc574baf..efd546d8 100644 --- a/config/snort-dev/snort_new.inc +++ b/config/snort-dev/snort_new.inc @@ -257,6 +257,7 @@ function snortSql_updateRuleSetList() $table = $_POST['dbTable']; $ruleSetfilenames = $_POST['filenamcheckbox']; $ifaceuuid = $_POST['ifaceuuid']; + $iface = $_POST['iface']; $addDate = date(U); @@ -303,7 +304,7 @@ function snortSql_updateRuleSetList() // clean database of old names and turn rulesets off - $listDir = snortScanDirFilter('/usr/local/etc/snort/rules/', '.rules'); + $listDir = snortScanDirFilter("/usr/local/etc/snort/sn_{$ifaceuuid}_{$iface}/rules/", '.rules'); $resultAllRulesetname = sqlite_query($db, "SELECT rulesetname FROM {$table} WHERE ifaceuuid = '{$ifaceuuid}'; |