iptables -S | \ sed '/-[jg] myChain'/ s/^-A/-D/;t;d' | \ xargs -L1 iptables В Срд, 06/07/2011 в 16:46 +0100, Jonathan Tripathy пишет: > Hi Everyone, > > Is there some method where I can delete specific rules based on only > some known rule elements? > > For example, let's say I wanted to delete all rules with a target of > "myChain" > > Thanks > -- > To unsubscribe from this list: send the line "unsubscribe netfilter" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html