> Source: [sk176249](https://support.checkpoint.com/results/sk/sk176249)

# sk176249 - How to configure IPsec VPN between Check Point Security Gateways and Azure Virtual WAN VPN Gateway

| Property | Value |
|----------|-------|
| Solution ID | sk176249 |
| Date Created | 2021-11-11 |
| Last Modified | 2026-05-04 |
| Technical Level | General |
| Products | Cloud Firewall |
| Versions | R82.10, R81 (EOS), R81.10 (EOS), R81.20, R82 |
| OS | Gaia |

## Solution

**Table of Contents**

* 1. Introduction
* 2. Lab Diagram
* 3. Create new Virtual WAN site
* 4. Check Point Gateway VPN configuration
* 5. BGP and Routemap Configuration
* 6. Gateway Interfaces
* 7.Check Point HA Cluster - Virtual WAN Configuration
* 8. Verification
* 9. Related documentations  
  10. How to route all internet bound traffic over VPN tunnel

<br />

Introduction {#Introduction}
----------------------------

Azure Virtual WAN is a networking service that brings many networking, security, and routing functionalities together to provide a single operational interface. These functionalities include branch connectivity, Site-to-site VPN connectivity, remote user VPN (Point-to-site) connectivity, private (ExpressRoute) connectivity, intra-cloud connectivity (transitive connectivity for virtual networks), VPN ExpressRoute inter-connectivity, routing, Azure Firewall, and encryption for private connectivity.

The Virtual WAN architecture is a hub and spoke architecture with scale and performance built-in for branches (VPN/SD-WAN devices), users (Azure VPN/OpenVPN/IKEv2 clients), ExpressRoute circuits, and virtual networks. It enables global transit network architecture, where the cloud-hosted network 'hub' enables transitive connectivity between endpoints that may be distributed across different types of 'spokes'.  

This guide provides step by step configuration of VPN from Check Point security gateway to Azure Virtual WAN.

![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/Picture1202111081552212.png)

Lab Diagram {#Lab Diagram}
--------------------------

![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/p1202111081629271.png)

Create new Virtual WAN site {#Create new vWAN site}
---------------------------------------------------

1. **Create Hong Kong site**

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/2202111081631191.png)
2. **Link details**

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/3202111081632162.png)
3. **Download the Hong Kong site VPN configuration**

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/4202111081634121.png)
4. **Break down of the Hong Kong VPN configuration file**

   1. Virtual WAN VPN Gateway address

      ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/22202111081636221.png)
   2. Virtual WAN BGP setting

      ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/33202111081636392.png)
   3. Pre-share key and IPSEC setting  
      ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/34202111081636543.png)

5. **Modify the Site to Site VPN configuration**

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/1212202111081639571.png)

Check Point Security Gateway IPSec VPN configuration {#Check Point Gateway VPN configuration}
---------------------------------------------------------------------------------------------

1. Create 2 x interoperable devices, 1 for each Virtual WAN VPN Gateway

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/123202111081643511.png)

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/124202111081644202.png)
2. Create VPN Community

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/133202111081646473.png)

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/134202111081648441.png)

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/135202111081649112.png)

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/136202111081650033.png)

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/137202111081650224.png)

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/138202111081650385.png)

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/139202111081650526.png)

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/140202111081651077.png)

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/141202111081651528.png)

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/142202111081652099.png)
3. Hong Kong gateway configuration

   1. Site Details

      |-----------------|---------------|
      | GW IP           | 44.235.95.65  |
      | Internal Subnet | 10.157.2.0/24 |
      | vpnt1           | 100.64.220.1  |
      | vpnt2           | 100.64.220.1  |
      | ASN             | 64512         |

   2. Gateway Properties

      ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/bb202111081659381.png)
   3. Set encryption domain with empty network object group.

      Note: If you already had a VPN domain configured, you can keep your current configuration. But make sure that hosts and networks that you want to use, or served by, the new VPN connection will not be declared in the VPN domain, particularly if the VPN domain is automatically derived ("Based on Topology information").
   4. Link Selection

      You need to do this step only if gateway is NAT behind an IP address such as Azure HA Clusters. If gateway already has routable IP on it is external interface then you can skip this step.
      1. Set statically NATed IP

      2. Outgoing Route Selection -\> Setup -\> Manual -\> Select external interface

         ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/outgoing_int202111081702402.png)
4. Creating firewall rules (required when specifying a community inside the VPN column):

   Open Global Properties, and navigate to VPN \> Advanced.

   Check the "Enable VPN Directional Match in VPN Column" checkbox.

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/vpn_adv202111081705393.png)

   For every firewall rule related to VPN traffic, add the following directional match rules in the VPN column:
   * Internal_clear \> VPN community
   * VPN community \> VPN community
   * VPN community \> Internal_clear

   To create a directional match rule, right-click the VPN cell for the rule and click "Edit Cell". In the VPN Match Conditions window, choose "Match traffic in this direction only". To add directions, click "Add".

   **Note**: Globally enabling directional match rules in SmartConsole will not affect previously configured and functioning VPN rules. Those will continue to function as expected.

