FortiGate IPsec VPN: Setup, Configuration, and Troubleshooting

Learn how FortiGate IPsec VPNs work, how to configure a site-to-site tunnel, and how to troubleshoot common issues.
FortiGate IPsec is Fortinet’s implementation of IPsec VPN, used to encrypt traffic between a FortiGate firewall and another gateway or a remote-access client. To build a working tunnel, configure matching IKE and encryption settings on both ends, define the networks allowed through it, and add the necessary routes and firewall policies. The exact steps depend on whether you need a site-to-site or remote-access VPN.
Compare FortiGate IPsec VPN deployment options
| Option | Best fit | Configuration approach | Main consideration |
|---|---|---|---|
| Site-to-site | Connect two networks | Configure a tunnel at both sites | Both peers must agree on settings |
| Remote access | Connect individual users | Configure client access and authentication | Client and user settings must match |
| Route-based tunnel | Flexible routing needs | Use a virtual IPsec interface and routes | Routing must point traffic into the tunnel |
| Policy-based tunnel | Policy-driven traffic control | Define policies for tunnel traffic | Policies must match the intended traffic |
| IKEv1 | Peer requires IKEv1 | Select IKEv1 on both ends | Peer compatibility is required |
| IKEv2 | Peer supports IKEv2 | Select IKEv2 on both ends | Peer compatibility is required |
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 does
IPsec protects IP traffic by authenticating peers and encrypting data as it travels across an untrusted network, such as the internet. FortiGate uses Internet Key Exchange (IKE) to negotiate the tunnel. IKE has two stages:
- Phase 1 establishes a secure association between the peers and authenticates them, often with a pre-shared key or certificates.
- Phase 2 negotiates the IPsec security association that protects traffic between specified networks.
A site-to-site VPN connects networks behind two gateways. A remote-access VPN connects individual users or devices to a protected network. FortiGate can support both, but the configuration and client requirements differ.
IPsec does not automatically make every network reachable. The tunnel, traffic selectors, routing, firewall rules, and address policies must all agree.
Plan the configuration
Before configuring the FortiGate, collect the details for both sides of the VPN. For a basic site-to-site connection, you need: FortiGate L2TP: Setup, Compatibility, and Security
- The public IP address or hostname of each VPN peer
- The local and remote network ranges
- The IKE version to use
- A shared authentication method and, if using a pre-shared key, a strong secret
- Matching encryption, integrity, and Diffie-Hellman settings
- The intended routing method, such as static routes or dynamic routing
Avoid overlapping local and remote subnets. If both sites use the same address range, traffic may be routed locally instead of through the tunnel. Renumbering a network or using carefully planned address translation may be needed.
Choose current, secure algorithms supported by both peers and your organization’s security policy. Do not copy settings from an old configuration without checking whether they remain appropriate. FortiOS menus and available options vary by release, so confirm instructions against the documentation for your installed version.
Compare key settings when planning a site-to-site tunnel
| Setting | Local side | Remote side | What to check |
|---|---|---|---|
| Peer address | Remote gateway address | Local gateway address | Addresses point to the opposite peer |
| Phase 1 mode | Selected IKE version and proposal | Matching IKE version and proposal | IKE and encryption settings agree |
| Authentication | Shared secret or certificate | Matching authentication method | Credentials and certificates are valid |
| Phase 2 selectors | Local protected subnet | Remote protected subnet | Each side’s local and remote networks are reversed |
| Routing | Route to remote subnet | Route to local subnet | Routes use the tunnel interface |
| Firewall policy | Allow local-to-remote traffic | Allow remote-to-local traffic | Policies permit the required services |
| NAT | Disabled for protected traffic, as needed | Disabled for protected traffic, as needed | NAT does not alter tunnel selectors |
| Dead peer detection | Enabled or configured as required | Compatible peer behavior | Settings support peer reachability checks |
Compiled November 2026; check the provider's site for current details. FortiGate VPN Client: How to Choose, Install, and Connect
Configure a site-to-site tunnel
In the FortiGate web interface, open the IPsec VPN configuration area and create a new tunnel. Depending on the FortiOS version, a setup wizard may offer a template for a site-to-site connection.
Phase 1 settings
Set the remote gateway address and choose the IKE version supported by the other peer. Configure authentication, then select compatible encryption, integrity, and Diffie-Hellman proposals. The peer must have a matching proposal. Otherwise, negotiation can fail before the tunnel is established.
Set suitable lifetime and negotiation options according to the requirements of the other device. If the peer’s public address changes, consider whether a dynamic DNS name or a dial-up peer configuration is needed.
Phase 2 settings
Define the local and remote address ranges that should pass through the tunnel. These are commonly called traffic selectors or proxy IDs. They must match the peer’s corresponding networks. Then select compatible Phase 2 encryption and integrity settings. Free VPN Where You Can Choose Location: What to Use and What to Check
If several subnets need to communicate, confirm whether they can be included in one selector or need separate Phase 2 entries. The supported approach depends on the peer and the design.
| Configuration item | FortiGate and peer must agree? | Why it matters |
|---|---|---|
| IKE version and authentication | Yes | Establishes and authenticates the peer relationship |
| Phase 1 and Phase 2 proposals | Yes | Determines how the connection is secured |
| Local and remote selectors | Yes | Defines which traffic the tunnel protects |
| Routes and firewall policies | Must support the same traffic | Allows packets to enter and leave the tunnel |
Add routes and policies
For a site-to-site VPN, create a route to the remote network through the IPsec interface, unless your design uses dynamic routing or another routing method. Then add firewall policies to permit the intended traffic between the local network and the VPN interface.
Review both directions. A working outbound policy does not guarantee that return traffic has a valid route or is allowed by the remote firewall. NAT is usually not needed for a straightforward site-to-site VPN, but some network designs require it. Apply it only when the addressing plan calls for it.
Verify the connection
After saving the configuration, check the IPsec monitor or VPN status page. A tunnel can be configured but inactive until matching traffic attempts to use it, depending on the negotiation settings. Free VPN Choose Location: How to Pick the Right Server
To verify end-to-end access:
- Confirm that Phase 1 is established.
- Confirm that the relevant Phase 2 security association is active.
- Check that the FortiGate has a route to the remote subnet.
- Review firewall policies in both directions.
- Test connectivity between hosts in the permitted networks.
Use traffic that matches the configured selectors. A ping from the FortiGate itself may follow different routing or policy behavior from traffic generated by a device behind it, so test from an appropriate endpoint as well.
Match common symptoms to FortiGate IPsec checks
| Symptom | First check | Likely area | Next action |
|---|---|---|---|
| Tunnel will not establish | Peer address and reachability | Connectivity | Verify WAN access and peer details |
| Phase 1 fails | IKE version and authentication | Phase 1 settings | Compare proposals and credentials |
| Phase 2 fails | Network selectors and proposals | Phase 2 settings | Match subnets and encryption settings |
| Tunnel is up, but traffic fails | Routes and firewall policies | Traffic handling | Confirm routes and policies in both directions |
| Only some traffic passes | Selectors and policy scope | Traffic matching | Check protected networks and services |
| Tunnel drops repeatedly | Peer reachability and DPD | Link stability | Review peer status and DPD compatibility |
| Name-based access fails | DNS settings and reachability | Name resolution | Test access by IP and verify DNS |
| Changes do not take effect | Active configuration and logs | Configuration state | Confirm settings and review VPN logs |
Compiled November 2026; check the provider's site for current details. What Is OVPN? How OpenVPN Configuration Files Work
Troubleshoot common FortiGate IPsec problems
Start with the stage where the connection fails. If Phase 1 is down, check peer reachability, the IKE version, authentication, and Phase 1 proposals. If Phase 1 is up but Phase 2 is down, compare traffic selectors and Phase 2 proposals.
Common causes include:
- A pre-shared key that differs between peers
- An unsupported or mismatched encryption, integrity, or Diffie-Hellman proposal
- Incorrect public IP addresses or blocked IKE and IPsec traffic
- Local and remote subnet ranges entered in reverse or with incorrect masks
- Missing routes or firewall policies
- Overlapping subnets or unexpected NAT
- A peer behind NAT that needs NAT traversal enabled
- Stale security associations after a configuration change
Check FortiGate event logs and VPN status details for negotiation errors. For deeper diagnosis, FortiOS provides command-line tools such as diagnose vpn ike gateway list and diagnose vpn tunnel list. Diagnostic commands and debug output can vary by version. Use targeted debugging, then stop it when finished, because verbose output may be extensive and can expose sensitive information.
When changing settings, make one change at a time and verify the result. If you update a proposal or selector, ensure the other peer receives the matching change. Avoid sharing pre-shared keys, full configuration backups, or unredacted debug logs. Proton Free VPN: What You Get and Whether It’s Worth Using
Recommendation
For a reliable FortiGate IPsec VPN, document both peers’ settings before implementation, use secure compatible proposals, and verify the tunnel together with its routes and firewall policies. Test real traffic in both directions, and consult the FortiOS documentation for your version when menu labels or supported options differ.