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 deployments use an application server with a public IP address, and devices push data out to it over the public internet. A GPS tracker reporting its location every five minutes is the typical case, and it needs no tunnel at all.

IPsec is for deployments that need the opposite: a private path between your own network and the subnet your SIM cards sit on. Once the tunnel is up, SIMs can reach servers you never exposed to the internet, and your network can reach the SIMs.

The Remote network setting in Phase 2 decides how much traffic takes that path. Left at 0.0.0.0/0, everything the SIMs send goes through the tunnel, so your own internet gateway handles their internet access and you control every packet in and out. Set to a specific subnet, only traffic bound for that network uses the tunnel and the rest reaches the internet through Simbase's gateway as normal.

The diagram below shows the 0.0.0.0/0 case, with all SIM traffic routed to the customer network.

Diagram: SIMs on the Simbase private network 10.0.0.0/24 connect over an IPsec VPN to a customer network on 192.168.0.0/24, reaching private servers there, with all internet traffic egressing through the customer's own internet gateway.

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 exchange)

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.

Common questions

Yes. The tunnel terminates on your private network's dedicated gateway, so deploy the network and assign SIMs to it first. See Private networks and WireGuard setup

Black, Green, and Red. IPsec runs on top of a private network, and private networks aren't yet available on Blue and Yellow.

Yes. Tunnels are billed per tunnel, per day, on top of the private network the tunnel connects to. See Billable items.

Any that supports standard IPsec, including Cisco ASA, Palo Alto, and Fortinet. Simbase recommends pfSense if you don't already run one.