Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Snort Enable All/Disable All Categories

    Scheduled Pinned Locked Moved pfSense Packages
    1 Posts 1 Posters 1.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      RedRep
      last edited by

      I took the lazy way out of clicking all of those little checkboxes.

      What you need to do:

      Create /usr/local/www/javascript/checkboxes.js
      Fill with:

      function SetAllCheckBoxes(FormName, FieldName, CheckValue)
      {
      	if(!document.forms[FormName])
      		return;
      	var objCheckBoxes = document.forms[FormName].elements[FieldName];
      	if(!objCheckBoxes)
      		return;
      	var countCheckBoxes = objCheckBoxes.length;
      	if(!countCheckBoxes)
      		objCheckBoxes.checked = CheckValue;
      	else
      		// set the check value for all check boxes
      		for(var i = 0; i < countCheckBoxes; i++)
      			objCheckBoxes[i].checked = CheckValue;
      }
      
      Edit /usr/local/pkg/snort/snort_head.inc
      Add this:
      
      [code][/code]
      
      above where it says:
      
      [code][/code]
      
      and finally edit /usr/local/www/snort/snort_rulesets.php
      and add:
      
      [code] 
      				[/code]
      
      above:
      
      [code][/code][/i]
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.