Re: [Ebtables-devel] problem removing certain rules

Jonathan Thibault <[email protected]> Tue, 10 Jun 2008 18:04:20 -0400
Newsgroups gmane.linux.network.bridge.ebtables.user
Message-ID <[email protected]>
I think you have to delete rules by number.

For example:

ebtables -t nat -D PREROUTING 3

Jonathan

David P Olshefski wrote:
> 
> I can't seem to remove certain rules, unless I specifiy the rule number.
> 
> For example, I create a rule:
> 
> # ebtables -t nat -A PREROUTING  --protocol ARP -i vif1.0 -s ! 
> 00:16:3e:18:94:83 -j DROP
> 
> which works ok...but when I attempt to delete it:
> 
> # ebtables -t nat -D PREROUTING  --protocol ARP -i vif1.0 -s ! 
> 00:16:3e:18:94:83 -j DROP
> Sorry, rule does not exist.
> 
> yet the rule prints out when I do a "ebtables -t nat -L"
> 
> I am using ebtables v2.0.6-77, on SUSE running in Xen dom0.
> 
> 
> Dave O.
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Ebtables-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ebtables-devel


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php