[Bug 1722] New: Rule delete with open interval does not work

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Fri Nov 10 12:22:54 CET 2023


https://bugzilla.netfilter.org/show_bug.cgi?id=1722

            Bug ID: 1722
           Summary: Rule delete with open interval does not work
           Product: ebtables
           Version: unspecified
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: ebtables-nft
          Assignee: pablo at netfilter.org
          Reporter: phil at nwl.cc

One of the many ebtables oddities:

| ebtables -D FORWARD 3:

is supposed to delete the third and all following rules in FORWARD chain.

delete_entry() in xtables-eb.c is not aware of this, though. In practice, the
code will only add a single rule delete command to the list, namely for the
start interval one.

Simple reproducer:

| ebtables -A FORWARD -j RETURN
| ebtables -A FORWARD -j RETURN
| ebtables -A FORWARD -j RETURN
| ebtables -D FORWARD 2:
| [[ $(ebtables -L FORWARD | grep -c RETURN) -eq 1 ]] || echo "fail"

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20231110/de556d54/attachment.html>


More information about the netfilter-buglog mailing list