add variable support
This commit is contained in:
parent
71c3dccba9
commit
2bc5194d1f
2 changed files with 5 additions and 0 deletions
|
|
@ -15,3 +15,4 @@ firewall:
|
||||||
input: drop
|
input: drop
|
||||||
output: accept
|
output: accept
|
||||||
forward: drop
|
forward: drop
|
||||||
|
vars: {}
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,10 @@
|
||||||
|
|
||||||
flush ruleset
|
flush ruleset
|
||||||
|
|
||||||
|
{% for i in firewall.vars %}
|
||||||
|
define {{ i }} = { {{ firewall.vars[i]|join(', ') }} }
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
table inet filter {
|
table inet filter {
|
||||||
chain input {
|
chain input {
|
||||||
type filter hook input priority 0;
|
type filter hook input priority 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue