[Bug 1315] New: Does not seem to be a way to use a named quota to make decisions in a rule

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Mon Dec 31 22:52:01 CET 2018


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

            Bug ID: 1315
           Summary: Does not seem to be a way to use a named quota to make
                    decisions in a rule
           Product: nftables
           Version: unspecified
          Hardware: x86_64
                OS: Debian GNU/Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: nft
          Assignee: pablo at netfilter.org
          Reporter: dlakelan at street-artists.org

Suppose I want to use a named quota to make decisions about what to do with
packets:

table inet foo {
  quota myquota {1000 mbytes used 0 bytes}


  chain foochain{
    meta mark 0x123 quota named myquota comment "count packets with a certain
mark"
    meta mark 0x123 quota myquota over 1000 mbytes drop
  }
}


The attempt to use the named quota doesn't work. I'm not sure if this is a
parser bug or a feature that doesn't work or what, but if I use:

meta mark 0x123 quota over 1000 mbytes drop 

it will create an anonymous quota and I can drop the packets (but see
https://bugzilla.netfilter.org/show_bug.cgi?id=1314 for a bug related to
anonymous quotas), but I can't seem to invoke the use of the named quota using
any syntax. It seems like using a named quota should be possible here, and it's
the only way to have a single quota influenced by multiple rules.

If there is a syntax that works it is not documented (and if it can be
described here I'm happy to edit the wiki and document it).

-- 
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/20181231/2e5aa119/attachment.html>


More information about the netfilter-buglog mailing list