---
title: NftNatFlag enum | Wartiva GraphQL API
description: NftNatFlag specifies various behavioral flags for NAT operations. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/nft-nat-flag.html
updated: 2026-10-07
---

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`](https://wartiva.com/api-docs/types/masq-expression.html) type: MasqExpression represents an nftables expression for masquerading, a form of Source NAT (SNAT).
- [`NatExpression`](https://wartiva.com/api-docs/types/nat-expression.html) type: NatExpression represents an nftables expression for performing Network Address Translation (NAT).
- [`RedirExpression`](https://wartiva.com/api-docs/types/redir-expression.html) type: RedirExpression represents an nftables expression for redirecting packets.

## Example

### Example

```json
"PERSISTENT"

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
