👉 Lock down your connection with NordVPN here: NordVPN
You’ll learn what IPsec is, how IKEv2/IPsec protects VPN connections, and where its encryption ends. Understand tunnel vs. transport mode and key privacy limitations so you can read VPN settings with confidence.
Chapters: 0:00 Intro 0:13 What is IPsec, and why do VPNs use it? 1:04 How do IKEv2, ESP, and AH work together? 2:14 IPsec tunnel vs. transport mode 3:15 What can’t an IPsec VPN protect you from? 4:25 Outro
Affiliate notice: Some links may earn a commission. Thanks for your support.
Key Takeaways
IPsec is a network-security framework, not a VPN itself. It can protect IP traffic with encryption, integrity checks, authentication, and replay protection, but configuration determines which protections apply.
IKEv2 sets up security; ESP protects traffic. AH does not encrypt, and ESP can operate without encryption, so an “IPsec enabled” label alone does not guarantee confidentiality.
Tunnel mode protects the inner packet; transport mode leaves the original IP header visible. Neither determines which apps use the VPN, that is a full- versus split-tunneling decision.
VPN encryption ends at the VPN endpoint, not necessarily the website. Keep using HTTPS for separate browser-to-website protection.
A VPN reduces network visibility, not all tracking. Your ISP can still see VPN connection metadata, websites can recognize logins and cookies, and the VPN provider becomes another party you must trust.
Check routing, DNS, IPv4/IPv6 coverage, and kill-switch behavior. A “connected” status does not prove every app or network path is protected. The NIST Guide to IPsec VPNs explains deployment considerations.
👉 Put connection-level privacy into practice with NordVPN to encrypt VPN-routed traffic and mask your public IP, an added privacy layer, not complete anonymity or a replacement for HTTPS.
What Is IPsec?
IPsec stands for Internet Protocol Security. It is a suite of standards that protects data traveling across IP networks. It works at the network layer, where devices exchange small bundles of data called IP packets.
Because IPsec operates at this layer, it can protect traffic from multiple applications without requiring each app to implement its own network-security system. It is commonly used to secure virtual private network connections, including remote-work connections, links between offices, and consumer VPN services.
However, IPsec and VPN are not interchangeable terms:
Some links may earn a commission. Thanks for your support.
Watch in the video playerOpen the dedicated player for this video.
A VPN is a network arrangement that connects devices or networks over another network.
IPsec is one technology that can secure that connection.
IPsec is also a framework, not a single encryption algorithm or a particular VPN product. Its actual protection depends on the protocols, algorithms, and policies configured.
How IPsec Protects Network Traffic
Ordinary IP networking does not, by itself, provide cryptographic protection against someone reading or modifying traffic. IPsec can add several protections:
Protection
What it does
Encryption
Makes protected contents unreadable to someone without the necessary keys.
Integrity checking
Detects unauthorized changes to protected data.
Authentication
Helps verify the communicating peers or the source of protected packets.
Replay protection
Helps reject captured packets that an attacker tries to send again.
A useful analogy is a protected delivery service: encryption locks the contents, integrity checking reveals tampering, and authentication helps confirm who is sending or receiving the delivery.
But the label “IPsec” does not guarantee every protection is enabled. An IPsec connection is not necessarily encrypted, and its policies determine which traffic receives protection.
If you have seen IKEv2/IPsec in a VPN app, you are looking at a combination of technologies with different jobs.
IKEv2 Sets Up the Secure Connection
IKEv2 means Internet Key Exchange version 2. It handles negotiation, authentication, and key management.
In a typical connection, IKEv2 helps the two endpoints:
Agree on supported security settings.
Authenticate using a method such as certificates or a pre-shared secret.
Establish the keying material needed to protect traffic.
Renew or replace security relationships as needed.
These agreed security relationships are called security associations, or SAs. They describe details such as the algorithms, keys, and traffic covered by protection.
Think of IKEv2 as checking credentials and agreeing on the locks before protected deliveries begin. It does not do the same job as the protocol carrying the protected application traffic.
Older instructions may refer to IKEv1. The IETF formally deprecated IKEv1 in 2023; it should not be treated as equivalent to IKEv2.
ESP Protects the Selected Traffic
ESP stands for Encapsulating Security Payload. In an ordinary IKEv2/IPsec VPN, ESP protects the application traffic after IKEv2 establishes the necessary security relationships.
With suitable settings, ESP provides encryption, integrity checking, authentication of protected data, and replay protection.
For example, ESP can use AES-GCM, which combines encryption and authentication. Here, AES-GCM is the cryptographic mechanism, while IPsec is the broader network-security framework.
Importantly, ESP also supports configurations without encryption. Seeing “ESP” alone is not proof that packet contents are confidential.
AH Checks Authenticity but Does Not Encrypt
AH stands for Authentication Header. It provides integrity checking, data-origin authentication, and replay protection, but not encryption.
That distinction explains why “IPsec is enabled” is not enough information to determine whether someone can read the traffic. You also need to know which IPsec protocol and settings are in use.
How an IKEv2/IPsec VPN Connection Works
Consider an employee opening an internal work website from home:
The laptop contacts the VPN gateway. The endpoints negotiate security parameters and exchange key-establishment information.
The endpoints authenticate. They verify identities using the configured authentication method.
They establish traffic protection. Security associations define how selected packets will be protected.
ESP carries protected traffic. The laptop and gateway encrypt and verify packets according to those settings.
The gateway removes IPsec protection. It forwards the original traffic toward the internal website.
The final step establishes an important boundary: the IPsec protection ends at the IPsec endpoint.
If the internal website uses HTTPS, that separate browser-to-website encryption can remain in place after the VPN gateway removes the IPsec layer.
IPsec Tunnel Mode vs. Transport Mode
Tunnel mode and transport mode describe how IPsec protection is applied to packets. They do not determine whether every app or destination uses the VPN.
Feature
Tunnel mode
Transport mode
Packet structure
Wraps the original IP packet inside a new outer packet.
Protects next-layer traffic within the original IP packet.
With ESP encryption
Encrypts the original packet, including its original IP header.
Encrypts the protected contents but leaves the original IP header visible.
Visible delivery information
The new outer IP addresses remain visible.
The original IP addresses remain visible.
Typical use
Device-to-gateway and gateway-to-gateway VPNs.
Direct computer-to-computer protection and some layered tunneling arrangements.
Tunnel Mode Still Leaves Outer Addresses Visible
Tunnel mode is common when a device connects to a VPN server or when two office gateways connect separate networks.
The original packet travels inside an encrypted wrapper, but routers still need delivery information. The outer packet therefore exposes the addresses used to carry traffic between the tunnel endpoints.
Saying that tunnel mode “encrypts everything” misses this distinction. It protects the inner packet, not every observable detail of the communication.
Transport Mode Is Not Split Tunneling
These terms describe different things:
Transport mode describes the structure of protected packets.
Split tunneling describes which traffic enters the VPN.
A tunnel-mode VPN can use split tunneling. Some destinations or applications may go through the encrypted connection while others connect directly.
Where IPsec VPN Encryption Ends
For a typical consumer VPN, the connection looks like this:
Your device → encrypted VPN tunnel → VPN server → website
The IPsec encryption protects the device-to-VPN-server segment. At the VPN server, that layer is removed before the traffic continues toward its destination.
This is why a VPN tunnel is not automatically end-to-end encryption between you and a website.
HTTPS Provides Separate Protection
HTTPS encrypts the connection between your browser and the website. When you use HTTPS through a VPN, the browser’s encrypted traffic travels inside the VPN tunnel for part of its journey.
After the VPN server removes the VPN layer, HTTPS protection can remain in place all the way to the website.
Keep using HTTPS even when your VPN is connected. A VPN does not replace it.
HTTPS also matters on public Wi-Fi. As the FTC explains, widespread website encryption means public Wi-Fi use is usually safe. A VPN can add connection-level protection; it is not the only thing preventing other people on the network from reading ordinary web content.
What an IPsec VPN Can and Cannot Hide
An encrypted VPN tunnel reduces exposure to observers between your device and the VPN endpoint. It does not make your activity invisible or eliminate the need to trust other parties.
Your ISP Can Still See the VPN Connection
When relevant traffic travels through an encrypted IPsec tunnel, your internet provider generally cannot directly read the protected inner packets.
However, it can still observe information such as:
The VPN endpoint you connect to.
When the connection is active.
Packet timing and sizes.
The volume of traffic transferred.
Traffic that bypasses the VPN does not receive that tunnel’s protection.
The VPN Operator Becomes a Trust Boundary
The VPN server removes the IPsec layer and forwards traffic. That makes the provider’s handling of your connection relevant to your privacy.
Strong encryption does not impose a no-logging policy or establish how an operator uses information. The FTC’s guidance on VPN services emphasizes the importance of understanding the provider and its practices.
A VPN changes who can observe parts of your connection; it does not remove trust from the equation.
Websites Can Still Recognize You
A website may still identify or associate activity with you through:
Account logins.
Cookies.
Tracking pixels.
Browser fingerprinting.
Information you submit directly.
A consumer VPN can make websites see a VPN server’s public IP address instead of your own, depending on how traffic is routed and forwarded. But IPsec itself does not inherently change your public IP address, and changing an address does not erase other identifiers.
IPsec Does Not Fix Malware or Scam Websites
IPsec protects communications in transit. It does not repair a compromised device, secure stored files, or make a recipient trustworthy.
A scam website can receive information over an encrypted connection. Likewise, malware on an endpoint may access information before encryption or after decryption.
Common Uses of IPsec
IPsec is useful beyond consumer browsing privacy.
Remote Access to Company Networks
An employee’s device connects to a company gateway to reach internal applications or files. The encrypted connection protects traffic crossing networks outside the organization’s control.
Access permissions remain separate: establishing a VPN connection does not automatically authorize access to every internal resource.
Site-to-Site VPNs
Gateways connect two networks, such as a branch office and headquarters. The gateways protect traffic on behalf of devices behind them, so each device does not need its own VPN client.
Connections to Cloud Networks
An organization can use IPsec tunnels between a local network and cloud infrastructure. Routing, firewall rules, and application permissions still determine what users can reach.
Direct Protection Between Computers
IPsec can also authenticate devices and protect selected host-to-host communications. These deployments show why IPsec should not be understood solely as a tool for masking an internet-facing IP address.
What to Check in Your VPN Settings
Understanding the acronym is useful, but the configuration determines the protection you actually receive.
Check Which Traffic Uses the VPN
Find out whether the connection uses full or split tunneling.
Full tunneling generally sends all intended internet traffic through the VPN.
Split tunneling sends only selected traffic through it.
Also check DNS handling and IPv4/IPv6 coverage. A connected status does not prove that every DNS query or every network path is protected.
Check What Happens if the Tunnel Disconnects
A kill switch is not guaranteed by the IPsec label. Whether traffic is blocked after a connection failure depends on the VPN client and its enforcement policies.
Look for a clear explanation of whether the app allows traffic to continue outside the tunnel.
Check Authentication and Security Settings
Security depends on authentication, negotiated algorithms, implementation quality, and policy, not merely an impressive encryption-key size.
For managed work connections, use the settings supplied by your organization rather than changing technical options without understanding their purpose.
Understand Mobility and Connection Limits
Some IKEv2 implementations support MOBIKE, an extension that can help a connection adapt when a device moves between networks, such as Wi-Fi and cellular. Support does not guarantee uninterrupted service.
IPsec also adds processing and packet overhead. A tunnel may connect successfully while some transfers still fail because of packet-size or network-path problems. “Connected” is a useful status, not proof that every application is working correctly.
Put Connection-Level Privacy Into Practice
IPsec helps secure a defined path between endpoints. For everyday VPN use, the practical questions are straightforward: which traffic enters the tunnel, where does encryption end, and whom are you trusting?
A VPN service can apply connection-level protection without requiring you to build your own setup. It remains an added privacy layer, not complete anonymity or a replacement for HTTPS and safer browsing habits.
👉 Try NordVPN to encrypt VPN-routed traffic, mask your public IP address, and reduce your connection’s exposure on your phone and computer.
Affiliate notice: Some links may earn a commission. Thanks for your support.
Next
FAQ
Quick answers to the questions people usually ask about this topic.
Which ports does an IKEv2/IPsec VPN use?
IKEv2 typically uses UDP port 500 to establish a connection. When NAT traversal is used, it generally uses UDP port 4500, which can also carry encapsulated ESP traffic. Without UDP encapsulation, ESP uses IP protocol number 50, not port 50. Firewall requirements depend on the deployment; for a work VPN, follow your organization’s configuration guidance.
How can I check whether my traffic is going through an IPsec VPN?
For a consumer VPN, compare your public IP address before and after connecting. A changed address helps confirm that the tested browser connection is using the VPN, but it does not prove that every app, DNS query, or IPv6 connection is protected. Review split-tunneling exclusions, DNS settings, and IPv6 coverage as well. A company VPN may intentionally route only work traffic, leaving your public browsing IP unchanged.
Will using an IPsec VPN slow down my internet connection?
It can. Encryption adds processing work, IPsec adds packet overhead, and routing through a VPN gateway can increase latency. The effect depends on your device, the gateway, and the network path. If the VPN connects but some pages or large transfers stall, packet-size or path issues may be involved, not simply a slow internet connection.
Does an IPsec VPN on my laptop also protect my phone or other Wi-Fi devices?
Usually not. A VPN client on your laptop generally protects only the laptop traffic selected for that connection. Other devices need their own VPN connection unless they are routed through a VPN-configured router or gateway. Even with gateway protection, routing policies determine which traffic enters the tunnel.
Does using incognito mode with an IPsec VPN stop websites from tracking me?
No. Incognito mode mainly limits what your browser retains locally after the session; it does not make you anonymous. A VPN can mask your public IP address for routed traffic, but websites can still recognize account logins, use tracking mechanisms during a session, or associate activity through browser fingerprinting. The two tools address different privacy concerns.
Should I change the IPsec settings on my work VPN for better privacy?
Not without guidance from your IT team. Authentication, encryption, routing, and access policies work together, and changing one setting can break connectivity or weaken protection. Ask which traffic uses the VPN, whether DNS is routed through it, and what happens if the connection drops. A work VPN is designed to meet your organization’s security requirements, not necessarily to provide private personal browsing.
How can I put VPN privacy protections into practice without configuring IPsec myself?
A VPN service can handle connection setup through an app rather than requiring you to configure a gateway manually. As a practical next step, consider NordVPN to encrypt VPN-routed traffic and show websites the VPN server’s public IP address instead of your own. Check its routing and connection-failure settings, and keep using HTTPS: a VPN adds connection-level privacy, not complete anonymity.
Affiliate link — I may earn a commission at no additional cost to you.
Jay's Recommendation
Turn privacy knowledge into everyday protection
The series explains online privacy. NordVPN helps you put it into practice with encrypted connections, IP masking, and apps for everyday devices. Reduce network-level exposure without building your own setup. It’s an added privacy layer, not complete anonymity or a replacement for safer browsing habits.
🔒Encrypted connectionsHelp shield VPN-routed traffic from observers on shared Wi-Fi.
👁Less ISP visibilityLimit what your provider can see about browsing carried through the VPN.
🎭Masked public IPShow websites the VPN server’s address instead of your own.
📱Privacy across devicesPut connection-level protection to work on your phone and computer.