Re: deleting specific rule ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux