Setting Up a Security Gateway in Alibaba Cloud

Step 1: Prepare Your Alibaba Account

To prepare your Alibaba Cloud account, do the following:

  1. If you do not already have an Alibaba Cloud account, create one at Alibaba Cloud Platform.

  2. Navigate to ECS console using the menu bar.

  3. In Network & Security, click SSH Key Pairs.

  4. Use the region selector in the navigation bar to choose the Alibaba Cloud region where you want to deploy Check Point Cloud Firewall GatewayClosed Check Point Virtual Security Gateway that protects dynamic virtual environments with policy enforcement. Cloud Firewall Gateway inspects traffic between Virtual Machines to enforce security, without changing the Virtual Network topology. .

  5. Create a key pair in your preferred region.

  6. If necessary, request a service limit increase for the Alibaba Cloud resources you are going to use.

    You may have to do this if you have an existing deployment that uses the Alibaba Cloud resources below, and you may exceed the default limit with this deployment.

    The resources that may need a service limit increase are:

    • Number of On-demand ECS instances.

    • Number of Elastic IP addresses.

    • Number of VPCs for each region.

    • Number of VPN connections for each region.

    • VPN connections for each VPC.

By default, this Deployment guide uses ec5.xlarge for the Cloud Firewall Gateways and ecs.hfg6.xlarge for the Security Management ServerClosed Dedicated Check Point server that runs Check Point software to manage the objects and policies in a Check Point environment within a single management Domain. Synonym: Single-Domain Security Management Server..

Step 2: Deploy with a Terraform template in Alibaba Cloud

Deploy this solution in the Alibaba Cloud Portal using Terraform.

Deploy the Cloud Firewall Gateway in Alibaba Cloud:

Use this Terraform Template: Check Point Cloud Firewall Gateway.

Deploy the Security Management Server:

Use one of the options below to deploy the Check Point Security Management ServerClosed Check Point Single-Domain Security Management Server or a Multi-Domain Security Management Server..

  1. Use the existing on-premises Security Management Server, or existing Security Management Server in Alibaba Cloud Platform.

    If the Security Management Server is communicating over a private IP addresses with the Cloud Firewall Gateway, then make sure that the Security Management Server has connection to the Security VPC where they are deployed.

  2. Deploy a new Security Management Server with the Management Terraform template: Check Point Security Management Server.

Note - For direct access to the Cloud Firewall Gateway, deploy the Security Management Serverin the same Security VPC where you deployed the Cloud Firewall Gateway.

To configure the Check Point Security Management Server, follow the steps in Security Management Administration Guide of your version.

Step 3: Configure Cloud Firewall Gateway in SmartConsole

To enforce a Security PolicyClosed Collection of rules that control network traffic and enforce organization guidelines for data protection and access to resources with packet inspection., the Cloud Firewall Gateway must first be configured on the Security Management Server using Check Point's 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..

Configuring the Gateway Object

  1. Use SmartConsole to connect to your Check Point Security Management Server.

  2. If the Security Management Server and the Cloud Firewall Gateway have to communicate through public IP addresses, make sure that the Security Management Server object is defined with the elastic IP address.

    Edit the Security Management Server object and change the IP address.

    Important - If you change the main IP address of the Security Management Server, you must issue and install the license(s) for the new IP address.

  3. Create the Cloud Firewall Gateway:

    In the top of the SmartConsole, click https://sc1.checkpoint.com/documents/IaaS/WebAdminGuides/EN/CP_CloudGuard_for_AWS_Transit_Gateway_High_Availability/Content/Resources/Images/tgw_ha_star.png > More > Network Object > Gateway & Servers > Gateway > Classic Mode.

  4. Define the gateway's general properties:

    1. In the Gateway Name field, enter a name for the gateway object (as in "Alibaba_GW").

    2. In the IPv4 address field:

      If you manage the gateway from the same VPC, enter the Gateway private IP address. Otherwise, enter the Gateway public IP address.

    3. Click Communication.

    4. In the One-Time Password field, enter the SICClosed Secure Internal Communication. The Check Point proprietary mechanism with which Check Point computers that run Check Point software authenticate each other over SSL, for secure communication. This authentication is based on the certificates issued by the ICA on a Check Point Management Server. key you set up in the Terraform Template.

    5. In the One-Time Password field, enter the SIC key again.

    6. Click Initialize.

      1. If the One-time password is confirmed, the Trust State field shows Trust Established.

    7. To close the Communication properties window, click Close.

      If the Activation Key is confirmed, the Trust State field shows Trust Established.

    8. Click OK.

  5. Click Network Management > Get Interfaces > Get Interfaces With Topology.

    If this warning appears:

    "Topology and Anti-Spoofing settings that are already defined will be overwritten. By results of this operation that contradict them, if any. Do you want to continue?"

    Click Yes.

    From the Network eth0 and eth1 window, click Topology and disable Anti-Spoofing.

  6. Verify the settings:

    1. To close the window, click OK.

    2. Install policy on the Cloud Firewall Gateway.

To Allow Outbound Traffic

  1. Use SmartConsole to connect to your Check Point Security Management Server.

  2. Create an Internal NetworkClosed Computers and resources protected by the Firewall and accessed by authenticated users. for the Security VPC:

    In the right navigation bar, click new > Network….

  3. Configure Network general properties:

    1. Enter a name for your network (such as Security_network).

    2. In the IPv4 section, insert the Network Address and the Net mask of the Security VPC

  4. Create a 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. for the network to hide behind the Security Gateways:

    1. In the Network's object left pane, click NAT.

    2. Check the box: Add automatic address translation rules.

    3. Leave the configuration as default:

      • Translation method: Hide

      • Hide behind the gateway

  5. Verify the settings:

    1. To close the window, click OK.

    2. Install policy.

Step 4: Configure VPN

Testing and Troubleshooting

Cloud Firewall Gateway

  1. In AliCloud ECS console, go to the instance and check system log is finished successfully (machine is ready to be logged in):

    Expected output:

    This system is for authorized use only.
    login

  2. Connect VIA SSH using configured SSH key / Password

    1. Check user-data script finished successfully by running in Expert mode:

      cat /var/log/cloud_config.log

      Expected output:

      cloud_config finished successfully

    2. Check both interfaces are configured correctly.

    3. In the SmartConsole, check Device & License Information for problems.