Question

Difficulty: MediumVirtual Private Networks and Remote Access Security

A network security administrator is troubleshooting a remote access IPsec VPN deployment across a router performing Network Address Translation (NAT). During testing, site-to-client connections configured to use IPsec Authentication Header (AH) fail to establish, whereas connections configured to use Encapsulating Security Payload (ESP) succeed. Which of the following best explains why IPsec AH fails when passing through a NAT device?

  1. AH includes the outer IP header fields when calculating its integrity checksum, causing header modifications made by NAT to invalidate the packet authentication.Answer
  2. B
    AH relies exclusively on TCP port 443 for packet transport, which prevents the NAT device from creating dynamic translation table entries.
  3. C
    AH operates at the Data Link layer (Layer 2) of the OSI model, making it incompatible with Layer 3 network address rewriting.
  4. D
    AH defaults to using UDP port 22 for secure authentication, which is systematically dropped by standard NAT-enabled firewalls.

Answer

IPsec Authentication Header (AH) calculates its integrity checksum over the outer IP header fields, so Network Address Translation (NAT) modifications cause authentication verification failure at the receiving endpoint.
IPsec Authentication Header (AH) provides connectionless integrity and authentication by calculating an Integrity Check Value (ICV) over the entire IP packet, including mutable fields such as the source and destination IP addresses in the outer header. When Network Address Translation (NAT) modifies the IP header, the ICV check fails at the receiver. In contrast, Encapsulating Security Payload (ESP) does not include the outer IP header in its ICV calculation, enabling compatibility with NAT Traversal (NAT-T).

Step-by-Step Solution

1
Analyze how IPsec Authentication Header (AH) operates
AH provides data integrity and origin authentication by computing an Integrity Check Value (ICV) across the entire packet, including IP header fields.
Understanding ICV coverage scope is essential to evaluating packet modifications.
2
Examine the impact of Network Address Translation (NAT)
NAT alters source or destination IP addresses in the outer IP header.
Modifying IP header values changes the checksum input fields.
3
Correlate packet alteration with ICV verification failure
The receiver recalculates the ICV upon packet arrival; because NAT altered the IP address, the calculated ICV does not match the transmitted ICV, causing packet rejection.
This explains why AH fails through NAT while ESP (which excludes outer IP header fields from ICV calculation or uses UDP encapsulation for NAT-T) succeeds.

Key Concept

IPsec Authentication Header (AH) vs Encapsulating Security Payload (ESP) NAT Traversal Compatibility
Rate this question