Endpoint configuration · GraphQL type

NatExpression type

NatExpression represents an nftables expression for performing Network Address Translation (NAT). It allows modifying source or destination IP addresses and ports.

Fields

Field Name Description
type - NATType! The type of NAT operation to perform.
family - NatFamily! The network protocol family the NAT operation applies to.
regAddrMin - NftRegister! The register holding the minimum IP address for the NAT translation range.
regAddrMax - NftRegister! The register holding the maximum IP address for the NAT translation range. If only one address is specified, regAddrMax might be the same as regAddrMin or not used.
regProtoMin - NftRegister! The register holding the minimum protocol port for the NAT translation range.
regProtoMax - NftRegister! The register holding the maximum protocol port for the NAT translation range. If only one port is specified, regProtoMax might be the same as regProtoMin or not used.
flags - [NftNatFlag!] Nat Flags

Used by

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

Example

Example

{
  "type": "DNAT",
  "family": "UNSPECIFIED",
  "regAddrMin": "VERDICT",
  "regAddrMax": "VERDICT",
  "regProtoMin": "VERDICT",
  "regProtoMax": "VERDICT",
  "flags": ["PERSISTENT"]
}