Dashboard Firewall Widget

Started by nowindows, October 26, 2024, 08:31:32 PM

Previous topic - Next topic
October 26, 2024, 08:31:32 PM Last Edit: October 26, 2024, 08:43:40 PM by nowindows
24.7.7-amd64

Is there a way to edit what items appear on the firewall widget?

It appears that the widget is limited to 10 items and the firewall rules that I added don't appear.

Additionally, some items appear on the list with a color box but with a missing label.  Is there a way to fill in the label?

May 15, 2025, 05:30:04 AM #1 Last Edit: May 15, 2025, 05:33:15 AM by g29
The JavaScript code for the "Lobby > Firewall" widget (and other widgets) is located in the following directory:

/usr/local/opnsense/www/js/widgets

In Firewall.js, there are a few things you can change including the length of the top table entries and the threshold when the Firewall Widget transitions between a Pie Chart and a Table.

I was able to change the Cpu.js and the Traffic.js widgets to increase the duration of the X-axis to plot a longer duration history.

Since JavaScript is interpreted, you don't need to recompile it.

Code at your own risk.