host_firewall: admin.tcp ports answer the admin set alone, never the geo sets

This commit is contained in:
2026-10-24 08:40:31 +00:00
parent 81e7a9dc6a
commit 41dbce3641
2 changed files with 12 additions and 0 deletions
+2
View File
@@ -13,7 +13,9 @@ firewall:
vpn:
tcp: {}
udp: {}
# tcp: ports accepted from the admin set alone, never from the geo sets.
admin:
tcp: {}
v4: {}
v6: {}
# Metrics scrapers: on wt0 only these source addresses reach the listed tcp
+10
View File
@@ -113,8 +113,18 @@ table inet host {
{% endif %}
{% if list(firewall.geo.tcp) %}
tcp dport { {{ list(firewall.geo.tcp) }} } jump geo
{% endif %}
{% if list(firewall.admin.tcp) %}
tcp dport { {{ list(firewall.admin.tcp) }} } jump admin
{% endif %}
}
{% if list(firewall.admin.tcp) %}
chain admin {
ip saddr @admin_v4 accept
ip6 saddr @admin_v6 accept
}
{% endif %}
chain geo {
{% if guest_ifaces %}