Endpoint configuration · GraphQL type

RejectExpression type

RejectExpression represents an nftables expression for rejecting a packet. Instead of simply dropping a packet silently, 'reject' sends an error message back to the sender, such as an ICMP error or a TCP RST.

Fields

Field Name Description
type - RejectType! The type of rejection message to send (e.g., ICMP, TCP_RST).
code - RejectCode! The specific error code to include in the rejection message.

Used by

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

Example

Example

{"type": "ICMP", "code": "ROUTE_UNREACHABLE"}