Octet

What are proxy IDs or traffic selectors, and why must the crypto ACLs mirror each other?

Show the answer

Say this first

Proxy IDs (IKEv1) or traffic selectors (IKEv2) are the local and remote networks, and optionally the protocol and ports, that a phase 2 SA protects. Each side proposes them from its own policy and the other side must accept them. If my ACL says 10.1.0.0/24 to 10.2.0.0/24, the peer's must say 10.2.0.0/24 to 10.1.0.0/24, a mirror image. A mismatch leaves phase 1 up and phase 2 failing.

Go deeper

Mirrored crypto ACLs

Cisco IOS
! R1 (HQ)
ip access-list extended VPN-TRAFFIC
 permit ip 10.1.0.0 0.0.0.255 10.2.0.0 0.0.0.255
! R2 (branch)
ip access-list extended VPN-TRAFFIC
 permit ip 10.2.0.0 0.0.0.255 10.1.0.0 0.0.0.255

Rules

  • Each permit line becomes its own SA pair.
  • Avoid permit ip any any in a crypto map ACL: it tries to encrypt everything leaving the interface, including internet traffic.
  • A route-based peer proposes 0.0.0.0/0 to 0.0.0.0/0. A policy-based peer must be configured to match.

Names by vendor

PlatformTerm
Cisco IOScrypto ACL, proxy identities
Palo AltoProxy ID on the IPsec tunnel
FortiOSphase 2 selectors
Junosproxy-identity or traffic-selector

Traps

  • Saying the ACLs must be identical. They must be mirror images, source and destination swapped.
How did you do?Book 8.5 Example Systems