InlineNatRule1
{
"action": "string",
"applied_tos": [
{
"is_valid": false,
"target_display_name": "string",
"target_id": "string",
"target_type": "string"
}
],
"enabled": false,
"firewall_match": "string",
"internal_rule_id": "string",
"logging": false,
"logical_router_id": "string",
"match_destination_network": "string",
"match_service": "NSServiceElement Object",
"match_source_network": "string",
"pb_vpn_mode": "string",
"rule_priority": 0,
"translated_network": "string",
"translated_ports": "string"
}
Valid actions: SNAT, DNAT, NO_SNAT, NO_DNAT, REFLEXIVE, NAT64. 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.
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.
Indicator to enable/disable the rule.
Indicate how firewall is applied to a traffic packet. Firewall can be bypassed, or be applied to external/internal address of NAT rule.
Internal NAT rule uuid for debug used in Controller and backend.
Enable/disable the logging of rule.
The logical router id which the nat rule runs on.
IP Address | CIDR | (null implies Any)
An NSService element that describes traffic corresponding to an NSService
IP Address | CIDR | (null implies Any)
Indicate how the rule applies to Policy-Based VPN traffic. It's supported only for NAT rule action type DNAT and NO_DNAT.
BYPASS indicates that NAT rule is applied to the traffic received on Routed-Based VPN tunnel.
EXCLUSIVE indicates that NAT rule is applied to the inbound traffic received on Policy-Based VPN tunnel only.
Ascending, valid range [0-2147483647]. If multiple rules have the same priority, evaluation sequence is undefined.
The translated address for the matched IP packet. For a SNAT, it can be a single ip address, an ip range, or a CIDR block. For a DNAT and a REFLEXIVE, it can be a single ip address or a CIDR block. Translated network is not supported for NO_SNAT or NO_DNAT.
The translated port(s) for the mtached IP packet. It can be a single port or a port range. Please note, port translating is supported only for DNAT.