# NAT64

# NAT64

This module includes configuration variables for NAT64.

## Summary

| ### Macros ||
|---|---|
| `https://openthread.io/reference/config/group/config-nat64#group__config-nat64_1ga289f7f2106cddfeedc8741031c7e3058 0` | Define to 1 to enable NAT64 support in Border Routing Manager. |
| `https://openthread.io/reference/config/group/config-nat64#group__config-nat64_1gaeba7982fc001ab60143355af3b0dc3be OPENTHREAD_CONFIG_NAT64_IDLE_TIMEOUT_SECONDS` | Specifies timeout in seconds before removing an inactive ICMP address mapping. |
| `https://openthread.io/reference/config/group/config-nat64#group__config-nat64_1gaa27bbc891fa32240ddd31962e2071250 7200` | Specifies timeout in seconds before removing an inactive address mapping. |
| `https://openthread.io/reference/config/group/config-nat64#group__config-nat64_1ga2c80df7ec2c0edfde412be4ceac9ad3e 254` | Specifies maximum number of active mappings for NAT64. |
| `https://openthread.io/reference/config/group/config-nat64#group__config-nat64_1ga6a04e0a1435740872a1c12357afd10d3 0` | Define to 1 to enable NAT64 support for port translation. |
| `https://openthread.io/reference/config/group/config-nat64#group__config-nat64_1ga083b374a6373d6240aad9792f4510ae2 0` | Define to 1 to enable the internal NAT64 translator. |

## Macros

### OPENTHREAD_CONFIG_NAT64_BORDER_ROUTING_ENABLE

```
 OPENTHREAD_CONFIG_NAT64_BORDER_ROUTING_ENABLE 0
```
Define to 1 to enable NAT64 support in Border Routing Manager.

### OPENTHREAD_CONFIG_NAT64_ICMP_IDLE_TIMEOUT_SECONDS

```
 OPENTHREAD_CONFIG_NAT64_ICMP_IDLE_TIMEOUT_SECONDS OPENTHREAD_CONFIG_NAT64_IDLE_TIMEOUT_SECONDS
```
Specifies timeout in seconds before removing an inactive ICMP address mapping.

### OPENTHREAD_CONFIG_NAT64_IDLE_TIMEOUT_SECONDS

```
 OPENTHREAD_CONFIG_NAT64_IDLE_TIMEOUT_SECONDS 7200
```
Specifies timeout in seconds before removing an inactive address mapping.

### OPENTHREAD_CONFIG_NAT64_MAX_MAPPINGS

```
 OPENTHREAD_CONFIG_NAT64_MAX_MAPPINGS 254
```
Specifies maximum number of active mappings for NAT64.

### OPENTHREAD_CONFIG_NAT64_PORT_TRANSLATION_ENABLE

```
 OPENTHREAD_CONFIG_NAT64_PORT_TRANSLATION_ENABLE 0
```
Define to 1 to enable NAT64 support for port translation.

This allows the NAT64 translator to operate with just one or a limited number of IPv4 addresses.

### OPENTHREAD_CONFIG_NAT64_TRANSLATOR_ENABLE

```
 OPENTHREAD_CONFIG_NAT64_TRANSLATOR_ENABLE 0
```
Define to 1 to enable the internal NAT64 translator.

## Resources

OpenThread API Reference topics originate from the source code, available
on [GitHub](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).