diff options
author | Ermal <eri@pfsense.org> | 2011-09-01 22:09:10 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-09-01 22:09:10 +0000 |
commit | 28f4d0b841263bd1667fe870ff8d9041ffe0f096 (patch) | |
tree | 122d137d970cdf79b70d050ef5c65f55777da3b3 /config/snort/snort_rules.php | |
parent | 3feb856e9f1b79d630ee3cad01e6bb6f3703d0eb (diff) | |
download | pfsense-packages-28f4d0b841263bd1667fe870ff8d9041ffe0f096.tar.gz pfsense-packages-28f4d0b841263bd1667fe870ff8d9041ffe0f096.tar.bz2 pfsense-packages-28f4d0b841263bd1667fe870ff8d9041ffe0f096.zip |
Some improvements to the snort rules screens
Diffstat (limited to 'config/snort/snort_rules.php')
-rw-r--r-- | config/snort/snort_rules.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/config/snort/snort_rules.php b/config/snort/snort_rules.php index 3975fd2c..75233529 100644 --- a/config/snort/snort_rules.php +++ b/config/snort/snort_rules.php @@ -43,6 +43,10 @@ $a_nat = &$config['installedpackages']['snortglobal']['rule']; $id = $_GET['id']; if (isset($_POST['id'])) $id = $_POST['id']; +if (is_null($id)) { + header("Location: /snort/snort_interfaces.php"); + exit; +} if (isset($id) && $a_nat[$id]) { $pconfig['enable'] = $a_nat[$id]['enable']; @@ -185,8 +189,8 @@ if ($_GET['openruleset'] != '' && $_GET['ids'] != '') { } */ -//$ruledir = "/usr/local/etc/snort/snort_{$iface_uuid}_{$if_real}/rules/"; -$ruledir = "/usr/local/etc/snort/rules/"; +$ruledir = "/usr/local/etc/snort/snort_{$iface_uuid}_{$if_real}/rules/"; +//$ruledir = "/usr/local/etc/snort/rules/"; $dh = opendir($ruledir); while (false !== ($filename = readdir($dh))) { |