Add a NAT Rule to a Firewall Policy
NAT rules contain a set of criteria against which a network packet is matched for source address translation (NAT).
Note
If no match criteria are defined in a NAT rule (or if an empty address list is specified for the rule), the rule matches to "wildcard" (any criteria). This behavior applies to all traffic examined in the rule.
To add a NAT rule to a firewall policy:
To delete a NAT rule from a firewall policy, see Delete a Rule from a Firewall Policy.
Use the network-firewall nat-rule create command and required parameters to create a NAT rule:
oci network-firewall nat-rule create --name my_nat_rule --network-firewall-policy-id network firewall policy OCID --type NATV4 ...[OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the CreateNatRule operation to create a NAT rule.