"; if($pfsense_stable == 'yes'){echo $pgtitle;} echo "

\n"; echo ""; echo " \n \n \n \n \n \n \n
\n"; echo '
' . "\n"; echo '' . "\n"; echo '' . "\n"; echo '
' . "\n"; echo "
\n
\n \n \n \n \n
\n # The rules directory is empty. /usr/local/etc/snort/snort_{$iface_uuid}_{$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); } /* alert file */ $d_snortconfdirty_path = "/var/run/snort_conf_{$iface_uuid}_{$if_real}.dirty"; /* this will exec when alert says apply */ if ($_POST['apply']) { if (file_exists($d_snortconfdirty_path)) { write_config(); sync_snort_package_all($id, $if_real, $iface_uuid); sync_snort_package(); unlink($d_snortconfdirty_path); } } if ($_POST["Submit"]) { $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(); touch($d_snortconfdirty_path); header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); header( 'Cache-Control: no-store, no-cache, must-revalidate' ); header( 'Cache-Control: post-check=0, pre-check=0', false ); header( 'Pragma: no-cache' ); sleep(2); sync_snort_package_all($id, $if_real, $iface_uuid); header("Location: /snort/snort_rulesets.php?id=$id"); } $enabled_rulesets = $a_nat[$id]['rulesets']; if($enabled_rulesets) $enabled_rulesets_array = split("\|\|", $enabled_rulesets); include("/usr/local/pkg/snort/snort_head.inc"); ?> ' . $pgtitle . '

';}?>
"; ?> '; if($savemsg) { print_info_box_np2("{$savemsg}"); }else{ print_info_box_np2(' The Snort configuration has changed and snort needs to be restarted on this interface.
You must apply the changes in order for them to take effect.
'); } } ?>
' . "\n"; echo '' . "\n"; echo '' . "\n"; echo '' . "\n"; ?>
\n"; echo "\n"; echo "\n\n\n"; //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 " \n\n"; echo "\n"; echo "{$file}\n"; 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.