What is IPsec?

IPsec is the standard way to build an encrypted VPN tunnel between two networks. Almost every business firewall supports it, which makes it the usual choice for joining offices, and for linking an office to a cloud provider.

See our VPN services Talk to an engineer
Diagram of a head office firewall and a branch office firewall joined by an encrypted IPsec tunnel after both sides authenticate with IKE

What it is

IPsec is a set of internet standards rather than one product. A tunnel is set up in two steps. First the two firewalls use a protocol called IKE to prove who they are, with a shared secret or certificates, and agree on encryption keys. Then every packet that crosses between the networks is encrypted and checked so it cannot be read or changed on the way.

Because it is a standard, a firewall from one maker can usually build a tunnel to a firewall from another, or to Microsoft Azure and Amazon Web Services. For the wider idea, see VPN.

Why it matters to a business

  • Works between brands: OPNsense, pfSense, Cisco, Fortinet and the major clouds all speak IPsec.
  • Always on: a site-to-site tunnel stays up by itself, so staff at a branch never have to connect anything.
  • Cloud links: it is the standard way to connect an office to servers in Azure or AWS.
  • Trade-off: the settings on both ends must match exactly, and some hotel or guest networks block it, so it is less suited to laptops on the move than an SSL VPN or Tailscale.

How this shows up in our work

We build IPsec tunnels between office firewalls and from offices to cloud networks, with modern encryption settings and certificates or long random keys. For links between two firewalls we both manage, we also use WireGuard, which is simpler to run. Our VPN services page explains how we choose.

Related services

VPN services

Site-to-site links and remote access set up and run.

Networking and firewalls

OPNsense pairs, VLANs and site links.

Cloud and hybrid infrastructure

Offices connected to Azure and AWS.

Learn more

Related guides

VPNOPNsensepfSenseCiscoFortinetMicrosoft AzureAmazon Web ServicesSSL VPN

Connecting two offices?

Tell us what firewalls you have at each site. We will design a link that stays up and stays secure.

Start a conversation