BGP and Routemap Configuration {#BGP and Routemap Configuration}
----------------------------------------------------------------

Refer to Hong Kong site details and vpn site configuration file for details

10.250.0.12 = Virtual WAN BGP peering address

10.250.0.13 = Virtual WAN BGP peering address

<br />

|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `set as 64512` `set router-id 100.64.220.1` `set bgp ecmp on` `set bgp external remote-as 65515 on` `set bgp external remote-as 65515 export-routemap "ex_azure" preference 10 on` `set bgp external remote-as 65515 import-routemap "im_azure" preference 10 on` `set bgp external remote-as 65515 peer 10.250.0.12 on` `set bgp external remote-as 65515 peer 10.250.0.12 ip-reachability-detection on` `set bgp external remote-as 65515 peer 10.250.0.12 ip-reachability-detection check-control-plane-failure on` `set bgp external remote-as 65515 peer 10.250.0.13 on` `set bgp external remote-as 65515 peer 10.250.0.13 ip-reachability-detection on` `set bgp external remote-as 65515 peer 10.250.0.13 ip-reachability-detection check-control-plane-failure on` |

<br />

### Export

|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| set routemap ex_azure id 9 on set routemap ex_azure id 9 restrict set routemap ex_azure id 9 match protocol static set routemap ex_azure id 9 match network 0.0.0.0/0 exact set routemap ex_azure id 10 on set routemap ex_azure id 10 allow set routemap ex_azure id 10 match protocol static |

### Import

|----------------------------------------------------------------------|
| `set routemap im_azure id 10 on` `set routemap im_azure id 10 allow` |

### Tunnel Interface

|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `add vpn tunnel 1 type numbered local 100.64.220.1 remote 10.250.0.12 peer vwan01 ` `add vpn tunnel 2 type numbered local 100.64.220.1 remote 10.250.0.13 peer vwan02` `set interface vpnt1 state on ` `set interface vpnt1 mtu 1500 ` `set interface vpnt2 state on ` `set interface vpnt2 mtu 1500` |

**Note** : Please make sure the Azure VPN Gateway name matches the Interoperable device name in SmartConsole. In this case vwan01 and vwan02 are the names we used for both VTI tunnel peers and interoperable device names inside the VPN community.   

<br />

Gateway Interfaces {#Gateway Interfaces}
----------------------------------------

1. Create Required VPN Access Rules

2. Update Gateway Interfaces

   1. Get interface with topology to detect vpnt1 and vpnt2

      ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/topo202111081722351.png)
   2. vpnt1 details

      ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/vpnt1202111081723212.png) ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/vpnt1_2202111081723503.png)
   3. vpnt2 details

      ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/vpnt2202111081725084.png)![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/vpnt2_2202111081725335.png)
   4. Install Policy

Check Point HA Cluster - Virtual WAN Configuration {#Check Point HA Cluster - vWAN Configuration}
-------------------------------------------------------------------------------------------------

![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/cluster_diagram202111081936042.png)

### Virtual WAN Hub VPN Gateway Configuration

![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/vwan_vpn_cluster202111081946201.png)

All other configuration remain the same, follow Virtual WAN steps above

### Check Point HA Cluster Configuration

1. BGP import and export route map (FW01 and FW02)  

   |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
   | `- Import` `set routemap im_azure id 10 on` `set routemap im_azure id 10 allow` `- Export` `set routemap ex_azure id 9 on` `set routemap ex_azure id 9 restrict` `set routemap ex_azure id 9 match protocol static` `set routemap ex_azure id 9 match network 0.0.0.0/0 exact` `set routemap ex_azure id 10 on` `set routemap ex_azure id 10 allow` `set routemap ex_azure id 10 match protocol static ` |

   <br />

   <br />

2. BGP Config (FW01 and FW02)  

   |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
   | `set as 64512` `set router-id 10.250.0.1` `set bgp ecmp on` `set bgp external remote-as 65515 on` `set bgp external remote-as 65515 export-routemap "ex_azure" preference 10 on` `set bgp external remote-as 65515 import-routemap "im_azure" preference 10 on` `set bgp external remote-as 65515 peer 10.1.0.12 on` `set bgp external remote-as 65515 peer 10.1.0.12 ip-reachability-detection on` `set bgp external remote-as 65515 peer 10.1.0.12 ip-reachability-detection check-control-plane-failure on` `set bgp external remote-as 65515 peer 10.1.0.13 on` `set bgp external remote-as 65515 peer 10.1.0.13 ip-reachability-detection on` `set bgp external remote-as 65515 peer 10.1.0.13 ip-reachability-detection check-control-plane-failure on` |

   <br />

   <br />

3. VTI interface (FW01)  

   |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
   | `add vpn tunnel 1 type numbered local 10.250.0.2 remote 10.1.0.12 peer vwan01` `add vpn tunnel 2 type numbered local 10.250.0.2 remote 10.1.0.13 peer vwan02` `set interface vpnt1 state on ` `set interface vpnt1 mtu 1500 ` `set interface vpnt2 state on ` `set interface vpnt2 mtu 1500` `save config` |

   <br />

   **Note** : Make sure the Azure VPN Gateway name matches the Interoperable device name in SmartConsole. In this case vwan01 and vwan02 are the names we used for both VTI tunnel peer and interoperable device names inside the VPN community.   

4. VTI interface (FW02)  

   |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
   | `add vpn tunnel 1 type numbered local 10.250.0.3 remote 10.1.0.12 peer vwan01` `add vpn tunnel 2 type numbered local 10.250.0.3 remote 10.1.0.13 peer vwan02` `set interface vpnt1 state on ` `set interface vpnt1 mtu 1500 ` `set interface vpnt2 state on ` `set interface vpnt2 mtu 1500` `save config` |

   <br />

   **Note** : Please make sure the Azure VPN Gateway name matches the Interoperable device name in SmartConsole. In this case vwan01 and vwan02 are the names we used for both VTI tunnel peer and interoperable device names inside the VPN community.   

5. Cluster Interfaces  

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/cluster1202111081956231.png)  

