alpine: don’t hardcode nftables input rule for SSH

Instead configure it in NetBox like all other services.
This commit is contained in:
Timotej Lazar 2024-08-14 12:46:23 +02:00
parent 38ff061f81
commit 3261bc7f98

View file

@ -1,7 +1,5 @@
table inet filter { table inet filter {
chain input { chain input {
tcp dport ssh accept
{% for service in services %} {% for service in services %}
{% set prefixes = service | allowed_prefixes %} {% set prefixes = service | allowed_prefixes %}
{% set ports = service.ports | compact_numlist %} {% set ports = service.ports | compact_numlist %}