Fortigate ipsecvpn: How to Configure and Troubleshoot a Secure VPN

Learn how FortiGate IPsec VPN works, how to configure a site-to-site tunnel, and how to troubleshoot common connection problems.


FortiGate IPsec VPN is a feature for building encrypted connections between a FortiGate firewall and another VPN gateway or a remote-access client. For a site-to-site VPN, it securely connects two networks over the internet. For remote access, it gives authorized users a protected route into a private network. A successful setup requires compatible VPN settings, appropriate routing, and firewall policies that allow only the intended traffic.
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 →
FortiGate VPN options at a glance
| Option | Typical use | Endpoint | Configuration approach | Best fit |
|---|---|---|---|---|
| Site-to-site IPsec | Connect office networks | FortiGate or compatible gateway | Configure matching tunnel settings at both ends | Permanent network links |
| Remote-access IPsec | Connect individual users | FortiGate and client device | Configure a dial-up tunnel and user access | Users needing network access while away |
| FortiClient-based access | Connect individual users | FortiGate and FortiClient | Set up the VPN on FortiGate and configure the client | Managed client devices |
| Third-party IPsec client | Connect individual users | FortiGate and compatible client | Match authentication and tunnel settings | Environments using another client |
| Route-based IPsec | Carry traffic between routed networks | Gateways at both ends | Use a virtual tunnel interface and routes | Flexible routing requirements |
| Policy-based IPsec | Match traffic to VPN policies | Gateways at both ends | Define policies for traffic entering the tunnel | Policy-driven configurations |
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 does
IPsec protects traffic by authenticating the VPN peers and encrypting data between them. FortiGate uses IKE, the Internet Key Exchange protocol, to negotiate the connection. Once the peers agree on their settings, IPsec security associations carry traffic through the tunnel.
Common uses include:
- Connecting a branch office to a headquarters network.
- Connecting a FortiGate to a third-party firewall or cloud VPN gateway.
- Providing remote users with secure access to internal resources.
A VPN tunnel does not automatically grant access to every network behind the firewall. Routing determines where traffic goes, while firewall policies determine which traffic is permitted. Both must be configured correctly.
Site-to-site and remote-access options
The right configuration depends on who or what is connecting. A site-to-site tunnel typically links fixed networks, while remote access connects individual users or devices. Does Microsoft Edge Have a VPN? What Edge Secure Network Does
| VPN type | Typical connection | Main configuration considerations |
|---|---|---|
| Site-to-site | FortiGate to another gateway | Peer address, local and remote subnets, routing, matching proposals |
| Remote access | FortiGate to a user device | Client compatibility, user authentication, address assignment, access policies |
FortiGate interface names and available options can differ by FortiOS version and deployment. Check the documentation for the version installed on your device, especially when configuring a third-party peer or client.
Site-to-site tunnel configuration checks
| Check | Local gateway | Remote gateway | What to verify | Common issue |
|---|---|---|---|---|
| Peer address | Public IP or hostname | Public IP or hostname | Each side points to the other | Incorrect or changed peer address |
| Phase 1 proposal | Encryption and authentication | Matching proposal | Algorithms and DH settings match | Proposal mismatch |
| Authentication | Pre-shared key or certificate | Matching credentials | Both peers use compatible authentication | Incorrect key or certificate |
| Phase 2 selectors | Local network | Remote network | Selectors correspond in reverse | Subnet mismatch |
| Routing | Route to remote network | Route to local network | VPN traffic uses the tunnel | Missing or incorrect route |
| Firewall policy | Allow local-to-remote traffic | Allow remote-to-local traffic | Policies permit intended traffic | Missing policy or service |
| NAT settings | Exempt VPN traffic where needed | Exempt VPN traffic where needed | NAT does not alter protected traffic | Unexpected address translation |
| Tunnel status | Monitor local tunnel | Monitor remote tunnel | Both peers establish the tunnel | Tunnel is down or unstable |
Compiled November 2026; check the provider's site for current details.
How to configure a site-to-site tunnel
Before starting, collect the information for both ends of the connection. You will need each peer’s public IP address or hostname, the local and remote protected subnets, and the security settings agreed with the other administrator. Does Microsoft Edge Have a Built-In VPN? What You Need to Know
1. Confirm the network details
Write down the values for each side:
- FortiGate WAN interface and public address.
- Local subnet behind the FortiGate.
- Remote subnet behind the other VPN peer.
- Authentication method and shared secret, if using a pre-shared key.
- IKE version, encryption and integrity algorithms, Diffie-Hellman group, and lifetime settings.
Use a strong, unique pre-shared key when that authentication method is appropriate. Exchange it securely rather than sending it in an unprotected message.
2. Create the Phase 1 settings
In the FortiGate interface, open the IPsec VPN configuration area and create a new tunnel. Choose a site-to-site or custom setup that matches your requirements. Set the remote gateway, outgoing interface, IKE version, and authentication details.
Phase 1 establishes and protects the negotiation between peers. The proposal and related security settings must be compatible at both ends. Avoid selecting weak algorithms simply to make a connection work. Agree on supported, secure settings instead. Does Edge Have a Built-In VPN? What Microsoft Edge Secure Network Does
3. Configure Phase 2
Phase 2 defines the traffic protected by the tunnel. Add the local and remote subnets, then set compatible encryption, integrity, and lifetime values. Confirm that the local subnet on one end is the remote subnet on the other, and vice versa.
If the peers use different subnet definitions or selectors, the tunnel may appear connected while the intended traffic fails. For a design using route-based VPN, verify that the tunnel interface and routing configuration match the chosen approach.
4. Add routing and firewall policies
Create routes that direct traffic for the remote network through the VPN. Then add firewall policies for the required direction of traffic. A policy commonly specifies the incoming interface, outgoing VPN interface, source and destination addresses, services, and logging behavior.
Apply least privilege: VPN FortiGate: How It Works, Setup Options, and Best Practices
- Allow only the necessary source and destination networks.
- Limit services to what users or applications need.
- Enable logging where it supports monitoring and troubleshooting.
- Avoid broad “any-to-any” rules unless there is a clear, temporary reason.
Check return routing as well. The remote network must know how to send replies back through the tunnel.
5. Test the connection
Bring up the tunnel and test from a device on each protected network. Verify access to a specific internal address or service rather than relying only on a tunnel status indicator. Confirm that traffic follows the VPN route and that the firewall logs show the expected policy match.
Troubleshooting common problems
A tunnel can fail during negotiation, establish without carrying traffic, or work only in one direction. Start with the symptom and check one layer at a time.
Tunnel does not establish
Check that the peer addresses are correct and reachable, and that the FortiGate is using the intended WAN interface. Compare IKE version, authentication method, pre-shared key, proposals, and Diffie-Hellman settings on both devices. Confirm that the network path allows IKE and IPsec traffic, including UDP ports 500 and 4500 where required and ESP when it is not encapsulated in UDP. Does Edge Have a VPN Built In? What Microsoft Edge Secure Network Does
Tunnel is up but traffic fails
Review the Phase 2 selectors, routes, and firewall policies. Make sure the tested addresses are included in the protected subnets, the policies reference the correct interfaces, and the remote side has a route back. Check for overlapping subnets: if both sites use the same IP range, routing can send traffic to the wrong local network.
Traffic works in one direction or intermittently
Look for missing return routes, restrictive policies, mismatched selectors, or upstream devices that interfere with IPsec. If the tunnel drops after being idle, review keepalive or dead-peer detection behavior and compare it with the peer’s configuration.
Use FortiGate VPN status and logs to identify where negotiation stops. Diagnostic commands can provide more detail, but syntax and available options vary by FortiOS release. Follow the relevant Fortinet documentation and avoid leaving high-volume debug output enabled longer than needed.
Security and maintenance
Treat the VPN as part of your security boundary, not as a blanket trust relationship. Restrict access to the required networks and services, use strong authentication and current cryptographic settings, and keep FortiOS and client software supported and updated. What Is com.NordVPN.Android? A Guide to NordVPN for Android
Review the configuration periodically. Remove unused users, policies, routes, and tunnels. Rotate shared secrets according to your security process. And monitor logs for repeated authentication failures or unexpected traffic. Document peer settings and recovery contacts so changes can be coordinated without weakening the configuration.
Troubleshooting and maintenance decision guide
| Symptom or task | First check | Next action | Security consideration | When to escalate |
|---|---|---|---|---|
| Tunnel will not establish | Peer reachability and tunnel status | Compare Phase 1 settings on both peers | Avoid weakening encryption to force a match | Peer remains unreachable |
| Phase 1 succeeds, Phase 2 fails | Proposals and traffic selectors | Match encryption, authentication, and subnets | Keep approved cryptographic settings | Negotiation still fails |
| Tunnel is up, traffic fails | Routes and firewall policies | Check selectors, policies, and NAT exemption | Permit only required traffic | Traffic remains blocked |
| Users cannot connect | Client settings and authentication | Check credentials, user groups, and access rules | Use strong authentication | Valid users still cannot connect |
| Intermittent connection | Logs, peer availability, and tunnel stability | Check routing and configuration changes | Preserve logs for review | Disconnections continue |
| Configuration changes | Existing VPN settings and dependencies | Document and test changes before rollout | Maintain a recovery path | Change causes service disruption |
| Routine maintenance | Firmware and security advisories | Review updates and verify tunnel operation | Apply updates through change control | Update affects VPN behavior |
| Access review | User accounts and VPN policies | Remove unnecessary access and credentials | Apply least privilege | Unexpected access is detected |
Compiled November 2026; check the provider's site for current details.
Recommendation
For most deployments, configure FortiGate IPsec VPN with explicitly agreed Phase 1 and Phase 2 settings, narrowly scoped firewall policies, and verified routes in both directions. Test real application traffic from each side, then monitor the tunnel and review its access rules regularly. Safe VPN Extension for Edge: How to Choose One
