Represents an individual rule within an nftables chain. Rules define conditions and actions to be performed on network packets.
Fields
| Field Name | Description |
|---|---|
position - Uint64!
|
The numerical position of the rule within its chain. Rules are evaluated in ascending order of position. |
handle - Uint64!
|
A unique identifier for this rule, assigned by the kernel. |
expressions - [Expression!]
|
A list of expressions that define the conditions and actions of this rule. Expressions are evaluated from left to right. |
userData - Binary
|
Optional arbitrary user data associated with the rule. |
Used by
Chaintype: Represents an nftables chain, which is a named list of rules that are executed in order.
Example
Example
{
"position": "8589934592",
"handle": "8589934592",
"expressions": [Expression],
"userData": Binary
}