1.2.1-RC2 no firwall logs in dashboard
-
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,
EmanuelePS: 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. -
http://forum.pfsense.org/index.php/topic,12493.0.html
-
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?
-
Dashboard is not supported for 1.2.1. Use at your own risk.
-
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.
-
-
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