Automatic NAT and Access Rules

Automatic NAT and Access rules for CloudGuard Auto Scaling automatically configure the NAT and Access rules in the Security PolicyClosed Collection of rules that control network traffic and enforce organization guidelines for data protection and access to resources with packet inspection. based on the Internal Application gateway's listeners and tags.

Important - This configuration is only for:

For AWS, this feature is part of the CloudGuard Auto Scaling for AWS solution, see CloudGuard Network for AWS Auto Scale Group Deployment Guide.

Mandatory Configuration

To enable this feature, these tags are required on the internal Application gateway:

Key

Value

Example

x-chkp-management

The name of the Management ServerClosed Check Point Single-Domain Security Management Server or a Multi-Domain Security Management Server.

my-management

x-chkp-template

The name of the configuration template selected when the Virtual Machine Scale Sets (VMSS) for Azure was setup.

my-configuration-template

Note - When this feature is enabled, CME starts to configure NAT and Access rules for Application gateways with the above tags that match the current management and configuration template. See Enabling Automatic NAT and Access Rules in CME.

Best Practice - To prevent unexpected behavior, we recommend to stop CME before this configuration, and to restart it after the configuration is complete.

NAT Rule Generated

No

Original Source

Original Destination

Original Services

Translated Source

Translated Destination

Translated Services

Installed On

1

See below for more information

LocalGatewayExternal

See below for more information

LocalGatewayInternal

NAT Method: Hide

The Internal Application gateway frontend IP private address

Listener port and protocol. See below for more information.

VMSS instance

Access Rule Generated

Source

Destination

VPN

Services & Applications

Action

Track

Install On

The same as the Original Source in the corresponding NAT ruleClosed Set of traffic parameters and other conditions in a Rule Base (Security Policy) that cause specified actions to be taken for a communication session.

LocalGatewayExternal

Any

The same as the Original Services in the corresponding NAT rule

Accept

Log

VMSS instance

See the Virtual Machine Scale Sets (VMSS) for Azure R80.10 and Higher Administration Guide > Section Creating Dynamic Objects LocalGatewayInternal and LocalGatewayExternal.

Customizing Original and Translated Services in the NAT Rule

To customize the ports for Original Services, or to configure multiple internal Application gateways to listen to other ports, tag the internal Application gateway as follows:

Key

Value

Example

x-chkp-forwarding

A space-separated list of <PROTOCOL>-<ORIGIN-PORT>-<DESTINATION-PORT> items to represent the forwarding rules it is necessary to use

  • HTTP-9081-80

  • HTTP-9081-80 HTTPS-9444-443

Examples:

Listener protocol and port

x-chkp-forwarding

Original Services

Translated Services

HTTP and port 81

HTTP-9981-81

HTTP and port 9981

HTTP and port 81

HTTP and port 81

HTTP-9999-99

HTTP and port 81

HTTP and port 81

 

 

HTTP and port 9999

HTTP and port 99

Customizing Original Source in the NAT Rule

To allow traffic from a specific IP addresses or networks based on their CIDRs, tag the internal Application gateways as follows:

Best Practice - We recommend to use this tag with the external Application gateway subnet.

Key

Value

Example

x-chkp-source-cidrs

A list of space-separated network/mask, from which the traffic is allowed

10.0.0.0/24 192.168.0.0/24

Examples:

VMSS VNET

x-chkp-source-cidrs

Original Source

10.0.0.0/16

Not configured

10.0.0.0/16

10.0.0.0/16

10.0.0.0/24

10.0.0.0/24

Enabling Automatic NAT and Access Rules in CME

To enable Automatic NAT and Access rules, run:

autoprov_cfg set template -tn <CONFIGURATION-TEMPLATE-NAME> -an

When the feature is enabled, CME starts to configure NAT and Access rules based on the Application gateway's x-chkp_management and x_chkp-template tags.

To disable Automatic NAT and Access rules, run:

autoprov_cfg delete template -tn <CONFIGURATION-TEMPLATE-NAME> -an

After the feature is disabled:

  1. CME removes the existing NAT and Access rules that were automatically created for this template.

  2. CME does not add NAT and Access Rules for new instances.

(Optional) Automatic Rule Placement

By default, automatic Access and NAT rules for each VMSS instance are added at the top of the rulebase.

Sometimes it is recommended to add the rules in a specific place in the policy rather than at the top.

You can achieve this by creating a section for these rules in SmartConsoleClosed Check Point GUI application used to manage a Check Point environment - configure Security Policies, configure devices, monitor products and events, install updates, and so on., and specifying the section name in CME configuration.

If the section is specified in the configuration template, but not found in the rule baseClosed All rules configured in a given Security Policy. Synonym: Rulebase., the rule is added at the top by default.

Note - The changes above occur only for new VMSS instances. The existing rules stay the same.

Known Limitations

  • The feature works only with:

    • Azure Application gateways

    • AWS Auto Scale Group solutions

    Azure Load Balancers (layer 4) are currently not supported.

  • These ports used with Auto Scaling groups in AWS are not supported:

    • x-chkp-ignore-ports

    • x-chkp-http-ports

    • x-chkp-https-ports

    • x-chkp-ssl-ports

    • x-chkp-source-object