---
title: "Update Firewall NAT Rule"
method: PUT
path: "/network/firewall/nat/{id}"
tags: ["Network"]
---

# Update Firewall NAT Rule

`PUT /network/firewall/nat/{id}`

Replace and apply an existing user-managed firewall NAT rule

## Path parameters

- `id` integer, required

## Request body

- GithubComAlchemillahqSylveInternalInterfacesServicesNetworkUpsertFirewallNATRuleRequest
  - `description` string
  - `destObjId` integer
  - `destRaw` string
  - `dnatTargetObjId` integer
  - `dnatTargetRaw` string
  - `dstPortObjId` integer
  - `dstPortsRaw` string
  - `egressInterfaces` string[], required
  - `enabled` boolean
  - `family` 'any' | 'inet' | 'inet6', required
  - `ingressInterfaces` string[], required
  - `log` boolean
  - `name` string, required
  - `natType` 'snat' | 'dnat' | 'binat', required
  - `policyRouteGateway` string
  - `policyRoutingEnabled` boolean
  - `priority` integer
  - `protocol` 'any' | 'tcp' | 'udp' | 'icmp', required
  - `redirectPortObjId` integer
  - `redirectPortsRaw` string
  - `sourceObjId` integer
  - `sourceRaw` string
  - `translateMode` 'interface' | 'address'
  - `translateToObjId` integer
  - `translateToRaw` string

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseAny
  - `data` unknown
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `413` — Payload Too Large
- `500` — Internal Server Error

---

[API](https://skmtc.net/alchemillahq/apis/sylve-api.md) · [All operations](https://skmtc.net/alchemillahq/apis/sylve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/alchemillahq/sylve-api/revisions/9822c41c8ac0/schema)
