What Is an IPsec VPN?

An IPsec VPN is a virtual private network that uses Internet Protocol Security to protect traffic between devices or networks. IPsec works at the network layer, where data travels in IP packets. In a typical encrypted VPN connection, it helps keep the contents confidential, checks that protected data has not changed in transit, and authenticates the communicating endpoints.

You might encounter IPsec in a work laptop’s connection settings or a router specification. The useful question is what each component does: IKE establishes and manages the security relationship, while ESP protects the traffic. Understanding that division makes labels such as “IKEv2/IPsec” much less mysterious.

Engineer opening a network equipment rack with blue patch cables

Why is IPsec called a suite?

IPsec brings several standards together rather than prescribing one app, subscription or appliance. Different products can implement the same underlying standards. Cloudflare’s IPsec overview explains this group-of-protocols approach. The label alone does not tell you who operates a VPN service or which settings it uses.

If you need the broader concept first, read what a VPN does. Here, the focus is the machinery underneath an IPsec connection: how its peers establish trust, how packets are protected, and why tunnel mode differs from transport mode.

How do IKE and ESP work together?

IKE means Internet Key Exchange. It lets the peers authenticate each other, agree on security parameters and establish keying material. It also manages the relationship over time, including renewing keys. IKEv2 is version two of that protocol. Calling a connection an “IKEv2 VPN” usually refers to an IPsec-based arrangement using IKEv2 for this setup and management work.

ESP means Encapsulating Security Payload. It handles protection of the data packets. An encrypted ESP configuration supplies confidentiality alongside integrity protection. These answer different questions: can an observer read the protected contents, and can the receiver detect unauthorized changes? ESP also supports configurations without encryption, so an administrator must verify the actual policy rather than assume the name guarantees secrecy.

A security association, often shortened to SA, is the agreed security state used for a protected connection. It includes parameters and keys. It is not another subscription or a separate VPN app. A useful mental model is that IKE arranges and maintains the agreement, and ESP applies the agreed protection as data moves.

These roles follow NIST’s Guide to IPsec VPNs, particularly its executive summary and sections 3 and 4. The guide recommends moving away from IKEv1 and using IKEv2 for new deployments. For an actual rollout, administrators also need current vendor guidance and applicable security requirements.

What happens when an IPsec VPN connects?

Consider an employee opening an approved VPN client to reach an internal document service. First, the client and the organization’s gateway establish the security relationship. Authentication helps verify the peers; agreement on compatible settings determines how the protected communication will work. An incompatible configuration can prevent this stage from completing.

Once the connection is established, traffic selected by the VPN policy receives the agreed IPsec protection. The remote endpoint verifies and processes it, then delivers it onward as appropriate. The reverse direction is protected too. This is a conceptual example, not a record of a tested product or a recipe for configuring one.

The protected stretch matters. If the VPN terminates at an office gateway, the IPsec tunnel ends there. Access to the final application still depends on routing, permissions and application security. A connected VPN and a successful application login therefore describe different accomplishments.

Remote worker closing a laptop before leaving a kitchen workspace

How does tunnel mode differ from transport mode?

Tunnel mode encloses the original IP packet. With ESP encryption enabled, the original header and payload are protected inside a new packet. A new outer IP header identifies the tunnel endpoints so the intervening network can deliver it. The network still needs visible addressing information to move the encrypted packet.

Imagine a branch-office computer contacting a server at headquarters. The internal packet describes those two computers. The outer packet describes the branch gateway and headquarters gateway carrying the tunnel. These are different pairs of endpoints. NIST identifies tunnel mode as useful for gateway-to-gateway and remote-access VPNs.

Transport mode keeps the original IP header. ESP protects the payload rather than wrapping the whole original IP packet inside a new one. It is often associated with host-to-host protection, such as communication between machines in a data center. The original addressing remains visible, and there is less overhead from additional IP headers.

NIST’s section 4.1.1 explains these packet layouts. Neither mode should be chosen by guessing which name sounds safer. The network architecture, address translation and supported implementation matter. Tunnel mode also does not mean “all internet traffic”: packet format and the policy selecting traffic are separate decisions.

Where does Authentication Header fit?

Older explanations often list Authentication Header, or AH, alongside ESP. AH provides integrity and authentication without encrypting the contents. NIST’s guide no longer recommends it and describes ESP-based alternatives. You do not need to enable both AH and ESP to make an ordinary encrypted IPsec VPN work.

For a beginner, the practical vocabulary to retain is IPsec for the overall framework, IKE for negotiation and management, ESP for packet protection, and tunnel or transport mode for how the packet is arranged. That is enough to read most introductory documentation without treating every acronym as a separate service.

Two colleagues reviewing Ethernet ports and cables on a network appliance

What should you check before using one?

For a workplace connection, start with the approved instructions and support contact. Confirm the intended client or built-in profile, the organization’s authentication requirements and the resources you are expected to reach. Do not copy shared secrets, certificates or server addresses from an unrelated tutorial, or weaken verification to make an error disappear.

If a connection fails, record the client name, device operating system, exact error and time it occurred. Note whether the tunnel never connects or whether only a particular application fails after connection. Give that information to the responsible support team without including passwords or private keys. This description is more useful than reporting only that “IPsec is broken.”

When evaluating equipment, check the manufacturer’s current documentation for the required IPsec role and compatibility. A product listing that merely mentions VPN support may not describe the capability your network needs. Hardware selection should follow the approved design, rather than determine it.

Related networking supplies

If you are organizing an approved network setup, you can browse Ethernet patch cables on Amazon. These are ordinary networking accessories; buying a cable does not add IPsec support or configure a VPN.

Leave a Reply