Endpoint configuration · GraphQL type

ObjRefExpression type

ObjRefExpression represents an nftables expression for referencing other objects (like sets, maps, or other named entities) within the nftables configuration. This allows for modularity and reusing common configurations.

Fields

Field Name Description
type - ObjRefType! The type of object reference being made.
name - String! The name of the object being referenced. This is used for IMM_NAME references.
sreg - NftRegister! The source register holding the key or data to be used for the object reference. This is used for SET_SREG references.
setName - String! The name of the set to which the reference applies. This is used for SET_NAME references.
setId - Uint32! The internal numeric ID of the set to which the reference applies, unique within the current transaction. This is used for SET_ID references.

Used by

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

Example

Example

{
  "type": "IMM_TYPE",
  "name": "abc123",
  "sreg": "VERDICT",
  "setName": "abc123",
  "setId": "1073741824"
}