Internet Protocol Security tunnelling is a way of carrying network traffic inside an encrypted and authenticated IPsec connection between two endpoints. It protects packets in transit by encapsulating them, often to link sites, remote users or gateways across untrusted networks. It is commonly used with security associations, keys and policy rules.
How IPsec Tunneling Works
IPsec tunneling wraps original packets inside a protected outer packet so traffic can traverse untrusted networks without exposing the inner payload. The endpoints negotiate security associations and apply the agreed cryptographic and policy settings before user traffic is carried.
This model is most often used for site-to-site links and remote access because it creates a controlled, policy-driven path between two security domains. At the protocol level, the important idea is not just encryption, but also integrity, peer authentication, and an explicit trust relationship between endpoints.
For the transport mechanics and protocol parameters themselves, the authoritative registry context is maintained by IANA, while the standards work that defines IPsec and its supporting protocols comes from the IETF.
Security Properties and Trust Boundaries
IPsec tunneling is valuable because it protects traffic in motion across networks that are not trusted end to end. When configured well, it can preserve confidentiality, integrity and peer authentication while allowing sites, users or gateways to communicate as though they were on a private path.
The trust boundary shifts to the tunnel endpoints, which become the points where policy, keys and traffic-selection rules matter most. That means the security of the tunnel depends not only on the crypto, but on which systems are allowed to form the tunnel, what routes or selectors are accepted, and how the endpoints are administered.
In practice, IPsec is often part of a broader network security architecture rather than a stand-alone control. A useful comparison point is the broader networking guidance in Network Ports and Protocols Security Guide, which helps place ESP, IKE and related protocol exposure in the wider context of exposed services and insecure alternatives.
Typical Deployment Patterns
Most deployments fall into a small set of patterns: site-to-site tunnels between gateways, remote-access tunnels for users, and hub-and-spoke topologies where a central gateway brokers protected access. Each pattern changes the operational burden, but the same core controls still apply: endpoint authentication, key management, policy alignment and monitoring.
Organizations also need to think about where traffic is actually terminating. A tunnel may protect packets in transit, yet the inner traffic can still be exposed once it reaches the receiving endpoint, so endpoint hardening and segmentation remain important. That is why many teams treat IPsec as one layer in a defense-in-depth design, not as a replacement for internal access control.
Where IPsec is used for remote connectivity, the broader VPN design matters as much as the tunnel itself. NHIMG’s VPN Security Guide is the natural companion for understanding gateway hardening, split tunnelling choices and VPN-specific exposure.
Configuration, Keying and Operational Monitoring
The real security of an IPsec tunnel depends on correct configuration of the peer relationship, supported algorithms, traffic selectors, lifetimes and rekey behaviour. Weak proposals, stale policies or poor endpoint identity handling can undermine the protection the tunnel is meant to provide.
Operationally, teams should monitor tunnel establishment, rekey events, unexpected peer changes and traffic patterns that suggest overbroad selectors or misrouted flows. In large environments, tunnel sprawl can create blind spots if ownership is unclear or if gateways are left with outdated policy and keys.
For a practical hardening baseline, NHIMG’s IPsec Security Guide covers IKEv2 hardening, algorithm baselines, certificate versus PSK choices, post-quantum considerations and gateway monitoring.
Risk and Threat Considerations
IPsec tunneling reduces exposure on the wire, but it also concentrates trust at the tunnel endpoints. If those endpoints, keys or policies are weak, an attacker can abuse the tunnel as a private path for unauthorized access, lateral movement or traffic concealment.
Failure mechanism: Misconfiguration, weak authentication or compromised keys can let an untrusted peer establish a tunnel, expand its access beyond the intended scope, or persist inside trusted network paths without obvious packet inspection at the outer layer.
Impact: The result can be unauthorized connectivity, hidden command-and-control movement, data exposure across sites, or a false sense of security because encrypted transport obscures inspection unless the endpoints and policies are actively monitored.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-53 Rev 5, CIS Controls v8 and NIST SP 800-57 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | IA-9 — Identification and Authentication (Non-Organizational Users) | IPsec tunnels depend on authenticated peers and trust between network endpoints. |
| SC-8 — Transmission Confidentiality and Integrity | IPsec tunneling protects traffic confidentiality and integrity while packets cross untrusted networks. | |
| SC-23 — Session Authenticity | Tunnel establishment and rekeying rely on authentic, trusted sessions between endpoints. | |
| Recommendation — Enforce authenticated peer relationships for tunnel endpoints and reject unauthenticated connections. Apply SC-8 to protect data in transit across untrusted links with confidentiality and integrity controls. Validate tunnel session authenticity so peers and key exchanges cannot be impersonated. | ||
| CIS Controls v8 | CIS-12 — Network Infrastructure Management | IPsec tunnel security depends on controlled gateway configuration, routing and network boundary management. |
| Recommendation — Harden and monitor tunnel endpoints, routing and boundary devices as managed network infrastructure. | ||
| NIST SP 800-57 | Key Management | IPsec security materially depends on key generation, distribution, rotation and retirement. |
| Recommendation — Manage tunnel keys with defined lifecycle policy, rotation discipline and secure retirement. | ||
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 29, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org