Skip to main content

Create a NAT rule

POST 

/nat-rules

Create a new NAT rule.

Request

Query Parameters

    position anyrequired

    The relative position of the rule

Body

Created

    anyOf
    oneOf
    translated_address_single string

    Translated destination IP address

    translated_port integer

    Possible values: >= 1 and <= 65535

    Translated destination port

    dns_rewrite object

    DNS rewrite

    direction string

    Possible values: [reverse, forward]

    name stringrequired

    NAT rule name

    description string

    NAT rule description

    tag string[]

    NAT rule tags

    disabled boolean

    Disable NAT rule?

    nat_type string

    Possible values: [ipv4, nat64, nptv6]

    Default value: ipv4

    NAT type

    from string[]required

    Source zone(s) of the original packet

    source string[]required

    Source address(es) of the original packet

    to string[]required

    Destination zone of the original packet

    to_interface string

    Destination interface of the original packet

    destination string[]required

    Destination address(es) of the original packet

    service stringrequired

    The service of the original packet

    source_translation object
    oneOf
    oneOf
  • Array [
  • string

  • ]
  • oneOf

    object

    active_active_device_binding string

    Possible values: [primary, both, 0, 1]

Responses

Created

Loading...