mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
services: don't set bootup routines when disabled; closes #1000
This commit is contained in:
parent
d4d27c1489
commit
bcb39d0c07
@ -2,6 +2,7 @@
|
||||
{% from 'OPNsense/Macros/interface.macro' import physical_interface %}
|
||||
{% if helpers.exists('OPNsense.IDS.general') and OPNsense.IDS.general.enabled|default("0") == "1" %}
|
||||
suricata_enable="YES"
|
||||
suricata_opnsense_bootup_run="/usr/local/opnsense/scripts/suricata/setup.sh"
|
||||
|
||||
{% if OPNsense.IDS.general.ips|default("0") == "1" %}
|
||||
# IPS mode, switch to netmap
|
||||
@ -31,5 +32,3 @@ suricata_flags="-D {%
|
||||
{% else %}
|
||||
suricata_enable="NO"
|
||||
{% endif %}
|
||||
|
||||
suricata_opnsense_bootup_run="/usr/local/opnsense/scripts/suricata/setup.sh"
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
squid_enable={% if helpers.exists('OPNsense.proxy.general.enabled') and OPNsense.proxy.general.enabled|default("0") == "1" %}YES{% else %}NO{% endif %}
|
||||
|
||||
{% if helpers.exists('OPNsense.proxy.general.enabled') and OPNsense.proxy.general.enabled|default("0") == "1" %}
|
||||
squid_enable=YES
|
||||
squid_opnsense_bootup_run="/usr/local/opnsense/scripts/proxy/setup.sh"
|
||||
{% else %}
|
||||
squid_enable=NO
|
||||
{% endif %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user