From 407dc8ae92e48370646e71cbc0764406341d05c3 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 10 Oct 2016 19:31:25 +0200 Subject: [PATCH] suricata: fix previous; closes #1212 --- src/opnsense/service/templates/OPNsense/IDS/suricata.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opnsense/service/templates/OPNsense/IDS/suricata.yaml b/src/opnsense/service/templates/OPNsense/IDS/suricata.yaml index 4d1a06b61..66f251b88 100644 --- a/src/opnsense/service/templates/OPNsense/IDS/suricata.yaml +++ b/src/opnsense/service/templates/OPNsense/IDS/suricata.yaml @@ -226,7 +226,7 @@ outputs: # a line based alerts log similar to fast.log into syslog - syslog: - enabled: {% if OPNsense.IDS.general.syslog|default('0') == '0' %}no{% else %}yes{% endif %} + enabled: {% if helpers.exists('OPNsense.IDS.general.syslog') and OPNsense.IDS.general.syslog|default('0') == '0' %}no{% else %}yes{% endif %} # reported identity to syslog. If ommited the program name (usually # suricata) will be used. #identity: "suricata" @@ -740,7 +740,7 @@ logging: enabled: yes filename: /var/log/suricata.log - syslog: - enabled: {% if OPNsense.IDS.general.syslog|default('0') == '0' %}no{% else %}yes{% endif %} + enabled: {% if helpers.exists('OPNsense.IDS.general.syslog') and OPNsense.IDS.general.syslog|default('0') == '0' %}no{% else %}yes{% endif %} facility: local5 format: "[%i] <%d> -- "