> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aviatrix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Aviatrix Gateway to Check Point(R77.30)

> This document describes how to build an IPsec tunnel-based Site2Cloud connection between Aviatrix Gateway and Check Point Firewall. To simulate an on-prem Check Point Firewall, we use a Check Point CloudGuard IaaS firewall VM at AWS VPC.

This document describes how to build an IPsec tunnel-based Site2Cloud connection
between Aviatrix Gateway and Check Point Firewall. To simulate an on-prem Check
Point Firewall, we use a Check Point CloudGuard IaaS firewall VM at AWS VPC.

<Note>
  If you do not have access to AWS, you can simulate an on-prem Firewall by
  deploying the Palo Alto Firewall in any other cloud (such as Microsoft Azure,
  Google Cloud Platform, or Oracle Cloud Infrastructure).
</Note>

The network setup is as follows:

**VPC1 (with Aviatrix Gateway)**

*VPC1 CIDR: 10.0.0.0/16*

*VPC1 Public Subnet CIDR: 10.0.1.0/24*

*VPC1 Private Subnet CIDR: 10.0.2.0/24*

**VPC2 (with Check Point Security Gateway)**

*VPC2 CIDR: 10.10.0.0/16*

*VPC2 Public Subnet CIDR: 10.10.0.0/24*

*VPC2 Private Subnet CIDR: 10.10.1.0/24*

## Launching Check Point Security Gateway VM

Refer to the
[Check Point vSEC for AWS Lab Setup Guide](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=\&solutionid=sk111013)
to launch a CheckPoint VM with at least two network interfaces. One interface
serves as a WAN port and is in VPC2's public subnet. The other interface serves
as a LAN port and is in VPC2's private subnet. Collect the public IP address of
the WAN port.

## Creating an External Connection

1. In Aviatrix CoPilot, launch an
   <a href={"/docs/enterprise/" + "10.1" + "/reference/ui/cloud-fabric/gateways#view-transit-gateways"}>Aviatrix Transit Gateway</a>
   in VPC1's public subnet. Collect both the public and private IP address of
   the Gateway.
2. Navigate to Networking > Connectivity > External Connections (S2C) and click
   **Add New** to create a Site2Cloud connection (selecting Pre-Shared Key)
   using the values for one of the below options:

