The nat traversal command enables NAT traversal.
The undo nat traversal command disables NAT traversal.
By default, the NAT traversal is enabled.
Usage Scenario
In practice, if the initiator is located on a private network and the responder is located on the public network side. To ensure that an IPSec tunnel can be set up when the NAT device exists, NAT traversal needs to be configured.
NAT traversal allows ESP packets to pass through the NAT gateway during IKE negotiation.
Precautions
If NAT traversal is enabled, the IPSec proposal (ipsec proposal) supports only ESP.