---
title: NatRangeInformation type | Wartiva GraphQL API
description: NatRangeInformation represents the xt_nat_range iptables target information. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/nat-range-information.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `NatRangeInformation` type

NatRangeInformation represents the `xt_nat_range` iptables target information. It defines a range of IP addresses and ports for NAT operations, along with flags to control the translation behavior.

## Fields

| Field Name | Description |
|---|---|
| `flags` - [`[NfNatRangeFlag!]`](https://wartiva.com/api-docs/types/nf-nat-range-flag.html) | A bitmask of flags that modify the NAT range behavior. For example, `MAP_IPS` for IP mapping, `PROTO_RANDOM` for random port allocation. |
| `minIP` - [`IpAddress!`](https://wartiva.com/api-docs/types/ip-address.html) | The minimum IP address in the NAT range. |
| `maxIP` - [`IpAddress!`](https://wartiva.com/api-docs/types/ip-address.html) | The maximum IP address in the NAT range. |
| `minPort` - [`Int!`](https://wartiva.com/api-docs/types/int.html) | The minimum port in the NAT range, returned as an unsigned 16-bit integer. |
| `maxPort` - [`Int!`](https://wartiva.com/api-docs/types/int.html) | The maximum port in the NAT range, returned as an unsigned 16-bit integer. |
| `basePort` - [`Int`](https://wartiva.com/api-docs/types/int.html) | The base port for offset-based port allocation, returned as an unsigned 16-bit integer. Null if not specified. |

## Used by

- [`XtablesInfo`](https://wartiva.com/api-docs/types/xtables-info.html) union: Xtables information union type.

## Example

### Example

```json
{
  "flags": ["MAP_IPS"],
  "minIP": IpAddress,
  "maxIP": IpAddress,
  "minPort": 987,
  "maxPort": 123,
  "basePort": 123
}

```

---

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