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

    snort 4.1.6_27 crashing with php error

    Scheduled Pinned Locked Moved pfSense Packages
    2 Posts 2 Posters 45 Views 2 Watching
    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.
    • S Offline
      SomeoneOnTheInternet
      last edited by

      just updated the snort package, and when entering an interface's Rules page, the web server encounters an error and crashes with the following:

      Crash report begins.  Anonymous machine information:
      
      amd64
      15.0-CURRENT
      FreeBSD 15.0-CURRENT #21 RELENG_2_8_1-n256095-47c932dcc0e9: Thu Aug 28 16:27:48 UTC 2025     root@pfsense-build-release-amd64-1.eng.atx.netgate.com:/var/jenkins/workspace/pfSense-CE-snapshots-2_8_1-main/obj/amd64/AupY3aTL/var/jenkins/workspace/pfSense-CE-
      
      Crash report details:
      
      PHP Errors:
      [17-Oct-2025 14:37:36 Australia/Melbourne] PHP Parse error:  syntax error, unexpected variable "$tmp" in /usr/local/www/snort/snort_rules.php on line 181
      
      No FreeBSD crash data found.
      
      fireodoF 1 Reply Last reply Reply Quote 0
      • fireodoF Online
        fireodo @SomeoneOnTheInternet
        last edited by fireodo

        @SomeoneOnTheInternet Same here too ...

        EDIT:

        for the moment (until @jimp overview the code) you can edit the /usr/local/www/snort/snort_rules.php.

        Go to line 178 and put a ";" (without quota) in the end of this statement:

        $currentruleset = basename($currentruleset)
        

        so it looks like this:

        $currentruleset = basename($currentruleset);
        

        it helped here.

        Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
        SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
        pfsense 2.8.1 CE
        Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

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