How to reset Number of blocked entries to view setting of suricata
-
Hello,
I use suricata with pfsense.
Now I have a problem in the alerts tab of suricata.
I have set "Number of blocked entries to view. Default is 500" to 500000.
And now I can't access that tab anymore.
and i get crash error
"Crash report begins. Anonymous machine information:amd64
14.0-CURRENT
FreeBSD 14.0-CURRENT #1 RELENG_2_7_0-n255866-686c8d3c1f0: Wed Jun 28 04:21:19 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-2_7_0-main/obj/amd64/LwYAddCr/var /jenkins/workspace/pfSense-CE-snapshots-2_7_0-main/sources/FreeBSD-src-RELCrash report details:
PHP Errors:
[29-Aug-2023 15:22:49 ] PHP Fatal error: str_ireplace(): Cannot use output buffering in output buffering display handlers in /usr/local/www/csrf/csrf-magic.php on line 161
[29-Aug-2023 15:52:20 ] PHP Fatal error: str_ireplace(): Cannot use output buffering in output buffering display handlers in /usr/local/www/csrf/csrf-magic.php on line 161No FreeBSD crash data found."
Is there a way for me to reset that to 500 so I don't get this error again?
Thank you! -
You will need to find the errant value stored in the
config.xmlfile of the firewall and manually edit it. Be sure you take a configuration backup before editing the file.Changing the value from the default is not a good idea, especially when you radically increase the value. You run the PHP process out of available memory. There is a finite amount of RAM reserved for PHP processes regardless of how much RAM may be in the hardware. I think the limit is currently 512 MB.
The
config.xmlfile is in/conf/. -
@meocon At the console you can restore an earlier config:
https://docs.netgate.com/pfsense/en/latest/backup/restore.html#console-configuration-history
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy