Fortinet IPSec VPN NAT Traversal Technical Tips and Best Practices

Technical Tip

Technical Tip IPSec VPN NAT traversal Fortinet Community
Technical Tip IPSec VPN NAT traversal Fortinet Community

DescriptionThis article describes the NAT traversal options available under the phase 1 settings of an IPsec tunnel.ScopeFortiGate.SolutionNetwork Address Translation ( NAT ) is a way to convert private IP addresses to publicly routable Internet addresses and vice versa. When an IP packet passes throu...

How NAT traversal works
How NAT traversal works

This extra encapsulation allows NAT devices to change the port number without modifying the IPsec packet directly. To provide the extra layer of encapsulation on IPsec packets, the Nat-traversal option must be enabled whenever a NAT device exists between two FortiGate VPN peers or a FortiGate unit and a DialUP client such as FortiClient.

IPSec Over NAT

Hướng dẫn cấu hình VPN Site to Site trên router Cisco đứng sau NAT
Hướng dẫn cấu hình VPN Site to Site trên router Cisco đứng sau NAT

Generally speaking as long as NAT gateway out of your control (e.g. the ISP's) has a ESP ALG enabled, this should be good. If not, you might have difficulty if more than one client tries to establish an IPSec VPN behind the same network. If SSL VPN dial-in is an option, it tends to be a lot more NAT friendly.

So, they are expecting us to NAT our traffic and hide the private addresses behind our public IP addresses. I basically need to accomplish this setup: Private IP --> NAT --> Public IP --> TUNNEL --> Public IPSec Gateway --> Public Endpoint I feel like I am misunderstanding the policy that the VPN wizards created.

How can I disable enable NAT traversal in VPN settings
How can I disable enable NAT traversal in VPN settings

Fixing IPSec Tunnels with NAT Traversal (NAT

Conclusion NAT Traversal (NAT-T) is essential in modern IPSec VPNs , especially when NAT or PAT is involved between peers. By encapsulating ESP in UDP packets, NAT-T ensures tunnel reliability, even when public addresses are being translated. Understanding how to troubleshoot and configure NAT-T can save hours of frustration and restore full routing and VPN functionality across your IPSec ...

This creates a routing conflict, making a standard IPSec VPN unusable without additional design. On FortiGate Firewall, the recommended approach is to use IPSec VPN with NAT (IP Pool / Virtual IP) to translate one side of the network into a non-overlapping subnet.

How to Configure IPsec Site to Site VPN Between FortiGate and PfSense
How to Configure IPsec Site to Site VPN Between FortiGate and PfSense

How to Integrate IPSec VPN with NAT on FortiGate

Learn how to configure, test, and troubleshoot IPSec VPN with NAT on FortiGate, a network security appliance that encrypts and translates your network traffic.

Here the remote gateway is the Fortigate unit in Site A - VPN -GW-Site-A (10.10.50.2/24). And the IPSec phase is configured as the picture below which is exactly same as Site A with difference in IP address configuration only.

VPN IPsec NAT transversal NAT T
VPN IPsec NAT transversal NAT T

FortiGate Site

Learn how to configure site-to-site IPsec VPN between two FortiGate firewalls, where one FortiGate is behind a NAT device.

How NAT Traversal in VPNs GeeksforGeeks
How NAT Traversal in VPNs GeeksforGeeks
What Is NAT Traversal In Cloud VPN Network Security Cloud Stack
What Is NAT Traversal In Cloud VPN Network Security Cloud Stack
Dynamic DNS and NAT Traversal SoftEther VPN Project
Dynamic DNS and NAT Traversal SoftEther VPN Project
NAT Traversal Guide What Why and How RapidSeedbox
NAT Traversal Guide What Why and How RapidSeedbox
AskF5
AskF5
How To Enable Nat Traversal In Fortigate Firewall Dibujos Cute Para
How To Enable Nat Traversal In Fortigate Firewall Dibujos Cute Para
Nat Traversal バッファロー
Nat Traversal バッファロー
Simplifying NAT Traversal Concept for VPN IPSec With Packet Flow
Simplifying NAT Traversal Concept for VPN IPSec With Packet Flow
Demystifying NAT Traversal In IPSEC VPN With Wireshark 44 percent OFF
Demystifying NAT Traversal In IPSEC VPN With Wireshark 44 percent OFF

Learn how to configure a secure IPsec VPN on FortiGate for remote users using FortiClient. Includes users, groups, IP pools, Phase 1/2 settings, policies, and split/full tunnel options.