SWG Appliance and Cloud Security Integration

Peplink routers can simultaneously form IPsec tunnels with cloud security solutions while forming PepVPN tunnels. In these deployments, the PepVPN tunnels often connect branch offices to the company intranet while IPsec tunnels connect to the cloud security solution before accessing the public Internet.

Configuration Guide


The example outlined below is meant for CloudGuard integration, with the requirements listed below.

  1. There are 60 Remote sites, 1 “Main” site, and 1 Data Center

  2. Remote sites = MAX BR1, Main site = Balance 380, DC = FusionHub

  3. All the Remote sites (MAX BR1) will establish 2 types of tunnels, PepVPN/SpeedFusion to DC (FusionHub) and IPsec to CheckPoint CloudGuard

  4. The PepVPN/SpeedFusion tunnel => Intranet traffic

  5. The IPsec tunnel => Internet traffic


The configuration steps illustrated below will help to redirect all the Internet traffic send to the CloudGuard via IPsec tunnel, while the traffic between the LAN subnets will be forwarded via SpeedFusion tunnel:

  1. Build the PepVPN/SpeedFusion network as usual

  2. Configure the IPsec profile on the MAX BR1 as follow.

  • Instead of defining the default route ( in the IPsec profile, you could define the IPsec - Remote Networks to exclude the Intranet range (eg., an example as below: /5 to /7 to /8 to /6 to /4 to /3 to /2 to /1 to

  1. Note on the CloudGuard

  2. Do check with CloudGuard see if it could allow how many network per IPsec connection, as we found the Zscaler only allows 8-network per IPsec tunnel (shown below).

Traffic Control and Provisioning

These redirections can be orchestrated using outbound policy. First, all traffic is configured to go through the IPsec tunnel (and hence the SWG) by default. Then, exceptions are made for intranet traffic to be sent through the PepVPN tunnels. Traffic through the VPN tunnels can then be orchestrated using outbound policy and firewall rules.

Once the PepVPN tunnels have been established, users can then apply DPI to identify each packet’s application and manage the traffic accordingly. Users can also sort traffic by IP Address, IP Network, Domain Name, PepVPN profile, or network groups. Once the IPsec and PepVPN configurations have been set on one device, uses can use InControl to push this configuration to multiple devices in the network.

Secure Web Gateway Compatibility

The application described here will also work for physical Secure Web Gateways.If the SWG is located on-premise such as in the HQ, then all traffic will head to the HQ via the PepVPN, with a breakout for Public Internet traffic that goes through the hardware SWG.