Snort 4.1.4_1 can not create pass list
-
Hello all. Sorry my bad english.
Have problem in snort 4.1.4_1.
When set russian language pack on pfsense i can not create or update pass-list for snort!
If set ENG language pack on pfsense i can create and update pass-listm for snort.pfsense version 2.5.2-RELEASE (amd64)
сделан Fri Jul 02 15:33:00 EDT 2021
FreeBSD 12.2-STABLE -
This may be difficult for me to fix, because I do not speak Russian. However, perhaps there is a Netgate developer who does. If so, perhaps he can help. I will clue him into this thread.
-
I sent the Netgate developer a PM to check on this thread.
-
@bmeeks Big thanks for you!
-
The Netgate developer found the issue with saving a new Pass List. The error was mine in the code. The current code is testing a form control for having a specific text value (which is in English). That is not the proper way to code that. I will get an update posted for the Netgate team to review and merge to production.
I created a Redmine Bug Report to track the issue here: https://redmine.pfsense.org/issues/12263.
But in the meantime, you can apply this easy edit to fix the issue on your system.
Either open a shell prompt on the firewall, or use the DIAGNOSTIC > EDIT FILE choice from the pfSense menu.
- Open the file
/usr/local/www/snort/snort_passlist_edit.php
. - Locate the following line in the file (it will be line number 96 in the file):
if ($_POST['save'] == "Save") {
- Change that line to read as follows and save it:
if ($_POST['save']) {
Be very careful that you end up with exactly the same text as above. That should allow you to save Pass Lists.
- Open the file
-
The fix for this issue has now been posted to both the DEVELOPMENT and RELEASE branches of pfSense CE and pfSense+. The GUI package version is 4.1.4_3.