Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How to reset Number of blocked entries to view setting of suricata

    Scheduled Pinned Locked Moved IDS/IPS
    3 Posts 3 Posters 395 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      meocon
      last edited by

      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-REL

      Crash 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 161

      No 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!

      S 1 Reply Last reply Reply Quote 0
      • bmeeksB
        bmeeks
        last edited by bmeeks

        You will need to find the errant value stored in the config.xml file 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.xml file is in /conf/.

        1 Reply Last reply Reply Quote 0
        • S
          SteveITS Galactic Empire @meocon
          last edited by

          @meocon At the console you can restore an earlier config:
          https://docs.netgate.com/pfsense/en/latest/backup/restore.html#console-configuration-history

          Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
          When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
          Upvote 👍 helpful posts!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.