diff options
author | robiscool <robrob2626@yahoo.com> | 2010-03-16 23:37:56 -0700 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2010-03-16 23:37:56 -0700 |
commit | 3741dae76ea2aa19e478fac55e75acc663007eb7 (patch) | |
tree | 3655806b60cd262ffe44f6b0e1b1b300164a8f19 /config/snort-dev/snort_rules.php | |
parent | 0a744a91d045469839e80e566c5cfad4eebe01c7 (diff) | |
download | pfsense-packages-3741dae76ea2aa19e478fac55e75acc663007eb7.tar.gz pfsense-packages-3741dae76ea2aa19e478fac55e75acc663007eb7.tar.bz2 pfsense-packages-3741dae76ea2aa19e478fac55e75acc663007eb7.zip |
snort-dev, update paths, update rules.
Diffstat (limited to 'config/snort-dev/snort_rules.php')
-rw-r--r-- | config/snort-dev/snort_rules.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/config/snort-dev/snort_rules.php b/config/snort-dev/snort_rules.php index 7a5a0cce..99e932b7 100644 --- a/config/snort-dev/snort_rules.php +++ b/config/snort-dev/snort_rules.php @@ -53,12 +53,14 @@ if (isset($id) && $a_nat[$id]) { /* convert fake interfaces to real */ $if_real = convert_friendly_interface_to_real_interface_name($pconfig['interface']); +$iface_uuid = $a_nat[$id]['uuid']; + // if(!is_dir("/usr/local/etc/snort/rules")) // exec('mkdir /usr/local/etc/snort/rules/'); /* Check if the rules dir is empy if so warn the user */ /* TODO give the user the option to delete the installed rules rules */ -$isrulesfolderempty = exec("ls -A /usr/local/etc/snort/snort_{$id}{$if_real}/rules/*.rules"); +$isrulesfolderempty = exec("ls -A /usr/local/etc/snort/snort_{$iface_uuid}_{$if_real}/rules/*.rules"); if ($isrulesfolderempty == "") { include("head.inc"); @@ -166,7 +168,7 @@ function load_rule_file($incoming_file) } -$ruledir = "/usr/local/etc/snort/snort_{$id}{$if_real}/rules/"; +$ruledir = "/usr/local/etc/snort/snort_{$iface_uuid}_{$if_real}/rules/"; $dh = opendir($ruledir); if ($_GET['openruleset'] != '' && $_GET['ids'] != '') @@ -404,7 +406,7 @@ $ifname = strtoupper($pconfig['interface']); require("guiconfig.inc"); include("head.inc"); -$pgtitle = "Snort: Interface $id$if_real Rule Category: $currentruleset"; +$pgtitle = "Snort: $id $iface_uuid $if_real Category: $currentruleset"; ?> |