* [Static Route-Based](https://legacy.docs.aviatrix.com/documentation/latest/network/external-connection-create-static-route-based-unmapped.html)
* [Static Policy-Based](https://legacy.docs.aviatrix.com/documentation/latest/network/external-connection-create-static-policy-based-unmapped.html)

Substitute the following values:

* Remote Device Type: Generic
* Algorithms: turn Off
* Remote Device IP: Public IP of the Check Point VM WAN port
* Remote Subnet CIDR(s): 10.10.1.0/24 (VPC2 private subnet)
* Local Subnet CIDR(s): 10.0.2.0/24 (VPC1 private subnet)

3. After the connection is created, select the vertical ellipsis
   <img src="https://mintcdn.com/aviatrix-14b37c43/Gre8pdluiL7JmlpL/images/guides/connectivity/vpn/threedot.png?fit=max&auto=format&n=Gre8pdluiL7JmlpL&q=85&s=36963cd7f65aa469c6d5fe2021fa71a7" alt="threedot" width="24" height="34" data-path="images/guides/connectivity/vpn/threedot.png" /> menu for that
   connection and select **Download Configuration**.
4. Select **Generic** from the **Vendor** dropdown list and click the
   **Download** to download the external (S2C) configuration. Use this
   configuration file to configure the tunnels and interfaces in your Check
   Point VM firewall.

## Downloading and Installing SmartConsole

1. Using a browser, connect to the Gaia Portal of the CheckPoint-VM at
   `https:/CheckPoint-VM_Public-IP`:

<img src="https://mintcdn.com/aviatrix-14b37c43/1zOMu4WXCFpEtXhJ/images/guides/connectivity/vpn/download-smart-console1.png?fit=max&auto=format&n=1zOMu4WXCFpEtXhJ&q=85&s=90e866fa6d54d54e4e41cd082f11d1e4" alt="image0" width="1899" height="807" data-path="images/guides/connectivity/vpn/download-smart-console1.png" />

2. Click **Overview** at the left navigation bar, and then click **Download
   Now!** to download SmartConsole.

3. Install SmartConsole at your local machine and launch SmartDashboard.

### Creating Network Objects at SmartConsole

1. At the Check Point SmartDashboard window, select the **Desktop** tab. Right
   click the **Networks** folder at the left navigation bar and select
   **Network**.
2. Create one network for private subnet of VPC2 (Check Point VPC).

<img src="https://mintcdn.com/aviatrix-14b37c43/Gre8pdluiL7JmlpL/images/guides/connectivity/vpn/network-checkpoint.png?fit=max&auto=format&n=Gre8pdluiL7JmlpL&q=85&s=41093302add3b8eb85cd56abd34e290b" alt="image1" width="696" height="584" data-path="images/guides/connectivity/vpn/network-checkpoint.png" />

| **Field**            | **Value**                          |
| -------------------- | ---------------------------------- |
| Name                 | Arbitrary (e.g. CP-Private-Subnet) |
| IPv4 Network Address | VPC2 private subnet CIDR           |
| IPv4 Net mask        | VPC2 private subnet mask           |

3. Create one network for private subnet of VPC1 (Aviatrix Gateway VPC).

<img src="https://mintcdn.com/aviatrix-14b37c43/Gre8pdluiL7JmlpL/images/guides/connectivity/vpn/network-private.png?fit=max&auto=format&n=Gre8pdluiL7JmlpL&q=85&s=d8a86ab9402243425e723ed9e8cb2a4b" alt="image2" width="695" height="585" data-path="images/guides/connectivity/vpn/network-private.png" />

| **Field**            | **Value**                           |
| -------------------- | ----------------------------------- |
| Name                 | Arbitrary (e.g. AVX-Private-Subnet) |
| IPv4 Network Address | VPC1 private subnet CIDR            |
| IPv4 Net mask        | VPC1 private subnet mask            |

### Configuring Check Point Security Gateway with VPN

1. At the SmartDashboard window, select the **Desktop** tab and expand the
   **Check Point** folder at the left navigation bar. Note that your gateway VM
   with the name format "gw-xxxxxx" is automatically created.

<img src="https://mintcdn.com/aviatrix-14b37c43/1zOMu4WXCFpEtXhJ/images/guides/connectivity/vpn/desktop-gw-config1.png?fit=max&auto=format&n=1zOMu4WXCFpEtXhJ&q=85&s=09bfb005ea9fe27d6e2697f3bcc801b4" alt="image3" width="1919" height="1010" data-path="images/guides/connectivity/vpn/desktop-gw-config1.png" />

2. Right-click the gateway name and select **Edit** from the menu.
3. At the Check Point Gateway > General Properties window:

<img src="https://mintcdn.com/aviatrix-14b37c43/1zOMu4WXCFpEtXhJ/images/guides/connectivity/vpn/edit-gw-one.png?fit=max&auto=format&n=1zOMu4WXCFpEtXhJ&q=85&s=15d542d2fabc806678bb9d22b61f60c9" alt="image4" width="979" height="877" data-path="images/guides/connectivity/vpn/edit-gw-one.png" />

| **Field**        | **Value**                               |
| ---------------- | --------------------------------------- |
| IPv4 Address     | Private IP of CheckPoint VM WAN port    |
| Test SIC Status  | Make sure the status is "communicating" |
| Network Security | Select **IPsec VPN**                    |

4. At **Check Point Gateway - Topology** window, select **Manually defined** for
   VPN Domain. Select the network created when you created a network for private
   subnet of VPC2 (Check Point VPC).

<img src="https://mintcdn.com/aviatrix-14b37c43/1zOMu4WXCFpEtXhJ/images/guides/connectivity/vpn/edit-gw-two.png?fit=max&auto=format&n=1zOMu4WXCFpEtXhJ&q=85&s=0c9f1434a94dd50b4fa0895b29148561" alt="image5" width="978" height="878" data-path="images/guides/connectivity/vpn/edit-gw-two.png" />

5. At **Check Point Gateway - Topology** window, double-click "eth0" (Check
   Point WAN port). Select **External (leads out to the Internet)**.

<img src="https://mintcdn.com/aviatrix-14b37c43/1zOMu4WXCFpEtXhJ/images/guides/connectivity/vpn/edit-gw-three.png?fit=max&auto=format&n=1zOMu4WXCFpEtXhJ&q=85&s=da7a44617da09e1c5f13ddae7c4074eb" alt="image6" width="592" height="680" data-path="images/guides/connectivity/vpn/edit-gw-three.png" />

6. At **Check Point Gateway - Topology** window, double click "eth1" (Check
   Point LAN port). Select **Internal (leads to the local network)**.

<img src="https://mintcdn.com/aviatrix-14b37c43/1zOMu4WXCFpEtXhJ/images/guides/connectivity/vpn/edit-gw-four.png?fit=max&auto=format&n=1zOMu4WXCFpEtXhJ&q=85&s=826df33fb9ba745c8c93d6ae08b6f84d" alt="image7" width="594" height="677" data-path="images/guides/connectivity/vpn/edit-gw-four.png" />

7. At the **Check Point Gateway - IPsec VPN - Link Selection** window, configure
   the parameters as follows:

<img src="https://mintcdn.com/aviatrix-14b37c43/1zOMu4WXCFpEtXhJ/images/guides/connectivity/vpn/edit-gw-five.png?fit=max&auto=format&n=1zOMu4WXCFpEtXhJ&q=85&s=a077469a7c045dba88e5c4cea7c56ebe" alt="image8" width="1251" height="882" data-path="images/guides/connectivity/vpn/edit-gw-five.png" />

| **Field**                            | **Value**                          |
| ------------------------------------ | ---------------------------------- |
| Statically NATed IP                  | Public IP of Check Point WAN port  |
| Selected address from topology table | Private IP of Check Point WAN port |

8. At the **Check Point Gateway - IPsec VPN - VPN Advanced** window, configure
   the parameters as follows:

<img src="https://mintcdn.com/aviatrix-14b37c43/1zOMu4WXCFpEtXhJ/images/guides/connectivity/vpn/edit-gw-six.png?fit=max&auto=format&n=1zOMu4WXCFpEtXhJ&q=85&s=2266754c5c9980099c0b4656a18d7ba0" alt="image9" width="975" height="883" data-path="images/guides/connectivity/vpn/edit-gw-six.png" />

### Configuring an Interoperable Device to Represent Aviatrix Gateway

1. At Check Point SmartDashboard window, select the **Desktop** tab. Right-click
   the **Networks** folder at the left navigation bar to create a new
   interoperable device.
2. At the Interoperable Device - General Properties window:

<img src="https://mintcdn.com/aviatrix-14b37c43/Gre8pdluiL7JmlpL/images/guides/connectivity/vpn/interoperable-one.png?fit=max&auto=format&n=Gre8pdluiL7JmlpL&q=85&s=398617748e7776289ab35dd128c61976" alt="image10" width="983" height="878" data-path="images/guides/connectivity/vpn/interoperable-one.png" />

| **Field**    | **Value**                     |
| ------------ | ----------------------------- |
| Name         | Arbitrary (e.g. AVX-GW)       |
| IPv4 Address | Public IP of Aviatrix Gateway |

3. At the **Interopable Device - Topology** window, select **Manually defined**
   for VPN Domain. Select the network private subnet of VPC1 (Aviatrix Gateway
   VPC) you created above.

<img src="https://mintcdn.com/aviatrix-14b37c43/Gre8pdluiL7JmlpL/images/guides/connectivity/vpn/interoperable-two.png?fit=max&auto=format&n=Gre8pdluiL7JmlpL&q=85&s=e3df7cdf3e40a63b902d08fbb62d9750" alt="image11" width="980" height="876" data-path="images/guides/connectivity/vpn/interoperable-two.png" />

4. At the **Interopable Device - IPsec VPN - Link Selection** window, select
   **Always use this IP address > Main Address**.

<img src="https://mintcdn.com/aviatrix-14b37c43/Gre8pdluiL7JmlpL/images/guides/connectivity/vpn/interoperable-three.png?fit=max&auto=format&n=Gre8pdluiL7JmlpL&q=85&s=1582b2d532fbaf6574bbb6a3f7f9c22b" alt="image12" width="978" height="880" data-path="images/guides/connectivity/vpn/interoperable-three.png" />

5. At the **Interopable Device - IPsec VPN - VPN Advanced** window, select **Use
   the community settings**.

<img src="https://mintcdn.com/aviatrix-14b37c43/Gre8pdluiL7JmlpL/images/guides/connectivity/vpn/interoperable-four.png?fit=max&auto=format&n=Gre8pdluiL7JmlpL&q=85&s=a19f9af4276fbbe7e2c6f8246c33b895" alt="image13" width="980" height="882" data-path="images/guides/connectivity/vpn/interoperable-four.png" />

### Creating a VPN Community

1. At SmartDashboard **IPsec VPN** tab, select **Overview** from left navigation
   bar. Click **New** to create a Meshed Community.

<img src="https://mintcdn.com/aviatrix-14b37c43/1zOMu4WXCFpEtXhJ/images/guides/connectivity/vpn/community-one.png?fit=max&auto=format&n=1zOMu4WXCFpEtXhJ&q=85&s=f42d960a824950054cafb7301bdd38f4" alt="image14" width="1918" height="1009" data-path="images/guides/connectivity/vpn/community-one.png" />

2. At **Meshed Community Properties - General** window, create one community
   with a name (e.g. Site2Cloud-avx).

<img src="https://mintcdn.com/aviatrix-14b37c43/1zOMu4WXCFpEtXhJ/images/guides/connectivity/vpn/community-two.png?fit=max&auto=format&n=1zOMu4WXCFpEtXhJ&q=85&s=2a4a94758b4dc63c4c53629ef3fe1280" alt="image15" width="751" height="683" data-path="images/guides/connectivity/vpn/community-two.png" />

3. At **Meshed Community Properties - Participating Gateways** window, add both
   Check Point Security Gateway (e.g. gw-fe024c) and the interopable device
   created when you configured an interoperable device to represent the Aviatrix
   Gateway (e.g. AVX-GW) to this community.

<img src="https://mintcdn.com/aviatrix-14b37c43/1zOMu4WXCFpEtXhJ/images/guides/connectivity/vpn/community-seven.png?fit=max&auto=format&n=1zOMu4WXCFpEtXhJ&q=85&s=51997d3d591baafe2eae0568f17bbdbe" alt="image16" width="749" height="678" data-path="images/guides/connectivity/vpn/community-seven.png" />

4. At **Meshed Community Properties - Encryption** window, select the options
   according to the Site2Cloud configuration for configuring CheckPoint-VM you
   saved and downloaded above.

<img src="https://mintcdn.com/aviatrix-14b37c43/1zOMu4WXCFpEtXhJ/images/guides/connectivity/vpn/community-three.png?fit=max&auto=format&n=1zOMu4WXCFpEtXhJ&q=85&s=37f01bfce0f351a7f3c6bed16c70669a" alt="image17" width="1310" height="680" data-path="images/guides/connectivity/vpn/community-three.png" />

5. At **Meshed Community Properties - Tunnel Management** window, select **One
   VPN tunnel per Gateway pair** for **VPN Tunnel Sharing**.

<img src="https://mintcdn.com/aviatrix-14b37c43/1zOMu4WXCFpEtXhJ/images/guides/connectivity/vpn/community-four.png?fit=max&auto=format&n=1zOMu4WXCFpEtXhJ&q=85&s=23faeffcf67fe8440e3ce8148eddd0e7" alt="image18" width="754" height="682" data-path="images/guides/connectivity/vpn/community-four.png" />

6. At the **Meshed Community Properties - Advanced Settings - Shared Secret**
   window, enter **Shared Secret** by copying the **Pre-Shared Key** from the
   Site2Cloud configuration downloaded above.

<img src="https://mintcdn.com/aviatrix-14b37c43/1zOMu4WXCFpEtXhJ/images/guides/connectivity/vpn/community-five.png?fit=max&auto=format&n=1zOMu4WXCFpEtXhJ&q=85&s=a0def91553a8ac6e32bfc43ea60a5de9" alt="image19" width="751" height="711" data-path="images/guides/connectivity/vpn/community-five.png" />

7. At the **Meshed Community Properties - Advanced Settings - Advanced VPN
   Properties** window, enter the Phase1 and Phase2 parameters according to the
   Site2Cloud configuration downloaded above.

<img src="https://mintcdn.com/aviatrix-14b37c43/1zOMu4WXCFpEtXhJ/images/guides/connectivity/vpn/community-six.png?fit=max&auto=format&n=1zOMu4WXCFpEtXhJ&q=85&s=fdd6f1ee62402f0f6939ab5eff17839c" alt="image20" width="749" height="679" data-path="images/guides/connectivity/vpn/community-six.png" />

### Creating Firewall Rule for VPN Traffic

1. At SmartDashboard window, select the **Firewall** tab.
2. Select **Policy** to add a new rule.

<img src="https://mintcdn.com/aviatrix-14b37c43/1zOMu4WXCFpEtXhJ/images/guides/connectivity/vpn/firewall-one.png?fit=max&auto=format&n=1zOMu4WXCFpEtXhJ&q=85&s=6dd5691649cfe95813d3ca6d4920cce7" alt="image21" width="1914" height="642" data-path="images/guides/connectivity/vpn/firewall-one.png" />

| **Field**  | **Value**                                     |
| ---------- | --------------------------------------------- |
| VPN        | Select the Meshed VPN Community created above |
| Install On | Select Check Point Security Gateway           |

3. Click **Install Policy** to push the firewall policy to the Check Point
   Security Gateway.

<img src="https://mintcdn.com/aviatrix-14b37c43/1zOMu4WXCFpEtXhJ/images/guides/connectivity/vpn/firewall-two.png?fit=max&auto=format&n=1zOMu4WXCFpEtXhJ&q=85&s=daf5f73437c67f22208776536234dc85" alt="image22" width="1917" height="250" data-path="images/guides/connectivity/vpn/firewall-two.png" />

### Troubleshooting and Verifying at Check Point Security Gateway

1. At SmartDashboard window, from **SmartConsole** dropdown list, select
   **SmartView Monitor**.

<img src="https://mintcdn.com/aviatrix-14b37c43/1zOMu4WXCFpEtXhJ/images/guides/connectivity/vpn/cpmonitor-one.png?fit=max&auto=format&n=1zOMu4WXCFpEtXhJ&q=85&s=d95068087231f43aea506e7701519f16" alt="image23" width="1670" height="420" data-path="images/guides/connectivity/vpn/cpmonitor-one.png" />

2. At the SmartView Monitor window, select **VPNs** from **Gateway Status** and
   verify **Encrypted Traffic**.

<img src="https://mintcdn.com/aviatrix-14b37c43/1zOMu4WXCFpEtXhJ/images/guides/connectivity/vpn/cpmonitor-two.png?fit=max&auto=format&n=1zOMu4WXCFpEtXhJ&q=85&s=05d3a79ea252048fdaf8583d6ee6b5b7" alt="image24" width="1913" height="1023" data-path="images/guides/connectivity/vpn/cpmonitor-two.png" />

### Verifying the Connection Status

In CoPilot, go to the Diagnostics > Cloud Routes > External Connections tab to
confirm the Status and Tunnel Status of the external connection.

### Troubleshooting

You can use the Diagnostic Tools (under Diagnostics in the left navigation menu)
to troubleshoot any connection issues.

For support, please open a support ticket at
[Aviatrix Support Portal](https://support.aviatrix.com).

## Related Topics

* [About External Connection Settings](https://legacy.docs.aviatrix.com/documentation/latest/network/externaldevice-settings.html)
