IPsec VPN FortiGate: Setup, Configuration, and Troubleshooting

Learn how FortiGate IPsec VPNs work, how to configure them, and how to troubleshoot common connection issues.


An IPsec VPN on a FortiGate firewall provides an encrypted connection between networks or between a remote user and a private network. To set one up, choose the VPN type, configure matching security settings on both endpoints, add routing and firewall policies, then verify that traffic can pass through the tunnel. FortiGate’s IPsec VPN wizard can simplify common configurations, but understanding the main settings makes deployment and troubleshooting more reliable.
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 designs
| Design | Typical use | Endpoints | Main advantage | Main consideration |
|---|---|---|---|---|
| Site-to-site | Connect office networks | FortiGate devices or compatible peers | Network-to-network access | Requires matching tunnel settings |
| Remote access | Connect individual users | FortiGate and user devices | Access for traveling or home users | Requires client and user configuration |
| Route-based | Connect networks using interfaces and routes | IPsec tunnel interfaces | Flexible routing and policy control | Routing must be configured correctly |
| Policy-based | Match traffic with security policies | FortiGate and compatible peer | Traffic selection in policies | Less flexible for complex routing |
| Dial-up IPsec | Accept tunnels from changing remote endpoints | FortiGate and remote peers | Supports dynamic peer addresses | Peer authentication needs careful setup |
| Hub-and-spoke | Connect branches through a central site | Hub and multiple spokes | Centralized inter-site connectivity | Hub capacity and routing matter |
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 other endpoint and encrypting data as it travels across an untrusted network, such as the internet. FortiGate supports two common use cases:
- Site-to-site VPN: Connects networks behind two gateways, such as an office and a data center.
- Remote-access VPN: Connects an individual device to a protected network. FortiClient is commonly used for this purpose.
An IPsec tunnel negotiates security in two stages. Phase 1, also called IKE, establishes a secure relationship between the VPN endpoints. Phase 2 negotiates the protection for traffic crossing the tunnel, including the networks allowed to communicate.
A tunnel can be established without being fully useful. Users also need appropriate routes and firewall policies, and the permitted network ranges must match the intended traffic.
Choose the right VPN design
Before configuration, identify the endpoints, internal networks, and traffic that should cross the tunnel. For a site-to-site connection, record the public IP addresses and protected subnet ranges on both sides. For remote access, decide which internal resources users need and how their devices will authenticate. Nord VPN in China: Does It Work and How to Prepare
| Design | Typical use | Key planning details |
|---|---|---|
| Site-to-site | Connects two offices or networks | Peer addresses, local and remote subnets, routing |
| Remote access | Connects users to a private network | Client software, user authentication, address assignment |
| Route-based VPN | Flexible routing and policy control | Tunnel interface, routes, firewall policies |
| Policy-based VPN | Defines traffic selectors in the VPN configuration | Matching local and remote traffic selectors |
FortiGate configuration options vary by FortiOS version and deployment. Route-based VPNs are widely used because they work naturally with routing and firewall policies. Check your FortiOS documentation and the configuration on the peer device before choosing a design.
Site-to-site IPsec configuration options
| Option | Common choice | What it controls | Compatibility consideration | Troubleshooting focus |
|---|---|---|---|---|
| IKE version | IKEv1 or IKEv2 | Tunnel negotiation | Must match the peer | Check phase 1 negotiation |
| Authentication | Pre-shared key or certificates | Peer identity verification | Credentials and methods must match | Verify key or certificate details |
| Encryption | Agreed encryption algorithm | Confidentiality of traffic | Both peers need a common proposal | Compare phase 1 and phase 2 proposals |
| Integrity | Agreed integrity algorithm | Message integrity | Must be supported by both peers | Check proposal mismatch |
| Diffie-Hellman group | Agreed group | Key exchange | Group must match peer settings | Review negotiation logs |
| Phase 2 selectors | Local and remote subnets | Traffic protected by the tunnel | Selectors must align across peers | Check subnet and selector definitions |
| Routing | Static routes or dynamic routing | Path to remote networks | Route design must match topology | Confirm routes and next hop |
| Security policy | Rules for tunnel traffic | Permitted traffic | Policies must allow intended flows | Check policy match and logs |
Compiled November 2026; check the provider's site for current details.
Configure a site-to-site IPsec tunnel
For a typical site-to-site setup, configure both gateways. The settings must agree wherever the peers negotiate them. Does Microsoft Edge Have VPN? What Edge Secure Network Does
1. Gather the required information
Document the following before opening the configuration wizard:
- Public IP address or hostname of each VPN gateway
- Local and remote protected subnets
- Authentication method and shared secret, or certificate details
- IKE version and compatible encryption and integrity algorithms
- Diffie-Hellman group and key lifetime
- Phase 2 encryption, integrity, lifetime, and traffic selectors
- Whether either gateway is behind NAT
Use strong, supported cryptographic settings. Avoid selecting algorithms solely because they are easy to match. Confirm that they are appropriate for your security requirements and supported by both devices.
2. Create the VPN
In the FortiGate interface, open the IPsec VPN configuration area and use the site-to-site wizard if it fits your topology. Provide the peer information, authentication details, and protected networks. The wizard generates much of the tunnel configuration, but review the resulting settings against the remote gateway.
If configuring manually, create the phase 1 interface and phase 2 settings, then ensure that the local and remote traffic selectors are reversed correctly on the peer. For example, if one side defines its office subnet as local, the other side should define that same subnet as remote. FortiClient VPN for Windows 11: Download, Install, and Connect
3. Add routes and firewall policies
For a route-based tunnel, create a route for the remote subnet through the IPsec tunnel interface, unless your routing design handles it another way. Add firewall policies that permit the required traffic between the internal interface and the VPN interface. Apply the appropriate security profiles and logging for your environment.
Also check whether return traffic has a valid route. A tunnel may show as up while packets fail because the remote network has no route back to the source subnet.
Configure remote access
A remote-access IPsec VPN requires a client configuration that matches the FortiGate’s VPN settings. Depending on the design, users may authenticate with a shared secret, certificates, user credentials, or a combination of methods. For business deployments, use individual identities and strong authentication rather than relying on a shared credential alone.
Plan the client address range so it does not overlap with the user’s home network or the protected networks. Decide whether users should access only selected internal subnets or send all internet traffic through the VPN. Configure the matching routes and firewall policies, and test access with a standard user account before wider rollout. Is Cato a VPN? How Cato SASE and Cato Client Work
Provide users with clear instructions for installing the approved client, importing or creating the connection, and reporting errors. Keep client versions and FortiOS versions supported and up to date.
Diagnose common FortiGate IPsec VPN problems
| Symptom | Likely area | What to check | Useful evidence | Next step |
|---|---|---|---|---|
| Tunnel will not establish | Phase 1 settings | Peer address, IKE version, authentication | VPN negotiation logs | Align phase 1 settings |
| Phase 1 works, phase 2 fails | Phase 2 proposals or selectors | Encryption, integrity, subnets | Phase 2 negotiation logs | Match proposals and selectors |
| Tunnel is up, traffic fails | Routes or policies | Routes, policies, address objects | Traffic and firewall logs | Permit and route the intended traffic |
| Only one direction works | Return path or policy | Routes and policies at both ends | Session and traffic logs | Correct the return path |
| Remote users cannot connect | Client or user configuration | Client settings, credentials, authentication | Client and FortiGate logs | Verify user and client settings |
| Name-based access fails | DNS configuration | DNS servers and name resolution | Client DNS results | Correct DNS settings |
| Tunnel drops intermittently | Connectivity or negotiation | Link stability and tunnel timers | Event and VPN logs | Investigate link and negotiation events |
| Tunnel connects to the wrong peer | Peer identification | Remote gateway and identity settings | IKE logs | Confirm peer address and identity |
Compiled November 2026; check the provider's site for current details.
Troubleshoot common problems
Troubleshoot from the tunnel outward rather than changing several settings at once. How to Enable VPN in Edge: Turn On Microsoft Edge Secure Network
- Phase 1 does not establish: Check peer addresses, reachability, IKE version, authentication details, encryption proposals, and NAT traversal.
- Phase 1 is up, but phase 2 fails: Compare phase 2 proposals, key lifetimes, and local and remote traffic selectors.
- Tunnel is up, but no traffic passes: Verify routes, firewall policies, address objects, and return paths. Confirm that the traffic matches the configured selectors.
- Only some applications fail: Check application ports, security profiles, MTU or fragmentation issues, and overlapping subnet ranges.
- The connection drops intermittently: Review logs, peer stability, rekey settings, and whether a device or ISP is interrupting IKE or IPsec traffic.
Use the FortiGate VPN status page and event logs to see whether negotiation reaches phase 1 and phase 2. For deeper diagnosis, FortiGate’s command-line diagnostics can show IKE negotiation and packet flow. Consult the commands for your FortiOS version, and disable verbose debugging after testing. Make one change at a time, then repeat the same connection test.
Recommendation
For most new deployments, use a route-based FortiGate IPsec VPN with strong, mutually supported cryptographic settings, clearly documented subnets, and narrowly scoped firewall policies. Validate both directions of traffic, keep FortiOS and client software current, and save a copy of the working configuration.
