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

    Status>System logs>Firewall

    Scheduled Pinned Locked Moved 2.3-RC Snapshot Feedback and Issues - ARCHIVED
    31 Posts 11 Posters 7.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.
    • D Offline
      divsys
      last edited by

      We need to accommodate those who do not see colors clearly.

      How about simply use Black on White for +ve and White on Black for -ve (or vice versa as consensus desires)?
      I'm suggesting color or contrast (in this case) clues to be used in addition to icon clues.

      -jfp

      1 Reply Last reply Reply Quote 0
      • BBcan177B Offline
        BBcan177 Moderator
        last edited by

        Instead of defining 'icon-danger' and 'icon-success', why not just 'green' and 'red' so those css settings can be used in other places.

        "Experience is something you don't get until just after you need it."

        Website: http://pfBlockerNG.com
        Twitter: @BBcan177  #pfBlockerNG
        Reddit: https://www.reddit.com/r/pfBlockerNG/new/

        1 Reply Last reply Reply Quote 0
        • B Offline
          biggsy
          last edited by

          OOPS - a can of worms :)

          @Steve_B:

          Replacing those glyphicons which fount-awesome icons . . .

          How about:

          Reject          - arrow-left (orange)
          Block/Drop  - arrow-down (red)
          Pass            - arrow-right (green)

          1 Reply Last reply Reply Quote 0
          • H Offline
            heper
            last edited by

            @BBcan177:

            Instead of defining 'icon-danger' and 'icon-success', why not just 'green' and 'red' so those css settings can be used in other places.

            the bootstrap css already contains  btn-success / btn-success /btn-warning  by default. both of those are used throughout the webgui.
            i thought it would be better to keep follow that naming-scheme ? what do you folks think?

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

              As well as alert-success, alert-danger etc. We also now have an optional style argument to print_info_box() that I use quite a lot:

              print_info_box(gettext("Changes saved."), success);

              So keeping with the Bootstrap style names is a good thing IMHO.

              Als ik kan

              1 Reply Last reply Reply Quote 0
              • dennypageD Offline
                dennypage
                last edited by

                Bravo.

                @Steve_B:

                We need to accommodate those who do not see colors clearly.

                1 Reply Last reply Reply Quote 0
                • R Offline
                  router_wang
                  last edited by

                  PLEASE go back to the colored "BLOCKED" and "PASS". Those are so much more ergonomic than a check or an "x". From an aesthetic standpoint they look a lot better too!

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    NOYB
                    last edited by

                    @doktornotor:

                    • The filter should be shrinked back to two rows as it was and grow itself a "hide" feature… Waste of screen estate.

                    Just for you (for 2.2.5)

                    Filter Form Hide Feature
                    Form hidden by default, shown when filtering/selected.
                    https://github.com/pfsense/pfsense/pull/2037

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

                      Thanks. I'll be adding similar functionality to 2.3 in the next few days.

                      Als ik kan

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        doktornotor Banned
                        last edited by

                        @NOYB:

                        Just for you (for 2.2.5)

                        Filter Form Hide Feature
                        Form hidden by default, shown when filtering/selected.
                        https://github.com/pfsense/pfsense/pull/2037

                        1 Reply Last reply Reply Quote 0
                        • N Offline
                          NOYB
                          last edited by

                          @Steve_B:

                          Thanks. I'll be adding similar functionality to 2.3 in the next few days.

                          Since you are in there working on that.  If you're interested in consolidating some of that redundant code and adding filter form to the other system logs, feel free to grab anything from System Logs Consolidate Code and Add Advanced Filtering #1973  The most significant issue I know of is the regex pattern in /etc/inc/filter_log.inc needs a tweak for single digit day of month.

                          I'm currently running that on 2.2.5 with the following regex changes.

                          In function conv_log_filter($logfile, $nentries, $tail = 50, $filtertext = "", $fil…

                          
                          	elseif ($logfile_type == 'system')		{ 
                          		$month_pattern = "[a-zA-Z]{3}";
                          		$day_pattern = "[0-9]{1,2}";
                          		$time_pattern = "[0-9]{2}:[0-9]{2}:[0-9]{2}";
                          
                          		$date_pattern = "\(" . $month_pattern . "\ +" . $day_pattern . "\ +" . $time_pattern . "\)";
                          
                          		$process_pattern = "\(.*?\)";
                          #		$pid_pattern = "\(.*?\)\(?::\ +\)?\(?:\[\([0-9:]*\)\]\)?:";
                          		$pid_pattern = "\(.*?\)\(?::\ +\)?\(?:\[[0-9:]*\]\)?:";
                          		$log_message_pattern = "\(.*\)";
                          
                          		$pattern = "^" . $date_pattern . "\ +" . $process_pattern . "\ +" . $pid_pattern . "\ +" . $log_message_pattern . "$";
                          	}
                          
                          

                          In function parse_system_log_line($line)

                          
                          	$month_pattern = "[a-zA-Z]{3}";
                          	$day_pattern = "[0-9]{1,2}";
                          	$time_pattern = "[0-9]{2}:[0-9]{2}:[0-9]{2}";
                          
                          	$date_pattern = "(" . $month_pattern . "\ +" . $day_pattern . "\ +" . $time_pattern . ")";
                          
                          	$process_pattern = "(.*?)";
                          	$pid_pattern = "(.*?)(?::\ +)?(?:\[([0-9:]*)\])?:";
                          	$log_message_pattern = "(.*)";
                          
                          	$pattern = "/^" . $date_pattern . "\ +" . $process_pattern . "\ +" . $pid_pattern . "\ +" . $log_message_pattern . "$/";
                          
                          	if (!preg_match($pattern, $line, $log_split))
                          		return "";
                          
                          
                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            Steve_B Netgate
                            last edited by

                            Thanks.

                            I consolidated all of the many logs pages into a single page + GET argument some months ago. I'll certainly check-out you regex suggestion.

                            Als ik kan

                            1 Reply Last reply Reply Quote 0
                            • N Offline
                              NOYB
                              last edited by

                              Unless adding the filter form to the system logs the regex that was there was fine as it only had to handle the firewall log.

                              I think it would be nice to have the filter form for the system logs too though.

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