6. Set encryption domain with empty network object group  

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/enc202111081956422.png)  

7. Cluster Link Selection  

   You need to do this step only if gateway is NAT behind an IP address such as Azure HA Clusters. If gateway already has routable IP on it's external interface then you can skip this step.  

   a. Set statically NATed IP  
   b. Outgoing Route Selection -\> Setup -\> Manual -\> Select external interface  

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/link_selection202111082001131.png)  

8. All other configurations are the same as single gateway

<br />

<br />

<br />

Verification {#Verification}
----------------------------

1. VPN status with "vpn tu" command

   1. Phase 1

      ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/phase1202111082006172.png)
   2. Phase 2

      ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/phase2202111082007241.png)
2. BGP Peers

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/bgppeers202111082008162.png)
3. Routes (updated 09/24)

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/showroute202409131537421.png)
4. From FW1

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/fw1202111082010284.png)  
   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/fw1_2202111082010475.png)
5. After failover from FW1 to FW2

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/failover1202111082012111.png)

   ![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk176249/failover2202111082012482.png)

   <br />

   Related documentations: {#Related documentations}
   -------------------------------------------------

   * [R80.10 VPN Site to Site Administration Guide](https://sc1.checkpoint.com/documents/R80.10/WebAdminGuides/EN/CP_R80.10_SitetoSiteVPN_AdminGuide/html_frameset.htm) \> Getting Started with Site-to-Site VPN
   * [Site to Site VPN R81 Administration Guide](https://sc1.checkpoint.com/documents/R81/WebAdminGuides/EN/CP_R81_SitetoSiteVPN_AdminGuide/Default.htm) \> Getting Started with Site-to-Site VPN
   * [sk100726 - How to configure IPsec VPN tunnel between Check Point Security Gateway and Amazon Web Services VPC using static routes](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk100726)

   <br />

How to route all internet bound traffic over VPN tunnel:
--------------------------------------------------------

<br />

Azure VPN gateways advertise default route 0.0.0.0/0 via BGP to Check Point gateways. Our default BGP route rank is set to 170 and our default route rank is set to 1, lower rank number has higher priority over BGP route. In order to route all internet traffic over the VPN tunnel we need to set our gateway default gateway rank to 171 so BGP route takes precedence. However, we first need to ensure Azure VPN Gateway IP address and any services that should not be routed over the VPN tunnel has a static route to existing default gateway.  

<br />

<br />

1. Set static route for Azure VPN Gateway address  

set static-route \<AZ VGW1 IP/32\> nexthop gateway address \<Default GW IP\> on  
set static-route \<AZ VGW2 IP/32\> nexthop gateway address \<Default GW IP\> on  
save config  

2. Set gateway default route rank to 171  

set default route rank to 171  
save config  

3. Validate

<br />

r8110vpngw\> show route all  
Codes: C - Connected, S - Static, R - RIP, B - BGP (D - Default),  
O - OSPF IntraArea (IA - InterArea, E - External, N - NSSA),  
A - Aggregate, K - Kernel Remnant, H - Hidden, P - Suppressed,  
NP - NAT Pool, U - Unreachable, i - Inactive  
B 0.0.0.0/0 via 192.168.0.12, vpnt1, cost None, age 677569  
via 192.168.0.13, vpnt2  
B i 0.0.0.0/0 via 192.168.0.13, vpnt2, cost None, age 770672  
S i 0.0.0.0/0 via 10.15.15.1, eth0, cost 0, age 1385696  

<br />

<br />

Big thanks to Chris Suri from Sapphire.net, Dan Morris and Christian Castillo from Check Point that contributed to this SK.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
