Skip to contentSkip to conversation

Multiple calls of check functions

DISCUSSION Patrick McHardy 1 participant 1 message Apr 2, 2007 1 message not in the archive netfilter

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 8 lines · johnpeng
Quoted 3 lines

No, that has always been the case. Every rule you add results in an entire new ruleset from the kernels POV, so each rule is completely validated again.

This means that we need use some flag (in the targetinfo) in the check function to block the process of some code-flow if we want to the code-flow to be processed only one time?

Depends on what you want to do.

Quoted 7 lines
Quoted 3 lines

The SAME target is obsolete and SNAT should also uses the same IPs for the same source nowadays, so I'd suggest you simply use SNAT.

Because I want to use multiple ranges of SAME, however, multiple range has been removed from 2.6 ... any solution, thanks!!

Mhh .. maybe use multiple SNAT rules and balance using the statistic match.