FortiGate IPsec VPN: Setup, Configuration, and Troubleshooting
Learn how FortiGate IPsec VPN works, how to configure a site-to-site tunnel, and how to troubleshoot common connection issues.


A FortiGate IPsec VPN creates an encrypted connection between a FortiGate firewall and another gateway, or between a FortiGate and a remote-access client. To bring a tunnel up reliably, configure compatible Phase 1 and Phase 2 proposals, define the traffic to encrypt, and make sure routes and firewall policies allow that traffic. This guide explains the key concepts, setup steps, and common fixes.
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 site-to-site and remote-access IPsec VPNs
| Decision point | Site-to-site VPN | Remote-access VPN | Best fit |
|---|---|---|---|
| Main purpose | Connects networks | Connects individual users | Depends on what needs access |
| Typical endpoint | Another firewall or gateway | User device | Network-to-network or user-to-network |
| User location | Fixed site | Anywhere with internet access | Office or mobile workforce |
| Traffic scope | Networks behind both gateways | Authorized user and permitted resources | Broad site access or individual access |
| Peer configuration | Configure both gateways | Configure FortiGate and user endpoint | Depends on endpoint type |
| Authentication | Gateway credentials and settings | User authentication and endpoint settings | Match organizational policy |
| Common design focus | Subnets, routes, and tunnel settings | Users, access policies, and client settings | Plan around the connection type |
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 FortiGate IPsec VPN is used for
IPsec protects network traffic by authenticating the other endpoint and encrypting data as it travels across an untrusted network, such as the public internet. FortiGate supports site-to-site VPNs, which connect networks at separate locations, and remote-access VPNs, which let individual users connect to a company network.
A typical site-to-site tunnel connects a local subnet behind one FortiGate to a remote subnet behind another gateway. Users can then reach permitted services across the tunnel without sending that traffic unencrypted over the internet.
IPsec VPN configuration has two main negotiation stages:
- Phase 1 (IKE): Establishes and authenticates the secure relationship between the VPN endpoints.
- Phase 2 (IPsec): Negotiates protection for the actual network traffic and defines which traffic can use the tunnel.
Both endpoints need compatible settings. The exact options available depend on the FortiOS version and the device at the other end. VPN FortiGate: How It Works, Setup Options, and Best Practices
Site-to-site setup: the essential steps
FortiGate’s VPN wizard can create a basic site-to-site connection, while manual configuration offers more control. Menu names and options may vary by FortiOS release.
Before configuring the tunnel, collect the necessary details for both sites:
- Public IP address or hostname of each VPN endpoint
- Local and remote network ranges
- Authentication method and, if used, the pre-shared key
- IKE version and compatible encryption and integrity proposals
- Phase 1 and Phase 2 lifetimes
- Whether either endpoint is behind NAT
- Required routes and permitted services
Then configure the connection:
- Create Phase 1. Set the remote gateway address, IKE version, authentication method, and compatible encryption and integrity algorithms. Use a strong, unique pre-shared key or certificate-based authentication as appropriate.
- Create Phase 2. Specify the local and remote traffic selectors, also called encryption domains. Choose compatible IPsec proposals and lifetimes.
- Add routing. Direct traffic for the remote subnet through the VPN interface or use the routing approach required by your design. Dynamic routing may be appropriate for larger networks.
- Create firewall policies. Allow the required traffic from the local network to the VPN interface and, where needed, from the VPN interface back to the local network. Apply only the services and destinations users need.
- Configure the other endpoint. Mirror the relevant settings there. Local and remote network definitions will appear reversed from that device’s perspective.
- Test and monitor. Generate traffic between permitted hosts, check the tunnel status, and confirm that counters increase.
A tunnel showing as “up” does not necessarily mean that applications can communicate. A route or policy may still be missing, or the traffic selectors may not include the intended hosts. Com.NordVPN.Android: What It Is and How to Use the NordVPN App
Compare important site-to-site IPsec design choices
| Choice | Option | Consideration | When it fits |
|---|---|---|---|
| Tunnel type | Route-based | Uses a virtual IPsec interface and routes | Flexible routing and policy design |
| Tunnel type | Policy-based | Associates IPsec with specific traffic policies | Existing policy-based design |
| Peer address | Static | Peer uses a known public address | Stable peer connectivity |
| Peer address | Dynamic | Peer address can change | Peer has a changing public address |
| Phase 1 authentication | Pre-shared key | Both peers must use the same key | Straightforward shared-secret setup |
| Phase 1 authentication | Certificates | Uses certificate-based identity | Certificate infrastructure is available |
| Routing | Static routes | Manually define remote networks | Small or stable network designs |
| Routing | Dynamic routing | Exchanges routes over the VPN | Networks with changing or multiple routes |
Compiled November 2026; check the provider's site for current details.
Important settings and design choices
| Setting | What it controls | What to check |
|---|---|---|
| IKE version | How Phase 1 is negotiated | Both endpoints support and use the same version |
| Phase 1 proposal | Encryption and integrity for IKE | At least one compatible proposal exists |
| Authentication | How endpoints prove their identity | Keys, certificates, IDs, and peer settings match |
| Phase 2 selectors | Which traffic enters the tunnel | Local and remote ranges correspond at both ends |
| Phase 2 proposal | Protection for tunnel traffic | Encryption and integrity settings are compatible |
| Routing and policies | Whether traffic reaches and passes through the tunnel | Routes point to the VPN, and policies permit required flows |
Prefer current, secure algorithms supported by both devices, and avoid weak or obsolete options. Use unique credentials, restrict firewall policies to necessary traffic, and document the settings so they can be reviewed later.
Overlapping IP ranges can prevent a straightforward site-to-site setup. If both locations use the same subnet, consider renumbering one side or designing an appropriate translation strategy. Do not assume that creating a tunnel automatically resolves overlapping addresses. Certificate Validation Failure Cisco VPN: Causes and Fixes
Troubleshooting common connection problems
Start by identifying whether the issue is tunnel negotiation or traffic flow. A tunnel that fails to establish points toward Phase 1 or Phase 2. A tunnel that is established but carries no useful traffic usually points toward selectors, routing, policies, or the destination host.
Check these items in order:
- Phase 1 does not establish: Verify the peer address, IKE version, authentication method, pre-shared key or certificates, and Phase 1 proposals. Also check whether UDP 500 or NAT traversal traffic on UDP 4500 is blocked along the path.
- Phase 1 works but Phase 2 fails: Compare the selectors, IPsec proposals, and lifetimes at both ends. Check for mismatched subnets or incompatible settings.
- Tunnel is up but traffic fails: Confirm that the local and remote routes are correct, firewall policies allow the traffic, and the destination host has a valid return route. Check host firewalls as well.
- Only some hosts or services work: Review selectors, address objects, policy services, and any access restrictions. Test with a simple permitted connection before investigating more complex applications.
- Tunnel disconnects or performance is poor: Look for unstable internet links, MTU or fragmentation problems, packet loss, and mismatched timers. Check device resource use and logs before changing multiple settings at once.
FortiGate provides VPN status and event logs through the web interface. For deeper investigation, administrators can use the CLI to inspect IKE and IPsec status and run targeted debug commands. Debug output can be detailed and may expose sensitive configuration information, so enable it only when needed and stop it after collecting evidence. Fortinet documentation for the installed FortiOS version is the best reference for exact commands and interface options.
Site-to-site versus remote access
The right FortiGate IPsec VPN design depends on who or what needs access. Forticlientvpnonlineinstaller: Download, Install, and Troubleshoot FortiClient VPN
- Site-to-site: Connects entire networks or selected subnets. It suits branch offices, data centers, and partner links.
- Remote access: Connects individual users or devices. It requires client configuration and should use suitable authentication, access controls, and user-specific permissions.
For remote users, define which internal resources are reachable rather than granting broad network access by default. Confirm client compatibility and follow the current FortiOS guidance for the chosen deployment method.
Troubleshoot common FortiGate IPsec VPN connection problems
| Symptom | Check first | Likely area | Next step |
|---|---|---|---|
| Tunnel does not establish | Peer address and reachability | Basic connectivity | Confirm the peer address and internet path |
| Phase 1 fails | IKE version and proposals | Phase 1 mismatch | Match IKE and encryption settings on both peers |
| Authentication fails | Pre-shared key or certificates | Peer authentication | Verify the key or certificate identity on both sides |
| Phase 2 fails | Phase 2 proposals and selectors | Phase 2 mismatch | Match proposals and local and remote networks |
| Tunnel is up, traffic fails | Routes and firewall policies | Traffic forwarding | Confirm routes and policies allow the traffic |
| One-way traffic | Policies and return route | Asymmetric forwarding | Check both directions and the remote return path |
| Remote networks overlap | Local and remote subnets | Addressing design | Use non-overlapping networks or plan address translation |
| Intermittent tunnel | Peer stability and timers | Connectivity or negotiation | Check link stability and matching tunnel settings |
Compiled November 2026; check the provider's site for current details.
Recommendation
Use FortiGate IPsec VPN when you need encrypted network connectivity and can coordinate settings at both endpoints. Begin with a clear address plan, compatible IKE and IPsec proposals, and narrowly scoped firewall policies. After setup, test actual application traffic, not just tunnel status, and keep the configuration aligned with current Fortinet guidance for your FortiOS release. Free VPN Extension for Microsoft Edge: Best Options and Safe Setup

