NatRule

NatRule
NatRule

NAT Rule

JSON Example
{
    "ruleId": "string",
    "kind": "NAT44",
    "type": "DNAT",
    "index": 0,
    "protocol": "TCP, UDP",
    "sourceIPs": "any, 10.20.156.101",
    "sourcePorts": "any, 80, 5000-5100",
    "destinationPorts": "any, 80, 5000-5100",
    "destinationAddress": "any, 10.20.156.101",
    "targetLink": "/iaas/api/load-balancers/try6-45ef, /iaas/api/machines/ht54-a472/network-interfaces/dyd6-d67e",
    "translatedPorts": "any, 80, 5000-5100",
    "description": "string"
}
string
ruleId
Optional

Unique ID of the NAT Rule

string
kind
Optional

Kind of NAT: NAT44/NAT64/NAT66. Only NAT44 is supported currently and it is the default value

string
type
Optional

Type of the NAT rule. Only DNAT is supported currently.

integer As int32 As int32
index
Required

Index in which the rule must be applied

string
protocol
Optional

The protocol of the incoming requests. Default is TCP.

string
sourceIPs
Optional

The IP of the external source. Default is any

string
sourcePorts
Optional

Ports from where the request is originating. Default is any

string
destinationPorts
Optional

The edge gateway port. Default is any

string
destinationAddress
Optional

The external IP address of the outbound or routed network

string
targetLink
Required

A links to target load balancer or a machine's network interface where the request will be forwarded.

string
translatedPorts
Optional

The machine port where the request will be forwarded. Default is any

string
description
Optional

Description of the NAT rule.