11 lines
203 B
Django/Jinja
11 lines
203 B
Django/Jinja
## This file is managed by Ansible
|
|
#!/usr/sbin/nft
|
|
|
|
table inet filter {
|
|
chain input {
|
|
tcp dport 22 accept
|
|
{% for port in ALLOWED_PORTS %}
|
|
tcp dport {{ port }} accept
|
|
{% endfor %}
|
|
}
|
|
}
|