11 lines
227 B
Django/Jinja
11 lines
227 B
Django/Jinja
## This file is managed by Saltstack. (state: {{ sls }})
|
|
#!/usr/sbin/nft
|
|
|
|
table inet filter {
|
|
chain input {
|
|
tcp dport 22 accept
|
|
{%- for port in ALLOWED_PORTS %}
|
|
tcp dport {{ port }} accept
|
|
{%- endfor %}
|
|
}
|
|
}
|