Skip to contentSkip to conversation

Rule Ordering

DISCUSSION Paul Caritj 2 participants 2 messages Oct 6, 2003

lore
Share & tools
lore
#0 lore raw

Gents,

I know the answer to this question is already well documented, but I need to ask anyway because iptables never behaves the way I expect it to in this regard; How, exactly, does rule ordering work for rules added through the iptables userspace tool?

For example, say I have a bunch of rules that will be coming and going on a very frequent basis, but I have one that I need to keep last in the evaluation sequence. A that I would just add the rule that needs to stay last with "-A" and all the others with "-I"?

I like to give you guys an easy one once in a while ;)

-Paul

#1 lore raw

On Mon, Oct 06, 2003 at 03:01:58AM -0400, Paul Caritj spoke thusly:

Quoted 4 lines

For example, say I have a bunch of rules that will be coming and going on a very frequent basis, but I have one that I need to keep last in the evaluation sequence. A that I would just add the rule that needs to stay last with "-A" and all the others with "-I"?

Yes.