opnsense / core

OPNsense GUI, API and systems backend
https://opnsense.org/
BSD 2-Clause "Simplified" License
3.28k stars 727 forks source link

IPsec logs always blank #7504

Closed zyphlar closed 3 months ago

zyphlar commented 3 months ago

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

Describe the bug

Despite finding IPsec log settings under VPN > IPsec > Advanced Settings (which was non-obvious, some of these menus could use reordering/renaming/cleanup and some features more prominently cross-linked to each other) the VPN > IPsec > Log File entry is totally blank.

Interestingly, the Firewall > Log Files > General view is similarly blank even though the Live, Overview, and Plain Views have data. I wonder if this logging facility is broken somehow. A firefox network inspector shows a POST being received just fine, it just produces rows: [] (empty response) for both api/diagnostics/log/core/ipsec and api/diagnostics/log/core/firewall

To Reproduce

Expected behavior

IPsec logs should not be blank, especially with debug log levels turned on.

Describe alternatives you considered

Screaming into the void, etc

Environment

OPNsense 24.1.8-amd64 FreeBSD 13.2-RELEASE-p11 OpenSSL 3.0.13

AMD GX-412TC SOC (4 cores, 4 threads)

PCEngines APU2

AdSchellevis commented 3 months ago

right top corner, log level selector

zyphlar commented 3 months ago

Ahh, that did it. So I've been managing IPsec VPNs with PFsense/etc since ~2010, I think it's safe to say that most people who haven't figured out not only the log level controls but also the log level filters is going to just give up rather than make a Github ticket (I'm a feisty one, and also happen to also live on Github all day in my new job as a web dev.) Almost every other page in OPNsense automatically displays whatever data it may have, these tables specifically are oddballs in that regard.

Some suggestions to prevent future dismay:

That all said, thank you so much for continuing the FOSS nature of PFsense, overall I'm surprised by the featureset, stability, and updated UI.

AdSchellevis commented 3 months ago

Sounds like case closed, there's always room for improvement, but how we handle logging in all parts of the system is pretty consistent, explaining the use better is more a documentation issue (maybe adding a paragraph in https://docs.opnsense.org/manual/gui.html).

zyphlar commented 3 months ago

I've gotten this far without reading the manual, not gonna start now ;)

Consider this a feature request, maybe I'll make a PR sometime in the future if I have time. The rest of the UI is mostly intuitive, minus this