diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-06-09 18:31:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-09 18:31:50 +0200 |
commit | 5294710b9280053f09ed01ddde6eca3e65fda060 (patch) | |
tree | 3ce9a3500b8af492c1d8f56f9c01447d62361a24 /data/templates/firewall/nftables.j2 | |
parent | ab4735480d62a3608ef21e9821c5d7865cb20a8a (diff) | |
parent | 3c5e1f7482507a6792e3e92498fb5f3cd8e9146d (diff) | |
download | vyos-1x-5294710b9280053f09ed01ddde6eca3e65fda060.tar.gz vyos-1x-5294710b9280053f09ed01ddde6eca3e65fda060.zip |
Merge pull request #1327 from sever-sever/T970
firewall: T970: Add firewall group domain-group
Diffstat (limited to 'data/templates/firewall/nftables.j2')
-rw-r--r-- | data/templates/firewall/nftables.j2 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/data/templates/firewall/nftables.j2 b/data/templates/firewall/nftables.j2 index fac3fad03..1f88ae40c 100644 --- a/data/templates/firewall/nftables.j2 +++ b/data/templates/firewall/nftables.j2 @@ -45,6 +45,14 @@ table ip filter { {{ conf | nft_default_rule(name_text) }} } {% endfor %} +{% if group is vyos_defined and group.domain_group is vyos_defined %} +{% for name, name_config in group.domain_group.items() %} + set {{ name }} { + type ipv4_addr + flags interval + } +{% endfor %} +{% endif %} {% for set_name in ns.sets %} set RECENT_{{ set_name }} { type ipv4_addr |