---
title: RedirExpression type | Wartiva GraphQL API
description: RedirExpression represents an nftables expression for redirecting packets. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/redir-expression.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `RedirExpression` type

RedirExpression represents an nftables expression for redirecting packets. This is a specialized form of Destination NAT (DNAT) where the destination address is changed to the local machine's address, often used for transparent proxies.

## Fields

| Field Name | Description |
|---|---|
| `registerProtoMin` - [`NftRegister!`](https://wartiva.com/api-docs/types/nft-register.html) | The register holding the minimum protocol port for the redirection range. |
| `registerProtoMax` - [`NftRegister!`](https://wartiva.com/api-docs/types/nft-register.html) | The register holding the maximum protocol port for the redirection range. If only one port is specified, this might be the same as 'registerProtoMin' or not used. |
| `flags` - [`[NftNatFlag!]`](https://wartiva.com/api-docs/types/nft-nat-flag.html) | Flags that modify the behavior of the redirection operation, such as randomization or persistence. |

## Used by

- [`ChainExpression`](https://wartiva.com/api-docs/types/chain-expression.html) union: A union of all possible nftables chain expression types.

## Example

### Example

```json
{
  "registerProtoMin": "VERDICT",
  "registerProtoMax": "VERDICT",
  "flags": ["PERSISTENT"]
}

```

---

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