opnsense / core

OPNsense GUI, API and systems backend
https://opnsense.org/
BSD 2-Clause "Simplified" License
3.39k stars 757 forks source link

24.7.3: New Suricata.yaml faulty - wrong indentation #7826

Closed asche77 closed 3 months ago

asche77 commented 3 months ago

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

Describe the bug

With 24.7.3, a new Suricata.yaml was included. This seems to be slightly faulty:

root@OPNsense:~ # /usr/local/etc/rc.d/suricata start
Starting suricata.
Error: conf-yaml-loader: Failed to parse configuration file at line 348: did not find expected key
/usr/local/etc/rc.d/suricata: WARNING: failed to start suricata

To Reproduce

Steps to reproduce the behavior:

  1. Update to 24.7.3
  2. Try to start Suricata.
  3. See error (Full error message only visible on console)

Expected behavior

Suricata starting up fine:

root@OPNsense:~ # /usr/local/etc/rc.d/suricata start
Starting suricata.
Info: conf-yaml-loader: Including configuration file installed_rules.yaml.
Info: conf-yaml-loader: Configuration node 'rule-files' redefined.
Info: conf-yaml-loader: Including configuration file custom.yaml.

Describe alternatives you considered

N/A

Solution

Indentation in /usr/local/etc/suricata/suricata.yaml is wrong at lines 348 et seq:

      types:
        - alert:
             payload: no
             payload-buffer-size: 4kb
             payload-printable: yes
            metadata: yes
            tagged-packets: yes

must be corrected as follows (delete 1 space in front of each "payload"):

      types:
        - alert:
            payload: no
            payload-buffer-size: 4kb
            payload-printable: yes
            metadata: yes
            tagged-packets: yes
fichtner commented 3 months ago

Thanks for the report. It has been hotfixed.