Re: Help deleting a rule

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

 



On Mon, 16 Nov 2009 13:39:38 -0800
Cameron Smith <velvetpixel@xxxxxxxxx> wrote:

> Hello,
> 
> If I run:
> iptables -L -n -v |grep xx.xx.xx.xx
> 
> I get:
> 112  6272 DROP       all  --  eth+   *       xx.xx.xx.xx
> 0.0.0.0/0
> 
> I want to delete this specific rule.
> From what is printed above how do I know what line this is to use
> this command?
> 
> iptables -D INPUT x
> 
> Where x is the line number?

Or you can -D based on the specification of the rule

 iptables -D INPUT -o eth+ -s xx.xx.xx.xx -j DROP

-- 
Paul Evans <paul@xxxxxxxxxxxxx>
Tel: +44 (0) 845 666 7778
Fax: +44 (0) 870 163 4694
http://www.mxtelecom.com

Attachment: signature.asc
Description: PGP signature


[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