• Going to Services/Snort/Rules.

    If I click on the Category drop down box, the rules dont refresh with the selected category.  It stays on Attack-Responses.

    Using Internet Explorer it works perfectly but with Firefox I get the above problem.  Is this a problem that can be fixed in the pfSense WebGUI code or is this strictly a Firefox problem?

  • It looks like a fix for that bit of code for IE has broken the usage in Firefox

    See ticket http://cvstrac.pfsense.com/tktview?tn=1483

    For a quick fix reverse what was done in the patch on that ticket until we sort some code to spot the different browsers.
    I think this is not a firefox bug but an IE bug as is normal with M$ they never stick to the standard.

  • Confirmed yes.

    Adding the [1] back into that line fixed the issue.

    Thanks for pointing that out.

  • Even better,

    Looks like the work to sort out the fix and give functionality for both browsers was provided by the person who first pointed out the bug, gmckinney, but since the ticket was put in, nobody bothered to follow up on his post.

    Replace the following lines after function go() in the /usr/local/www/snort_rules.php file:

    function go()
        var agt=navigator.userAgent.toLowerCase();

    if (agt.indexOf("msie") != -1) {
            box = document.forms.selectbox;}
            {box = document.forms[1].selectbox;}

    destination = box.options[box.selectedIndex].value;
        if (destination) location.href = destination;

    After making the above edit, Firefox and IE are working properly to view/edit Snort rule categories.  Thanks to gmckinney!

  • Yep your code works for me in IE7 and Firefox.


Log in to reply