From 8b4b5bbb864ecb3c0bf22c94663d08e545aee603 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Wed, 18 May 2016 12:18:52 +0200 Subject: [PATCH] (IDS) template, check for existence before using value --- 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 870f71b36..56a1519b7 100644 --- a/src/opnsense/service/templates/OPNsense/IDS/suricata.yaml +++ b/src/opnsense/service/templates/OPNsense/IDS/suricata.yaml @@ -313,7 +313,7 @@ netmap: - interface: default threads: auto copy-mode: ips - disable-promisc: {% if OPNsense.IDS.general.promisc|default('0') == '0' %}yes{% else %}no{% endif %} # promiscuous mode + disable-promisc: {% if helpers.exists('OPNsense.IDS.general.promisc') and OPNsense.IDS.general.promisc|default('0') == '0' %}yes{% else %}no{% endif %} # promiscuous mode checksum-checks: auto {% if helpers.exists('OPNsense.IDS.general.interfaces') %} @@ -745,7 +745,7 @@ logging: pcap: - interface: default - promisc: {% if OPNsense.IDS.general.promisc|default('0') == '1' %}yes{% else %}no{% endif %} # promiscuous mode + promisc: {% if helpers.exists('OPNsense.IDS.general.promisc') and OPNsense.IDS.general.promisc|default('0') == '1' %}yes{% else %}no{% endif %} # promiscuous mode pcap-file: # Possible values are: