aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort-dev/snort_rulesets.php
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2011-06-13 16:01:36 -0700
committerrobiscool <robrob2626@yahoo.com>2011-06-13 16:04:51 -0700
commit3a16379bd0e3afc1a0845c0ea57a669923a57a4d (patch)
treea55bf0b769dc3f253cbeb379a889076be44a9679 /config/snort-dev/snort_rulesets.php
parent44868bdce5b4fd7316e118d6dda91dd918db6942 (diff)
downloadpfsense-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_rulesets.php')
-rw-r--r--config/snort-dev/snort_rulesets.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/config/snort-dev/snort_rulesets.php b/config/snort-dev/snort_rulesets.php
index 9d41eb0b..09d81f4c 100644
--- a/config/snort-dev/snort_rulesets.php
+++ b/config/snort-dev/snort_rulesets.php
@@ -49,7 +49,7 @@ $a_list = snortSql_fetchAllSettings('snortDBrules', 'Snortrules', 'uuid', $uuid)
// list rules in the default dir
$filterDirList = array();
- $filterDirList = snortScanDirFilter('/usr/local/etc/snort/sn_' . $uuid . '_' . $a_list['interface'] . '/rules', '.rules');
+ $filterDirList = snortScanDirFilter('/usr/local/etc/snort/sn_' . $uuid . '_' . $a_list['interface'] . '/rules', '\.rules');
// list rules in db that are on in a array
$listOnRules = array();
@@ -144,14 +144,14 @@ jQuery(document).ready(function() {
}else{
var rulesetChecked = '';
}
-
+
jQuery('.rulesetloopblock').append(
"\n" + '<tr>' + "\n" +
'<td class="' + rowIsEvenOdd + '" align="center" valign="top" width="9%">' + "\n" +
' <input class="domecheck" name="filenamcheckbox[]" value="' + snortObjlist.ruleSets[i].rule + '" type="checkbox" ' + rulesetChecked + ' >' + "\n" +
'</td>' + "\n" +
'<td class="' + rowIsEvenOdd + '">' + "\n" +
- ' <a href="snort_rules.php?uuid=0&amp;openruleset=//usr//local//etc//snort//snort_44035_em0//rules//attack-responses.rules">' + snortObjlist.ruleSets[i].rule + '</a>' + "\n" +
+ ' <a href="/snort/snort_rules.php?uuid=<?=$uuid?>' + '&openruleset=' + snortObjlist.ruleSets[i].rule + '">' + snortObjlist.ruleSets[i].rule + '</a>' + "\n" +
'</td>' + "\n" +
'</tr>' + "\n\n"
);
@@ -220,7 +220,9 @@ jQuery(document).ready(function() {
<input type="hidden" name="dbName" value="snortDBrules" /> <!-- what db-->
<input type="hidden" name="dbTable" value="SnortruleSets" /> <!-- what db table-->
<input type="hidden" name="ifaceTab" value="snort_rulesets" /> <!-- what interface tab -->
- <input type="hidden" name="ifaceuuid" value="<?=$uuid; ?>" /> <!-- what interface to save for -->
+ <input type="hidden" name="ifaceuuid" value="<?=$uuid;?>" /> <!-- what interface to save for -->
+ <input type="hidden" name="iface" value="<?=$a_list['interface'];?>" /> <!-- what interface to save for -->
+
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr >