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
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
- IPsec on WikipediaA clear overview of the protocols, modes and history behind IPsec.
- RFC 7296: IKEv2The official standard for the key exchange used by modern IPsec tunnels, for technical readers.
- OPNsense VPN documentationHow IPsec tunnels are configured on an OPNsense firewall, with examples.
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