snort 4.1.6_27 crashing with php error
-
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.
-
@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.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.