Endpoint configuration · GraphQL enum

NftNatFlag enum

NftNatFlag specifies various behavioral flags for NAT operations.

Values

Enum Value Description

PERSISTENT

Makes NAT mappings persistent across connections, re-using existing mappings.

RANDOM

Randomly choose an address/port from the range.

PROTO_RANDOM

Randomly choose a protocol port.

PREFIX

Apply prefix NAT (used with IPv6).

PROTO_SPECIFIED

Only translate to the specified protocol ports.

FULLY_RANDOM

Use fully random address/port selection.

TO_PORTS

To Ports.

Used by

  • MasqExpression type: MasqExpression represents an nftables expression for masquerading, a form of Source NAT (SNAT).
  • NatExpression type: NatExpression represents an nftables expression for performing Network Address Translation (NAT).
  • RedirExpression type: RedirExpression represents an nftables expression for redirecting packets.

Example

Example

"PERSISTENT"