alpine: don’t assume all services are TCP
This commit is contained in:
parent
b20e9cccff
commit
a3dd4eba65
|
@ -12,10 +12,10 @@ table inet filter {
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if prefixes4 or prefixes6 %}
|
{% if prefixes4 or prefixes6 %}
|
||||||
{% if prefixes4 %}
|
{% if prefixes4 %}
|
||||||
ip saddr { {{ prefixes4 | join(', ') }} } tcp dport { {{ ports }} } accept
|
ip saddr { {{ prefixes4 | join(', ') }} } {{ service.protocol.value }} dport { {{ ports }} } accept
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if prefixes6 %}
|
{% if prefixes6 %}
|
||||||
ip6 saddr { {{ prefixes6 | join(', ') }} } tcp dport { {{ ports }} } accept
|
ip6 saddr { {{ prefixes6 | join(', ') }} } {{ service.protocol.value }} dport { {{ ports }} } accept
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
tcp dport { {{ ports }} } accept
|
tcp dport { {{ ports }} } accept
|
||||||
|
|
Loading…
Reference in a new issue