IPsec VPN FortiGate: Setup, Configuration, and Best Practices
Learn how FortiGate IPsec VPNs work, how to configure them, and how to troubleshoot common connection issues.


An IPsec VPN on a FortiGate creates an encrypted connection between networks or between a user’s device and a private network. FortiGate supports both site-to-site tunnels, which connect offices or cloud networks, and remote-access VPNs for individual users. The right configuration depends on the use case, the peer device, and the FortiOS version, but the core process is to define the tunnel, match cryptographic settings, add routes and firewall policies, and verify traffic in both directions.
Editor's pick: NordVPN — fast, secure VPN — Strong encryption, a no-logs policy and apps for every device. 30-day money-back guarantee. Get NordVPN →
Compare FortiGate IPsec VPN deployment types
| Option | Connects | Best fit | Main requirement | Typical trade-off |
|---|---|---|---|---|
| Site-to-site | Two or more networks | Branch offices | Peer gateways and matching settings | Network-to-network access |
| Remote access | Individual users to a network | Traveling staff | User devices and authentication | Client setup and account management |
| Route-based tunnel | Networks through a virtual interface | Flexible routing | Routes and interface policies | More routing control |
| Policy-based tunnel | Networks matched by security policies | Simpler, fixed traffic flows | Matching traffic selectors | Less routing flexibility |
| Static peer | Gateways with fixed public addresses | Stable connections | Known peer address | Address changes need updates |
| Dynamic peer | Gateway with changing address | Dynamic-address sites | Compatible peer identification | More careful peer configuration |
Compiled November 2026; check the provider's site for current details.
| VPN | Obfuscation | From / month | Plan | Free plan | Refund | Alipay | UnionPay | Crypto | Website opens in China | Trustpilot | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Turn on manually Shadow | $2.49/mo | 27 months: $59.99 | Yes | 7 days | ✓ | ✓ | ✓ | ✓ | Official site blocked; our special link opens (4.4 s) | 4.2/5 (195 reviews) | |
| Turn on manually Obfuscated Servers / NordWhisper | $3.49/mo | 27 months: $94.23 | No | 30 days | ? | ✗ | ✓ | ✓ | ✗ Blocked | 4.2/5 (51,628 reviews) | |
| ✓ On by default all servers | $3.00/mo | 28 months: $84 | No | 30 days | ✗ | ✗ | ✓ | ✗ | ✗ Blocked | 4.4/5 (29,706 reviews) | |
| ✓ On by default Camouflage, with OpenVPN | See site | See site | No | 30 days | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 4.3/5 (31,823 reviews) | |
| Turn on manually Stealth, free plan too | $2.99/mo | 12 months: $35.88 | Yes | 30 days | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 2.1/5 (1,040 reviews) | |
| Turn on manually StealthVPN / OpenWeb | $12.50/mo | 24 months: $300 | No | See site | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 1.3/5 (110 reviews) | |
| Turn on manually Shadowsocks, OpenVPN only | $2.03/mo | 40 months: $81.2 | No | 30 days | ✗ | ✗ | ✗ | ✗ | ✗ Blocked | 4.2/5 (11,033 reviews) | |
| Turn on manually selected servers | $2.19/mo | 28 months: $61.32 | No | 45 days | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 4.0/5 (24,178 reviews) | |
| Turn on manually switch to OpenVPN | $1.69/mo | 60 months: $101.55 | No | 31 days | ? | ? | ✗ | ✓ | ✗ Blocked | 4.4/5 (17,994 reviews) | |
| ✓ On by default TrustTunnel | $2.99/mo | 24 months: $71.76 | Yes | 30 days | ✓ | ✗ | ✓ | ✓ | Official site blocked; our special link opens (3.7 s) | 4.3/5 (290 reviews) | |
| Turn on manually QUIC / Shadowsocks / LWO | $5.61/mo | €5/mo | No | 14 days | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 3.2/5 (192 reviews) | |
| Turn on manually Stealth / WStunnel | $5.75/mo | 12 months: $69 | Yes | See site | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 4.7/5 (13,355 reviews) | |
| Turn on manually Scramble, OpenVPN TCP | See site | See site | No | 30 days | ✓ | ✗ | ✗ | ✗ | ✗ Blocked | 4.4/5 (2,695 reviews) | |
| Not listed | $7.08/mo | 12 months: $84.99 | Yes | 30 days | ✓ | ✓ | ✓ | ✓ | ✓ Yes (3.5 s) | No page |
Prices checked 2026-11-10 on each vendor's pricing page (cheapest long plan, USD). Check the vendor's checkout for the final price.
Obfuscation checked 2026-11-14 on each vendor's site and help center: "on by default" = nothing to set; "turn on manually" = switch protocol or mode in settings; "not listed" = the vendor describes no obfuscation.
Payment methods checked 2026-11-10 on each vendor's payment pages: all 14 take cards and PayPal; ✗ = not listed, ? = the vendor's own pages disagree.
China access: whether the official website opens from mainland China networks (tests the website only, not the VPN connection). Last checked 2026-11-18 01:02 Beijing time.
Trustpilot score and review count checked 2026-11-10.
What a FortiGate IPsec VPN does
IPsec protects IP traffic by authenticating the VPN peers and encrypting data as it crosses an untrusted network. A site-to-site VPN is typically used to connect two LANs, while a remote-access VPN gives a user’s client a secure path into an organization’s network.
FortiGate builds an IPsec tunnel using two negotiation stages:
- Phase 1 (IKE): The peers authenticate each other and establish a secure management channel.
- Phase 2 (IPsec): The peers agree which traffic to protect and establish encryption and integrity keys for that traffic.
In many deployments, IKEv2 is preferred when both peers support it. IKEv1 may still be required for compatibility with older equipment. Use the same IKE version and compatible proposals on both sides.
Choose the right VPN type
Before configuring the appliance, decide which kind of connection you need. The basic tunnel settings can look similar, but addressing, routing, and policies differ. How Can I Tell If a VPN Is Blocking My Internet?
| VPN type | Typical purpose | Key configuration details |
|---|---|---|
| Site-to-site | Connect branch offices, data centers, or cloud networks | Peer gateway, local and remote subnets, routes, and policies |
| Remote access | Connect individual users to internal resources | Client authentication, address assignment, user groups, and access policies |
| Dial-up IPsec | Accept tunnels from peers with changing public IP addresses | Dynamic peer settings and appropriate authentication controls |
For a site-to-site tunnel, confirm that the local and remote networks do not overlap. Overlapping address ranges can prevent routing or require network address translation. For remote access, decide which internal resources users should reach and whether all traffic or only corporate traffic should use the VPN.
Configure a site-to-site tunnel
You can create an IPsec tunnel through the FortiGate GUI or CLI. Menu names and available options vary by FortiOS release, so use documentation for the version running on your device.
1. Gather the settings
Obtain the following information for both VPN peers before starting:
- Public IP address or hostname of each peer
- Local and remote protected subnets
- IKE version and authentication method
- Phase 1 encryption, integrity, and Diffie–Hellman settings
- Phase 2 encryption, integrity, and PFS settings
- Pre-shared key or certificate details
- NAT status and any required routes
The Phase 1 and Phase 2 proposals must have at least one compatible combination on both devices. A mismatch in even one required setting can prevent negotiation. FortiClient VPN for Windows 11: Download, Install, and Connect
2. Create the tunnel
In the FortiGate interface, open the IPsec VPN configuration area and create a new tunnel. For a typical site-to-site setup, select a custom or site-to-site configuration and provide the remote gateway address.
Choose a strong pre-shared key if using pre-shared-key authentication. Keep it private, use a unique value, and enter it identically at both ends. Where practical, consider certificate-based authentication for stronger identity management, especially across larger deployments.
Set Phase 1 and Phase 2 proposals to secure options supported by both devices. Prefer modern algorithms, such as AES-based encryption and SHA-2 integrity where the peer supports them. Avoid outdated or weak algorithms unless needed for a documented compatibility requirement.
3. Add routing and firewall policies
A tunnel can show as established while user traffic still fails. FortiGate needs a route to the remote subnet and firewall policies that permit the intended traffic. NordVPN Windows: How to Download, Install, and Use the App
Check that:
- The remote subnet points to the IPsec tunnel, either through a static route or the routing method used in your design.
- A policy allows traffic from the local LAN to the VPN interface.
- A reverse policy permits return traffic where required by the configuration.
- NAT is disabled for ordinary site-to-site traffic unless translation is explicitly needed.
- The remote peer has matching routes and policies for the local subnet.
Apply the principle of least privilege: allow only the networks, services, and users that need access.
Compare key choices when configuring a site-to-site tunnel
| Configuration choice | Decide based on | Common pitfall |
|---|---|---|
| Authentication | Existing identity infrastructure | Mismatched credentials |
| Phase 1 exchange | Peer compatibility and policy | Different protocol settings |
| Address assignment | Whether the peer address changes | Incorrect peer identification |
| Tunnel mode | Routing and policy needs | Missing routes or selectors |
| Traffic scope | Required access only | Overlapping or overly broad ranges |
| Encryption settings | Security policy and compatibility | Proposal mismatch |
Compiled November 2026; check the provider's site for current details. Microsoft Edge Secure Network VPN Reviews: Is It Safe and Worth Using?
Security and reliability best practices
A secure VPN depends on more than encryption. The FortiGate itself, its credentials, and the rules around the tunnel all matter.
- Use strong, unique authentication secrets or certificates.
- Prefer IKEv2 and modern cryptographic proposals when compatible.
- Limit protected subnets and firewall policy services to required traffic.
- Keep FortiOS updated according to your organization’s change and security processes.
- Restrict administrative access to trusted networks and use multifactor authentication where available.
- Monitor tunnel status, authentication events, and traffic logs.
- Document peer settings, routes, and ownership so changes can be coordinated.
- Avoid exposing management services over the VPN unless there is a clear need.
If the peer uses a dynamic public address, configure the tunnel to accommodate that design rather than relying on a fixed peer IP. For high availability, plan how the tunnel behaves during link, device, or peer failure, and test failover before relying on it in production.
Troubleshoot common connection problems
Troubleshoot from negotiation outward: first determine whether Phase 1 is established, then check Phase 2, routing, policies, and the application itself.
Tunnel does not establish
Confirm that the peer IP or hostname is correct and reachable. Check that both devices use the same IKE version, authentication method, pre-shared key or certificates, and compatible Phase 1 proposals. Also verify that the internet path allows the required IPsec traffic, including UDP 500 and UDP 4500 when NAT traversal is used. Is Cato a VPN? What Cato SASE Actually Does
Phase 1 works, but Phase 2 fails
Compare the protected subnets and Phase 2 proposals on both peers. Check whether PFS is enabled on one side but not the other, or whether the peers use incompatible encryption or integrity algorithms. Confirm that selectors describe the intended local and remote networks.
Tunnel is up, but traffic does not pass
Check routes, firewall policies, NAT settings, and return paths on both devices. Verify that hosts use the expected gateways and that local endpoint firewalls do not block the traffic. Test with a known reachable address and a permitted service rather than assuming that every protocol is allowed.
FortiGate logs and VPN monitoring tools can help identify negotiation or policy errors. When using CLI diagnostics, follow the commands and debug guidance for your FortiOS version, and disable verbose debugging after testing to avoid unnecessary log volume.
Troubleshoot common IPsec VPN symptoms Nord VPN in China: Does It Work and How to Prepare
| Symptom | Likely area | Check first | Useful FortiGate check | Next step |
|---|---|---|---|---|
| Tunnel will not establish | IKE settings | Peer address and proposals | VPN event logs | Match Phase 1 settings |
| Authentication fails | Credentials or identity | Pre-shared key or certificate | IKE negotiation logs | Verify both peers’ credentials |
| Tunnel is up, traffic fails | Routing or policy | Routes and firewall rules | Routing and policy tables | Permit required traffic |
| Only some subnets work | Selectors or routes | Local and remote networks | Tunnel status and routes | Align subnet definitions |
| One-way traffic | Policies or return route | Rules in both directions | Traffic logs | Add the missing return path |
| Connection drops repeatedly | Network stability | Link health and peer reachability | VPN and interface logs | Check upstream loss and timeouts |
| DNS names fail, IPs work | DNS configuration | DNS server reachability | DNS and traffic logs | Provide reachable DNS settings |
Compiled November 2026; check the provider's site for current details.
Recommendation
For most new site-to-site deployments, use IKEv2, strong supported cryptographic settings, narrowly defined network selectors, and explicit routes and firewall policies. Confirm the complete configuration with the peer administrator, then test both tunnel negotiation and real application traffic in each direction.

