Hello,
I noticed when I added some aliases today that you can check a "statistics" checkbox upon alias creation.
I did that for a few, and now I am wondering where I can find the statistics for those aliases ?
The Aliases page does not have an "Inspect" button like the Rules pages does.
The only place I noticed there could be some statistics related to the Aliases is on the Diagnostics > pfTables page where I can select my aliases there. It displays a table with packets/bytes in/out pass/block, however it's all empty, there are no numbers in any of those columns, even for the Aliases where I checked the Statistics box.
If somebody could shed some light as to how this "Statistics" checkbox for Aliases works and where I should look ?
Thank you !
You use this Alises for "allow" rules or for "block" rules?
did you enable all stat columns in table? ("pass" and "block" counters)
Quote from: Fright on January 04, 2021, 08:24:14 AM
You use this Alises for "allow" rules or for "block" rules?
did you enable all stat columns in table? ("pass" and "block" counters)
I use some for pass, some for block (some of those aliases are URL tables like the spamhaus one)
I did enable all the columns and I noticed that I do see some stats for a few entries in some aliases (again those are lists).
So it seems it's working. However I guess I expected to see zeroes (0) in those columns instead of just empty values when there was nothing yet.
Also, I noticed that the column sorting does not seem to work. So in a table of 1000+ entries, I cannot sort them by the number of blocked packets or any other column. That would have been nice.
yes, as far as I can see in the alias_util code, only sorting by address column should work.
in my opinion, to sort by all columns and add "0" instead of empty values, it is better to remove the ajax from the bootgrid search (get data before bootgrid) and do the sorting on the client side.
Worth opening an issue in GitHub for this imho if you realy need it
Quote from: Fright on January 05, 2021, 07:51:07 AM
Worth opening an issue in GitHub for this imho if you realy need it
Done: https://github.com/opnsense/core/issues/4577
hi
can you test this?
opnsense-patch 58a966b
Hi Fright, sorry I only saw your answer now.
I did not get to test it, but I migrated to 21.1 which seems to contains the patch ?
I do see for example that there are no more entries with nothing, instead they all have 0 which is good.
I did try to sort on a given column, and I thought it did not work at first, but then I realized, it works per page only.
So if you want to sort on the whole list, you need to select "all" in the dropdown to indicate how many entries per page.
It is fine for my usecase as my list only has 3000 entries (so far), but I imagine that for bigger list, the page may get slow and take time to display/refresh.
Do you think it would be possible to implement a sort on the full list even though it displays only a few entries per page (25 for example) ?
In any case, thank you for this !
yes, sorry. my bad (tested on short alias and did not notice that)
easy to fix. will make a pr