host_firewall: packets from an uplink back out of an uplink drop without a fw-fwd-drop line, they are foreign-address backscatter

This commit is contained in:
2026-11-22 14:29:19 +00:00
parent 3e859f94dc
commit 0443e20cfa
+6
View File
@@ -542,6 +542,12 @@ table inet host {
{% endfor %}
{% if routed_v6 %}
meta nfproto ipv6 oifname { "{{ routed_v6 | join('", "') }}" } accept
{% endif %}
{% if uplink_ifaces and forward_policy == 'drop' %}
# From an uplink back out of an uplink: the datacenter gateway routes packets for foreign addresses of the subnet
# here (backscatter of spoofed traffic, scanner replies). They are not this host's traffic and not forwarded; no log
# line, so the fw-fwd-drop alert stays about forwarding that a network change broke.
iifname { "{{ uplink_ifaces | join('", "') }}" } oifname { "{{ uplink_ifaces | join('", "') }}" } counter drop
{% endif %}
limit rate {{ firewall.log.in_rate }} log prefix "fw-fwd-drop: "
counter