OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: nowindows on October 26, 2024, 08:31:32 PM

Title: Dashboard Firewall Widget
Post by: nowindows on October 26, 2024, 08:31:32 PM
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?
Title: Re: Dashboard Firewall Widget
Post by: g29 on May 15, 2025, 05:30:04 AM
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.