Skip to contentSkip to conversation

how to leave mangle table?

DISCUSSION [email protected] 1 participant 1 message Jun 13, 2002

lore
Share & tools
lore
#0 lore raw

hi:
i try to set some rules at mangle table.
if rule 1 match, rule2 seems still be checked. can i leave mangle table if rule 1 match?
eg: if rule 1 match, then rest of rules are not checked,
just like filter table..
do i need to create a new chain to do this?

example:
rule1: iptables -t mangle -A PREROUTING -s 10.1.1.2 -j MARK --set-mark 1
rule2: iptables -t mangle -A PREROUTING -s 10.1.1.0/24 -j MARK --set-mark 2

Regards,
tbsky