Set up an IPsec tunnel for your private network

IPsec builds a two-way, encrypted site-to-site tunnel between your private network's dedicated gateway and a VPN concentrator on your side, your corporate network or a cloud VPC. Once the tunnel is up, traffic between the two networks is encrypted and authenticated, so SIMs can reach resources on your network and your network can reach SIMs.

For the private network architecture and WireGuard setup, see Private networks and WireGuard setup.

Overview

Most IoT use cases use an application server with a public IP address so devices can push data over the public internet. A GPS tracker sending location to a server every five minutes is a typical example.

Some scenarios call for a private connection instead. IPsec tunnels connect your corporate or cloud network directly to the subnet used by your SIM cards.

In the setup below, SIM cards can reach anything on the internet as well as private resources inside your network.

Blog Image

It is also possible to route all SIM traffic through the tunnel, letting you run your own internet gateway and control all inbound and outbound traffic.

Blog Image

Set up an IPsec tunnel

Before configuring the tunnel, deploy your private network and have a VPN concentrator ready. The basic steps are:

  1. Deploy a private network. See Private networks and WireGuard setup.

  2. Deploy a VPN concentrator in your corporate or cloud network with a public IP address. Simbase recommends pfSense if you don't already run one.

  3. Configure the IPsec tunnel in the Simbase dashboard.

  4. Configure the IPsec tunnel on your VPN concentrator to match.

Test the tunnel in a lab environment before using it in production. The exact steps depend on your concentrator's make and software, consult its documentation, and consider involving a network engineer for larger or more complex setups.

Configure IPsec (Simbase dashboard)

General

Setting
  • Key exchange version

  • Simbase IP address

  • Remote IP address

  • Pre-shared key

Phase 1 (Key exchnage)

Setting
  • Encryption algorithm

  • Hash algorithm

  • DH group key

  • Lifetime

  • Dead peer detection

Phase 2 (Data session)

Setting
  • SIM network

  • Remote network

  • ESP

  • Encryption algorithm

  • Hash algorithm

  • DH group key

  • Lifetime

Configure IPsec (your side)

How you configure IPsec on your side depends on your concentrator. The demo below walks through the process in pfSense.

What concentrators can I use?Any concentrator that supports standard IPsec, including Cisco ASA, Palo Alto, and Fortinet, will work.
Set up an IPsec tunnel for your private network