Bug #14979
closedSnort generates an invalid $EXTERNAL_NET variable in snort.conf due to a missing escape character in the PHP code
100%
Description
The recent 4.1.6_12 Snort GUI package update contained a typo in /usr/local/pkg/snort/snort_generate_conf . A backslash escape character was omitted when constructing the $EXTERNAL_NET variable. The variable should be defined as [!$HOME_NET], but because of the missing escape character, the $HOME_NET portion is interpreted by PHP as an actual variable, and since the actual value of that variable is NULL, the end result is the invalid string [!] is written to snort.conf.
Updated by Bill Meeks about 2 years ago
Two different pull requests have been submitted to correct this bug: 1 each for the 2.7.0 CE Release and 2.8.0 CE DEVEL branches. The requests are https://github.com/pfsense/FreeBSD-ports/pull/1321 and https://github.com/pfsense/FreeBSD-ports/pull/1322.
This issue can be marked "Resolved" when those pull requests are merged.
Updated by Jim Pingle about 2 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
PR Merged, thanks!