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

    RC3/Snort/Firefox

    webGUI
    2
    5
    4.1k
    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.
    • AhnHELA
      AhnHEL
      last edited by

      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 2.0.0.9 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?

      AhnHEL (Angel)

      1 Reply Last reply Reply Quote 0
      • M
        morbus
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • AhnHELA
          AhnHEL
          last edited by

          Confirmed yes.

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

          Thanks for pointing that out.

          AhnHEL (Angel)

          1 Reply Last reply Reply Quote 0
          • AhnHELA
            AhnHEL
            last edited by

            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;}
                else
                    {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!

            AhnHEL (Angel)

            1 Reply Last reply Reply Quote 0
            • M
              morbus
              last edited by

              Yep your code works for me in IE7 and Firefox.

              Cheers

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.