ENF News Bot
Automated News Bot
- Joined
- Apr 15, 2022
- Messages
- 4,544
You can now configure DNAT (destination NAT) translations on a Cloudflare One Appliance LAN, in beta. A DNAT translation maps a local pre-NAT prefix to a post-NAT prefix of the same size, which is the real prefix of a remote subnet reachable through Cloudflare WAN, such as a data center connected over an IPsec tunnel. Hosts on the LAN send traffic to the pre-NAT prefix, and the Appliance translates it 1:1 to the remote subnet and back.
Use DNAT translations to reach a remote network that uses the same addresses as your site, without renumbering either side. You can also use them to avoid adding routes for remote subnets to your local network. Combine DNAT translations with static NAT for a subnet when both sides of the connection use the same addresses.
Required API token permissions
At least one of the following token permissions is required:
DNAT translations require Appliance OS version 2026.11.2 or later, which deploys automatically.
For details, refer to DNAT translations.
Continue reading...
Use DNAT translations to reach a remote network that uses the same addresses as your site, without renumbering either side. You can also use them to avoid adding routes for remote subnets to your local network. Combine DNAT translations with static NAT for a subnet when both sides of the connection use the same addresses.
In the dashboard, edit a LAN in your Appliance profile's Network configuration, then select Add DNAT translation under DNAT translations.
Go to Appliances ↗
In the API, set theremote_subnetsarray when you create or update a LAN. Each item has alocal_alias_prefix(pre-NAT) and aremote_prefix(post-NAT).
Required API token permissions
At least one of the following token permissions is required:
Magic WAN WriteMagic Transit Write
Code:
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/sites/$SITE_ID/lans/$LAN_ID" \
--request PATCH \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--json '{
"remote_subnets": [
{
"local_alias_prefix": "100.64.1.0/24",
"remote_prefix": "10.1.1.0/24"
}
]
}'
DNAT translations require Appliance OS version 2026.11.2 or later, which deploys automatically.
For details, refer to DNAT translations.
Continue reading...