host_firewall: forward_policy log|drop admits replies, DNAT, trusted and pod interfaces, forward_ifaces for routed-only links
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user