Project

General

Profile

NAT Traversal (NAT-T) » History » Version 3

Version 2 (Martin Willi, 02.07.2007 15:20) → Version 3/13 (Andreas Steffen, 23.07.2009 07:51)


h1. NAT Traversal



h2. IKEv1

NAT discovery and traversal must be enabled by setting *nat_traversal=yes* in the *config setup* section of *ipsec.conf*. Otherwise strongSwan's IKEv1 pluto daemon will not accept incoming IKE packets with a UDP source port different from 500.



h2. IKEv2



The IKEv2 protocol includes NAT traversal in the core standard, but it's optional to implement. strongSwan implements it, and there is no configuration involved. The NAT_DETECTION_SOURCE/DESTINATION_IP notifications included in IKE_SA_INIT indicates the peers NATT capability and if a NAT situation is detected, UDP encapsulation is activated for IPsec.


strongSwan starts sending keep-alive packets keep alive packet if it is behind a NAT router to keep the mappings on the NAT device intact. in tact.