* patch for rule insert
@ 2006-07-04 3:36 varun
2006-07-04 5:31 ` Cedric Blancher
2006-07-04 5:38 ` Patrick Schaaf
0 siblings, 2 replies; 3+ messages in thread
From: varun @ 2006-07-04 3:36 UTC (permalink / raw)
To: netfilter-devel
Hi all,
I would loke to know if any of you have a patch for
inserting rule anywhere in the middle of the chain.
That is with -A we append the new rule and -I we add the
new rule to the top of the chain. So i wold like to insert it in middle
of the chain. Is it possible? Does anyone have a patch for the same?
Varun
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: patch for rule insert
2006-07-04 3:36 patch for rule insert varun
@ 2006-07-04 5:31 ` Cedric Blancher
2006-07-04 5:38 ` Patrick Schaaf
1 sibling, 0 replies; 3+ messages in thread
From: Cedric Blancher @ 2006-07-04 5:31 UTC (permalink / raw)
To: varun; +Cc: netfilter-devel
Le mardi 04 juillet 2006 à 09:06 +0530, varun a écrit :
> That is with -A we append the new rule and -I we add the
> new rule to the top of the chain. So i wold like to insert it in middle
> of the chain. Is it possible? Does anyone have a patch for the same?
man ipchains
[...]
SYNOPSIS
[...]
ipchains -[RI] chain rulenum rule-specification [options]
[...]
-I, --insert
Insert one or more rules in the selected chain as the
given rule number. So, if the rule number is 1, the
rule or rules are inserted at the head of the chain.
Seems it's been there from the beginning :)
iptables -I INPUT 4 ...
Will insert rule at 4th position.
--
http://sid.rstack.org/
PGP KeyID: 157E98EE FingerPrint: FA62226DA9E72FA8AECAA240008B480E157E98EE
>> Hi! I'm your friendly neighbourhood signature virus.
>> Copy me to your signature file and help me spread!
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: patch for rule insert
2006-07-04 3:36 patch for rule insert varun
2006-07-04 5:31 ` Cedric Blancher
@ 2006-07-04 5:38 ` Patrick Schaaf
1 sibling, 0 replies; 3+ messages in thread
From: Patrick Schaaf @ 2006-07-04 5:38 UTC (permalink / raw)
To: varun; +Cc: netfilter-devel
> I would loke to know if any of you have a patch for
> inserting rule anywhere in the middle of the chain.
> That is with -A we append the new rule and -I we add the
> new rule to the top of the chain. So i wold like to insert it in middle
> of the chain. Is it possible?
Look at the manpage / iptables --help output. Notice that the
options -I, -R, and -D take a 'rulenum' argument (optional for -I).
Also note that '-L --line-numbers' gives you such rulenums, if you
don't want to count the rules by yourself.
Patrick
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-07-04 5:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-04 3:36 patch for rule insert varun
2006-07-04 5:31 ` Cedric Blancher
2006-07-04 5:38 ` Patrick Schaaf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.