Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Alistair Tonner <Alistair@nerdnet.ca>
To: netfilter@lists.netfilter.org
Subject: Re: deleting specific rule ...
Date: Fri, 11 Jun 2004 18:15:35 -0400	[thread overview]
Message-ID: <200406111815.35432.Alistair@nerdnet.ca> (raw)
In-Reply-To: <001001c44ff0$8ec113a0$0300000a@serverxx>

On June 11, 2004 04:13 pm, Syed Faisal Gillani wrote:
> here is the list of rule in my iptables
>
> ---------------------------------------------------------------------------
>-----
>
> Chain INPUT (policy ACCEPT)
> target     prot opt source               destination
> DROP       all  --  anywhere             anywhere           MAC
> 00:A0:C9:A0:B8:A5 DROP       all  --  anywhere             anywhere        
>   MAC 00:10:A4:9F:B5:27 DROP       all  --  anywhere             anywhere  
>         MAC 00:C0:26:78:04:D2
>
> Chain FORWARD (policy ACCEPT)
> target     prot opt source               destination
>
> Chain OUTPUT (policy ACCEPT)
> target     prot opt source               destination
>
>
>
> ---------------------------------------------------------------------------
>-----
>
> now i want to delete this rule ..
>
> DROP       all  --  anywhere             anywhere           MAC
> 00:A0:C9:A0:B8:A5
>
> wat will be the command in doing so ?
>

	Hi -- relist the rules 

	iptables -L -n --line-numbers

	will number each line.

	iptables -D INPUT x
	
	
	Alistair Tonner

> thanks
> Faisal


  reply	other threads:[~2004-06-11 22:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-11 16:00 spyware Luis GUSTAVO
2004-06-11 20:13 ` deleting specific rule Syed Faisal Gillani
2004-06-11 22:15   ` Alistair Tonner [this message]
2004-06-14 15:04     ` Damjan
2004-06-14 15:25       ` Antony Stone
2004-06-14 15:58         ` Damjan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200406111815.35432.Alistair@nerdnet.ca \
    --to=alistair@nerdnet.ca \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox