add variable support

This commit is contained in:
nd 2020-06-14 23:27:22 +02:00
parent 71c3dccba9
commit 2bc5194d1f
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
2 changed files with 5 additions and 0 deletions

View file

@ -15,3 +15,4 @@ firewall:
input: drop
output: accept
forward: drop
vars: {}

View file

@ -19,6 +19,10 @@
flush ruleset
{% for i in firewall.vars %}
define {{ i }} = { {{ firewall.vars[i]|join(', ') }} }
{% endfor %}
table inet filter {
chain input {
type filter hook input priority 0;