We don't need the final drop rule anymore

Once we switch the FirewallEngine to nftables, we won't need the final
"drop" rule, since it the INPUT chain policy is "drop".

Depends-On: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/852808
Change-Id: I91f2a26ee8197764804af07c5e93f01e0564137f
This commit is contained in:
Cédric Jeanneret 2022-08-16 14:15:30 +02:00
parent 5565581993
commit 859016ae58
3 changed files with 7 additions and 9 deletions

View File

@ -71,7 +71,7 @@ tripleo_firewall_default_rules:
state: state:
- NEW - NEW
destination: 'fe80::/64' destination: 'fe80::/64'
'998 log all': '999 log all':
proto: all proto: all
jump: LOG jump: LOG
limit: 20/min limit: 20/min
@ -80,6 +80,3 @@ tripleo_firewall_default_rules:
nft_flags: 'all' nft_flags: 'all'
nft_prefix: 'DROPPING: ' nft_prefix: 'DROPPING: '
state: [] state: []
'999 drop all':
proto: all
action: drop

View File

@ -20,3 +20,8 @@
roles: roles:
- role: "tripleo_firewall" - role: "tripleo_firewall"
tripleo_firewall_engine: 'nftables' tripleo_firewall_engine: 'nftables'
tasks:
- name: Clean everything nftables related
import_role:
name: tripleo_nftables
tasks_from: cleanup.yaml

View File

@ -58,8 +58,4 @@ tripleo_nftables_rules:
flags: 'all' flags: 'all'
prefix: 'DROPPING: ' prefix: 'DROPPING: '
state: [] state: []
rule_name: 998 log all rule_name: 999 log all
- rule:
action: drop
proto: all
rule_name: 999 drop all