Endpoint configuration · GraphQL type

MetaExpression type

MetaExpression represents an nftables expression for accessing meta-data about the packet, the network device, or the system context.

Fields

Field Name Description
key - NftMetaKey! The specific meta-data key to access (e.g., packet length, interface name, connection mark).
sourceRegister - Boolean! If true, the 'register' field is used as a source register for the meta-data operation. If false, 'register' is used as a destination register for storing the meta-data.
register - NftRegister! The register used to either store the retrieved meta-data (if 'sourceRegister' is false) or to provide input for a meta-data operation (if 'sourceRegister' is true).

Used by

  • ChainExpression union: A union of all possible nftables chain expression types.

Example

Example

{"key": "LEN", "sourceRegister": true, "register": "VERDICT"}