Example Config for Check Point VM in AWS¶
In this document, we provide an example to set up the Check Point Security Gateway instance for you to validate that packets are indeed sent to the Check Point Security Gateway for VPC-to-VPC and from VPC to internet traffic inspection.
Firewall and Security Gateway word will be used interchangeably in this document. Both refers to Check Point Security Gateway product.
Before you start, make sure you meet the basic requirements:
- Basic Check Point Architecture Understanding
- Check Point CloudGuard IaaS product is subscribed in AWS Marketplace
The following Check Point AMIs and software versions are supported.
|Supported AMI Name||Software Version|
|CloudGuard IaaS Next-Gen Firewall with Threat Prevention & SandBlast BYOL||R80.40, R80.30|
|CloudGuard IaaS Next-Gen Firewall with Thread Prevention||R80.40, R80.30|
|CloudGuard IaaS All-In-One R80.40||R80.40|
Basic Check Point architecture is shown below:
In this document, we provide an example to set up the Check Point Firewall instance for you to validate that packets are indeed sent to the Check Point Firewall for VPC-to-VPC and from VPC to internet traffic inspection.
The Aviatrix Firewall Network (FireNet) workflow launches a Check Point Firewall instance at this step.
After the launch is complete, the console displays the Check Point Firewall instance with its public IP address of management/egress interface for you to log in to the console.
Here is the Firewall information in this example for your reference. Please adjust it depending on your requirements.
Firewall Image other then Check Point CloudGuard IaaS All-In-One requires a Check Point Security Management to manage firewall polices. See the Check Point Azure Example for more information.
|Example setting||Example value|
|Firewall Image||Check Point CloudGuard IaaS All-In-One R80.40|
|Firewall Image Version||R80.40-294.581|
|Firewall Instance Size||m5.large|
|Egress Interface Subnet||Select the subnet whose name contains “FW-ingress-egress.”|
|Key Pair Name (Optional)||The .pem file name for SSH access to the firewall instance.|
Check Point Firewall instance has 2 interfaces as described below. Additionally, firewall instance eth1 is on the same subnet as FireNet Gateway eth2 interface.
|Check Point VM instance interfaces||Description||Inbound Security Group Rule|
|eth0 (on subnet -Public-FW-ingress-egress-AZ-a)||Egress or Untrusted interface||Allow ALL|
|eth1 (on subnet -dmz-firewall)||LAN or Trusted interface||Allow ALL (Do not change)|
Below are the steps for initial setup.
Downloading Check Point Firewall Access Key¶
After this step in the FireNet workflow is completed, click Download to download the .pem file.
If you get a download error, usually it means the Check Point Firewall instance is not ready. Wait until it is ready, refresh the browser and then try again.
Setting up Check Point Gateway (Firewall) SSH login Using Password¶
For Metered AMI, open a terminal and run the following command.
Once you download the .pem file, change the file permission to 600. It usually takes 5 to 10 minutes for the Check Point Gateway to be ready. Once SSH into the Check Point Gateway using the proper keys and the user “admin,” only few commands will be required to enable ssh for user “admin.”
ssh -i <private_key.pem> [email protected]<public-ip_address> set expert-password Enter new expert password: Enter new expert password (again): gw-358e82> expert Enter expert password: Warning! All configurations should be done through clish You are in expert mode now. [[email protected]:0]# sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config [[email protected]:0]# sed -i 's/PermitRootLogin forced-commands-only/PermitRootLogin yes/' /etc/ssh/sshd_config [[email protected]:0]# service sshd reload Reloading sshd: [ OK ] [[email protected]:0]# exit
Terminate the SSH session.
Logging in to the Check Point Firewall Gaia Portal¶
After launch is completed, go back to the Controller, Firewall Network > Setup > Step 2a and click on the Management UI as shown below.
The URL takes you to the Check Point Firewall Gaia Portal you just launched.
For initial Check Point login information, go to Credentials for Check Point Initial Login. You must be registered to access the Aviatrix Customer Support website. If you are not already registered, you can sign-up at https://support.aviatrix.com.
Starting from Release 5.4, launching Check Point firewall instances from the Aviatrix Controller automatically initiates its onboarding process. For initial login information, go to Credentials for Check Point Initial Login. You must be registered to access the Aviatrix Customer Support website. If you are not already registered, you can sign-up at https://support.aviatrix.com.
Initializing and Logging in to the Check Point Firewall via Gaia Portal¶
First time login shows the “Check Point First Time Configuration Wizard” screen as shown below.
Click Next, Next and continue until the Finish button, no need to configure anything in the configuration wizard.
Aviatrix Controller automatically configures the Check Point interfaces and RFC1918 static routes which is required for FireNet feature, so, initialize wizard configurations are no longer required but we need to click Next on each window to initialize the firewall properly.
After the initialization is completed, users will be navigated to the Check Point Firewall Gaia Portal Overview page as below.
Go to the page Network Management > Network Interfaces to review eth0 (WAN) and eth1 (LAN) configuration as shown below.
Review static routes RFC 1918 which is configured on LAN port, the purpose of those static route is to send the packets back to the Gateway (GW).
Those static routes could be reviewed on the page Network Management -> IPv4 Static Routes.
Routes can also be reviewed by clicking Monitoring on the page Network Management > IPv4 Static Routes.
(Optional) Firewall Vendor Integration¶
Go to Aviatrix Controller > Firewall Network > Vendor Integration and complete the step as shown below:
Click Save, Show and Sync respectively.
This automatically set up the non-RFC 1918 routes between Aviatrix Gateway and Vendor’s firewall instance in this case Check Point. This can also be done manually through Cloud Portal and/or Vendor’s Management tool.
Downloading and Installing the SmartConsole¶
Check Point Single Gateway ‘All-In-One’ image is used in this example which do not require Check Point Security Manager. All other Gateway images require Check Point Security Manager. If you are not using ‘All-In-One’ image then skip this step and follow the Step 4 & Step 5 in a given link.
Downloading the Check Point SmartConsole¶
Log in to the Check Point Gateway and download the SmartConsole with version R80.40 on Windows-based computer.
Option 1: click Download Now! with the message “Manage Software Blades using SmartConsole” on the Overview page as shown below.
Option 2: download it by using this link R80.40.
Installing and Logging into the SmartConsole¶
Install the SmartConsole and login into it with the Gaia Portal username, password and IP Address of Check Point Gateway.
Moreover, execute the function “Get Interfaces With Topology” to sync up the settings that we have configured via Gaia Portal.
- Select Gateways & Servers on the left.
- Double-click on the Check Point Firewall.
- Select Network Management on left.
- Click Get Interfaces to expand options.
- Click Get Interfaces With Topology.
- Click Yes.
- Review the Get Topology Results which should match to the settings that we have configured via Gaia Portal.
- Click Accept.
Go to Security Policies > Access Control > Policy and click Install Policy and then Install to commit the settings.
Configuring the Basic Traffic Policy to Allow Traffic VPC-to-VPC¶
In this step, we will configure a basic traffic security policy that allows traffic to pass through the firewall.
From Security Policies > Access Control > Policy, configure a policy by either modifying the default Cleanup rule or Add a new rule above the default rule.
|Name||Configure any name for this policy (i.e. allow-all)|
|Service & Applications||Any|
Click Install Policy and then Install to commit the settings.
[Optional] Configuring the Basic Traffic Policy to Allow Traffic VPC to Internet¶
In this step, we will configure a basic traffic security policy that allows Internet traffic to pass through the firewall. Given that Aviatrix Gateways will only forward traffic from the TGW to the LAN port of the Firewall, we can simply set our policy condition to match any packet that is going in of LAN interface and going out of WAN interface.
Enable Egress inspection feature on FireNet.
- First, go back to the Aviatrix Controller. Navigate to Firewall Network > Advanced.
- Click the skewer/three dot button.
- Scroll down to Egress through Firewall and click Enable button.
- Verify the Egress status on the page Firewall Network > Advanced.
Second, go back to the Check Point Firewall SmartConsole. Navigate to the page “Gateways & Servers” and then double-click on the gateway itself to enable NAT function as the following screenshot.
- Click NAT.
- Mark the Hide internal networks behind the Gateway’s external IP checkbox.
- Click OK.
- Click Install Policy.
NAT function needs to be enabled on the Check Point FW interface eth0 for this VPC to Internet policy. Please refer to Check Point’s NAT instruction for detail.
[Optional] If you have default “Cleanup rule”, then navigate to Security Policies > Access Control > Policy and inject a new rule for Internet Policy on top of the default Cleanup rule.
|Name||Configure any name for this policy (i.e. Internet-Policy)|
|Destination||Select the object with All_internet|
|Service & Applications||Any|
Click Install Policy and then Install to commit the settings.
After validating that your traffic is being routed through your firewall instances, you can customize the security policy to tailor to your requirements.
Ready to Go¶
Now your firewall instance is configured and ready to receive packets.
Next step is to validate your configurations and polices using FlightPath and Diagnostic Tools (ping, traceroute etc.).
Viewing Traffic Log¶
You can view if traffic is forwarded to the firewall instance by logging in to the Check Point Firewall SmartConsole. Go to the Logs & Monitor page.
For VPC-to-VPC traffic:¶
Launch one instance in PROD Spoke VPC and DEV Spoke VPC. Start ping packets from a instance in DEV Spoke VPC to the private IP of another instance in PROD Spoke VPC. The ICMP traffic should go through the firewall and be inspected in firewall.
[Optional] For VPC to Internet traffic:¶
Launch a private instance in the Spoke VPC (i.e. PROD Spoke VPC) and start ping packets from the private instance towards Internet (e.g 22.214.171.124) to verify the egress function. The ICMP traffic should go through, and get inspected on firewall.