"; echo "\n \n \n \n \n \n \n \n \n
\n"; $tab_array = array(); $tab_array[] = array(gettext("Settings"), false, "/pkg_edit.php?xml=snort.xml&id=0"); $tab_array[] = array(gettext("Update Rules"), false, "/snort_download_rules.php"); $tab_array[] = array(gettext("Categories"), true, "/snort_rulesets.php"); $tab_array[] = array(gettext("Rules"), false, "/snort_rules.php"); $tab_array[] = array(gettext("Servers"), false, "/pkg_edit.php?xml=snort_define_servers.xml&id=0"); $tab_array[] = array(gettext("Blocked"), false, "/snort_blocked.php"); $tab_array[] = array(gettext("Whitelist"), false, "/pkg.php?xml=snort_whitelist.xml"); $tab_array[] = array(gettext("Threshold"), false, "/pkg.php?xml=snort_threshold.xml"); $tab_array[] = array(gettext("Alerts"), false, "/snort_alerts.php"); $tab_array[] = array(gettext("Advanced"), false, "/pkg_edit.php?xml=snort_advanced.xml&id=0"); display_top_tabs($tab_array); echo "
\n
\n \n \n \n \n
\n # The rules directory is empty.\n
\n
\n
\n \n \n \n

\n\n"; echo "Please click on the Update Rules tab to install your selected rule sets."; include("fend.inc"); echo ""; echo ""; exit(0); } if($_POST) { $enabled_items = ""; $isfirst = true; foreach($_POST['toenable'] as $toenable) { if(!$isfirst) $enabled_items .= "||"; $enabled_items .= "{$toenable}"; $isfirst = false; } $config['installedpackages']['snort']['rulesets'] = $enabled_items; write_config(); stop_service("snort"); create_snort_conf(); sleep(2); start_service("snort"); $savemsg = "The snort ruleset selections have been saved."; } $enabled_rulesets = $config['installedpackages']['snort']['rulesets']; if($enabled_rulesets) $enabled_rulesets_array = split("\|\|", $enabled_rulesets); $pgtitle = "Snort: Categories"; include("head.inc"); ?>

"; ?>
"; echo ""; echo ""; //echo ""; } ?>
Enabled Ruleset: Rules that end with "so.rules" are shared object rules.
"; if(is_array($enabled_rulesets_array)) if(in_array($file, $enabled_rulesets_array)) { $CHECKED = " checked=\"checked\""; } else { $CHECKED = ""; } else $CHECKED = ""; echo " "; echo ""; echo "{$file}"; echo ""; //echo "description"; //echo "
 
Check the rulesets that you would like Snort to load at startup.
 

NOTE: You can click on a ruleset name to edit the ruleset.