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

    1.2.1-RC2 no firwall logs in dashboard

    Scheduled Pinned Locked Moved 1.2.1-RC Snapshot Feedback and Problems-RETIRED
    7 Posts 3 Posters 4.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.
    • E Offline
      Emab
      last edited by

      I upgraded form 1.2 to 1.2.1 RC2, and all runs well without problems, but now in dashboard firewall logs report source and destination grayed.

      How can i resolve this problem?

      Best,
      Emanuele

      PS: I tryed to reinstall Dashboard and I noticed in log:

      Nov 9 02:00:57 php: /pkg_mgr_install.php: The command 'chmod a+rw /usr/local/www/fbegin.php' returned exit code '1', the output was 'chmod: /usr/local/www/fbegin.php: No such file or directory'
      Nov 9 02:00:55 php: /pkg_mgr_install.php: The command 'chmod a+rw /usr/local/www/fbegin.php' returned exit code '1', the output was 'chmod: /usr/local/www/fbegin.php: No such file or directory'
      Nov 9 02:00:47 php: /pkg_mgr_install.php: Beginning package installation for Dashboard.

      1 Reply Last reply Reply Quote 0
      • S Offline
        sullrich
        last edited by

        http://forum.pfsense.org/index.php/topic,12493.0.html

        1 Reply Last reply Reply Quote 0
        • E Offline
          Emab
          last edited by

          @sullrich:

          http://forum.pfsense.org/index.php/topic,12493.0.html

          ok about the verbose logs, but about the problems of the firewall logs in the dashboard?

          1 Reply Last reply Reply Quote 0
          • S Offline
            sullrich
            last edited by

            Dashboard is not supported for 1.2.1.  Use at your own risk.

            1 Reply Last reply Reply Quote 0
            • jimpJ Offline
              jimp Rebel Alliance Developer Netgate
              last edited by

              For the brave, the fix for this is only a one character change:

              in /usr/local/www/widgets/include/log.inc, line 48:
              Change from:

              preg_match("/(.*)\s.*\spf:\s.*\srule\s(.*)\(match\)\:\s(.*)\s\w+\son\s(\w+)\:\s.*\slength\:.*\s(.*)\s>\s(.*)\:\s.*/", $logent, $log_split);
              

              To:

              preg_match("/(.*)\s.*\spf:\s.*\srule\s(.*)\(match\)\:\s(.*)\s\w+\son\s(\w+)\:\s.*\slength\s.*\s(.*)\s>\s(.*)\:\s.*/", $logent, $log_split);
              

              Apparently in 1.2 the log output had "length:" and in 1.2.1 it has just "length " (space after), so changing from length: to length\s fixed it for me.

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • E Offline
                Emab
                last edited by

                @jimp:

                For the brave, the fix for this is only a one character change:

                Thank you!!!

                1 Reply Last reply Reply Quote 0
                • jimpJ Offline
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  Actually, there are still some entries that cause blank or malformatted lines in the dashboard log viewer.

                  I copied more of the logic from diag_logs_filter.php into log.inc, and am seeing even better results.

                  Could still probably use more work, but It Works For Me™

                  log.inc.txt

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

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