InlineNatRule1

InlineNatRule1
InlineNatRule1
JSON Example
{
    "match_destination_network": "string",
    "translated_network": "string",
    "rule_priority": 0,
    "match_service": {
        "resource_type": "string"
    },
    "applied_tos": [
        {
            "target_display_name": "string",
            "is_valid": false,
            "target_id": "string",
            "target_type": "string"
        }
    ],
    "enabled": false,
    "logical_router_id": "string",
    "translated_ports": "string",
    "action": "string",
    "logging": false,
    "nat_pass": false,
    "match_source_network": "string"
}
string
match_destination_network
Optional

IP Address | CIDR | (null implies Any)

string
translated_network
Optional

IP Address | IP Range | CIDR

integer As int64 As int64
rule_priority
Optional

Ascending, valid range [0-2147483647]. If multiple rules have the same priority, evaluation sequence is undefined.

match_service
Optional

match_service

applied_tos
Optional

Holds the list of LogicalRouterPort Ids that a NAT rule can be applied to. The LogicalRouterPort used must belong to the same LogicalRouter for which the NAT Rule is created. As of now a NAT rule can only have a single LogicalRouterPort as applied_tos. When applied_tos is not set, the NAT rule is applied to all LogicalRouterPorts beloging to the LogicalRouter.

boolean
enabled
Optional

enable/disable the rule

string
logical_router_id
Optional

Logical router id

string
translated_ports
Optional

port number or port range. DNAT only

string
action
Required

valid actions: SNAT, DNAT, NO_SNAT, NO_DNAT, REFLEXIVE. All rules in a logical router are either stateless or stateful. Mix is not supported. SNAT and DNAT are stateful, can NOT be supported when the logical router is running at active-active HA mode; REFLEXIVE is stateless. NO_SNAT and NO_DNAT have no translated_fields, only match fields are supported.

Possible values are : SNAT, DNAT, NO_NAT, REFLEXIVE, NO_SNAT, NO_DNAT,
boolean
logging
Optional

enable/disable the logging of rule

boolean
nat_pass
Optional

Default is true. If the nat_pass is set to true, the following firewall stage will be skipped. Please note, if action is NO_NAT, then nat_pass must be set to true or omitted.

string
match_source_network
Optional

IP Address | CIDR | (null implies Any)

Used By