Endpoint configuration · GraphQL type

TargetExpression type

TargetExpression represents an nftables expression that leverages existing kernel target modules (often from iptables/xtables compatibility). Targets define an action to be taken on a packet, potentially modifying it or controlling its flow, beyond basic verdicts like accept or drop.

Fields

Field Name Description
name - String! The name of the xtables target module to invoke (e.g., "LOG", "MASQUERADE", "REDIRECT").
rev - Uint32! The revision number of the xtables target module. Different revisions might have different parameter structures.
xtablesInfo - XtablesInformation The specific configuration parameters for the xtables target module, whose structure depends on the 'name' and 'rev' fields.

Used by

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

Example

Example

{
  "name": "abc123",
  "rev": "1073741824",
  "xtablesInfo": XtablesInformation
}