host_firewall: forward_policy log|drop admits replies, DNAT, trusted and pod interfaces, forward_ifaces for routed-only links

This commit is contained in:
2026-11-11 21:48:43 +00:00
parent c2a2a1ea0e
commit 08078324c9
3 changed files with 37 additions and 2 deletions
+5
View File
@@ -10,6 +10,11 @@
fail_msg: "wt0 address {{ ansible_wt0.ipv4.address }} is missing from firewall.cluster.v4"
when: firewall.cluster.v4 | default({}, true) | length > 0 and ansible_wt0.ipv4.address is defined
- name: Check the forward policy
ansible.builtin.assert:
that: firewall.forward_policy | default('accept', true) in ['accept', 'log', 'drop']
fail_msg: "firewall.forward_policy is {{ firewall.forward_policy }}, expected accept, log or drop"
- name: Remove the include block of the old nftables role
ansible.builtin.blockinfile:
path: /etc/nftables.conf