Quota represents an nftables expression for enforcing bandwidth or connection quotas. It allows limiting the total amount of bytes or connections over a period.
Fields
| Field Name | Description |
|---|---|
bytes - Uint64!
|
The total quota limit in bytes. |
consumed - Uint64!
|
The number of bytes currently consumed against the quota. |
over - Boolean!
|
If true, the quota is checked in "over" mode, meaning the rule matches when the consumed bytes exceed the quota. If false, it matches when the consumed bytes are below the quota. |
Used by
ChainExpressionunion: A union of all possible nftables chain expression types.
Example
Example
{
"bytes": "8589934592",
"consumed": "8589934592",
"over": true
}