---
title: NatIPv4Range type | Wartiva GraphQL API
description: NatIPv4Range defines a single IPv4 address and port range, along with behavioral flags, to be used within an IPv4 NAT target.
url: https://wartiva.com/api-docs/types/nat-ipv4-range.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `NatIPv4Range` type

NatIPv4Range defines a single IPv4 address and port range, along with behavioral flags, to be used within an IPv4 NAT target.

## 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 this specific entry. |
| `minIP` - [`IpAddress!`](https://wartiva.com/api-docs/types/ip-address.html) | The minimum IPv4 address in this specific NAT range. |
| `maxIP` - [`IpAddress!`](https://wartiva.com/api-docs/types/ip-address.html) | The maximum IPv4 address in this specific NAT range. |
| `minPort` - [`Int!`](https://wartiva.com/api-docs/types/int.html) | The minimum port in this specific NAT range, returned as an unsigned 16-bit integer. |
| `maxPort` - [`Int!`](https://wartiva.com/api-docs/types/int.html) | The maximum port in this specific NAT range, returned as an unsigned 16-bit integer. |

## Used by

- [`NatIpv4RangeInformation`](https://wartiva.com/api-docs/types/nat-ipv4-range-information.html) type: NatIpv4RangeInformation represents the xt_nat_ipv4_range iptables target information, which allows specifying multiple NAT ranges for IPv4 packets.

## Example

### Example

```json
{
  "flags": "MAP_IPS",
  "minIP": IpAddress,
  "maxIP": IpAddress,
  "minPort": 123,
  "maxPort": 123
}

```

---

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