iptables -L -n --line0numbers will list the rule numbers iptables -I CHAINNAME rulenumber_to_insert REST OF RULE ----- Original Message ----- From: "Filip Sneppe" <filip.sneppe@xxxxxxxxx> To: "Patrick Ahler" <patrick@xxxxxxxxx> Cc: "netfilter EMAIL" <netfilter@xxxxxxxxxxxxxxxxxxx> Sent: Monday, May 12, 2003 8:49 AM Subject: Re: top level rules > On Mon, 2003-05-12 at 14:25, Patrick Ahler wrote: > > Is there any way to insert a new rule at the top of a table... > > > > For instance, I have rules... > > > > RULE 1 > > RULE 2 > > RULE 3 > > RULE 4 > > > > in order... but what if I want to place a rule before rule 1? Is that > > possible? > > Yes, just use the -I (insert) option of iptablesinstead of -A (append). > > Regards, > Filip > > > >