"; echo "\n \n \n \n \n \n \n \n \n
\n"; $tab_array = array(); $tab_array[] = array("Snort Interfaces", false, "/snort/snort_interfaces.php"); $tab_array[] = array("If Settings", false, "/snort/snort_interfaces_edit.php?id={$id}"); $tab_array[] = array("Categories", true, "/snort/snort_rulesets.php?id={$id}"); $tab_array[] = array("Rules", false, "/snort/snort_rules.php?id={$id}"); $tab_array[] = array("Servers", false, "/snort/snort_define_servers.php?id={$id}"); $tab_array[] = array("Preprocessors", false, "/snort/snort_preprocessors.php?id={$id}"); $tab_array[] = array("Barnyard2", false, "/snort/snort_barnyard.php?id={$id}"); display_top_tabs($tab_array); echo "
\n
\n \n \n \n \n
\n # The rules directory is empty. /usr/local/etc/snort/snort_{$id}{$if_real}/rules \n
\n
\n
\n \n \n \n

\n\n"; echo "Please click on the Update Rules tab to install your selected rule sets. $isrulesfolderempty"; include("fend.inc"); echo ""; echo ""; exit(0); } if($_POST) { $enabled_items = ""; $isfirst = true; if (is_array($_POST['toenable'])) { foreach($_POST['toenable'] as $toenable) { if(!$isfirst) $enabled_items .= "||"; $enabled_items .= "{$toenable}"; $isfirst = false; } }else{ $enabled_items = $_POST['toenable']; } $a_nat[$id]['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 = $a_nat[$id]['rulesets']; if($enabled_rulesets) $enabled_rulesets_array = split("\|\|", $enabled_rulesets); $pgtitle = "Snort: Interface $id$if_real 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.