host_firewall: admin.tcp ports answer the admin set alone, never the geo sets
This commit is contained in:
@@ -13,7 +13,9 @@ firewall:
|
|||||||
vpn:
|
vpn:
|
||||||
tcp: {}
|
tcp: {}
|
||||||
udp: {}
|
udp: {}
|
||||||
|
# tcp: ports accepted from the admin set alone, never from the geo sets.
|
||||||
admin:
|
admin:
|
||||||
|
tcp: {}
|
||||||
v4: {}
|
v4: {}
|
||||||
v6: {}
|
v6: {}
|
||||||
# Metrics scrapers: on wt0 only these source addresses reach the listed tcp
|
# Metrics scrapers: on wt0 only these source addresses reach the listed tcp
|
||||||
|
|||||||
@@ -113,8 +113,18 @@ table inet host {
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if list(firewall.geo.tcp) %}
|
{% if list(firewall.geo.tcp) %}
|
||||||
tcp dport { {{ list(firewall.geo.tcp) }} } jump geo
|
tcp dport { {{ list(firewall.geo.tcp) }} } jump geo
|
||||||
|
{% endif %}
|
||||||
|
{% if list(firewall.admin.tcp) %}
|
||||||
|
tcp dport { {{ list(firewall.admin.tcp) }} } jump admin
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
{% if list(firewall.admin.tcp) %}
|
||||||
|
|
||||||
|
chain admin {
|
||||||
|
ip saddr @admin_v4 accept
|
||||||
|
ip6 saddr @admin_v6 accept
|
||||||
|
}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
chain geo {
|
chain geo {
|
||||||
{% if guest_ifaces %}
|
{% if guest_ifaces %}
|
||||||
|
|||||||
Reference in New Issue
Block a user