<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Does not seem to be a way to use a named quota to make decisions in a rule"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1315">1315</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Does not seem to be a way to use a named quota to make decisions in a rule
</td>
</tr>
<tr>
<th>Product</th>
<td>nftables
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86_64
</td>
</tr>
<tr>
<th>OS</th>
<td>Debian GNU/Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P5
</td>
</tr>
<tr>
<th>Component</th>
<td>nft
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pablo@netfilter.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dlakelan@street-artists.org
</td>
</tr></table>
<p>
<div>
<pre>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
<a class="bz_bug_link
bz_status_NEW "
title="NEW - nft reset quotas does not reset anonymous quotas"
href="show_bug.cgi?id=1314">https://bugzilla.netfilter.org/show_bug.cgi?id=1314</a> 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).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>