I've been playing with Firewalld and I was wondering about how it does to order rules with the same priority.
According to the documentation, it says that there is no guarantee that rules with the same priority will be inserted in the wanted order.
The priority is used to order rules. Priority 0 means add rule on top of the chain, with a higher priority the rule will be added further down. Rules with the same priority are on the same level and the order of these rules is not fixed and may change. If you want to make sure that a rule will be added after another one, use a low priority for the first and a higher for the following.
From the official documentation
However, so far, every rule I added with --add-rule
has been added in the order ordered I wanted. In other words, adding the rules in the order wanted seems to keep them in the wanted order.
Therefore, is it wrong to assume that by adding rules in a specific order, they will be kept in that order? If not, is there a way to keep rules with the same priority in a wanted order? (I'm talking about direct rules)