mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-24 09:53:12 +01:00
10 lines
614 B
Django/Jinja
10 lines
614 B
Django/Jinja
{% import_yaml 'firewall/soc/defaults_soc_firewall.yaml' as DEFAULT_SOC_FIREWALL %}
|
|
{% set PILLAR_SOC_FIREWALL_GROUPS = salt['pillar.get']('firewall:custom_groups:groups', {}) %}
|
|
{% set SOC_FIREWALL = DEFAULT_SOC_FIREWALL %}
|
|
|
|
{% for group in PILLAR_SOC_FIREWALL_GROUPS %}
|
|
{% set description = 'List of IP addresses or CIDR blocks to allow for ' ~ group ~ ' hostgroup.' %}
|
|
{% set title = group[0]|upper ~ group[1:] %}
|
|
{% do SOC_FIREWALL.firewall.hostgroups.update({group:{'description': description, 'file': 'True', 'global': 'True', 'title': title, 'helpLink': 'firewall.html#host-groups'}}) %}
|
|
{% endfor %}
|