China Route Planner
IPsec VPN FortiGate: Setup, Configuration, and Best Practices
VPN

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.

Theo Bernard
· 10 min read
nord-vpn-microsoft-edge
nord-vpn-microsoft-edge

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.

NordVPN — fast, secure VPN

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

OptionConnectsBest fitMain requirementTypical trade-off
Site-to-siteTwo or more networksBranch officesPeer gateways and matching settingsNetwork-to-network access
Remote accessIndividual users to a networkTraveling staffUser devices and authenticationClient setup and account management
Route-based tunnelNetworks through a virtual interfaceFlexible routingRoutes and interface policiesMore routing control
Policy-based tunnelNetworks matched by security policiesSimpler, fixed traffic flowsMatching traffic selectorsLess routing flexibility
Static peerGateways with fixed public addressesStable connectionsKnown peer addressAddress changes need updates
Dynamic peerGateway with changing addressDynamic-address sitesCompatible peer identificationMore careful peer configuration

Compiled November 2026; check the provider's site for current details.

VPN prices compared
VPNObfuscationFrom / monthPlanFree planRefundAlipayWeChatUnionPayCryptoWebsite opens in ChinaTrustpilot
ZoogVPNTurn on manually
Shadow
$2.49/mo27 months: $59.99Yes7 days✓✓✓✓Official site blocked; our special link opens (4.4 s)4.2/5 (195 reviews)
NordVPNTurn on manually
Obfuscated Servers / NordWhisper
$3.49/mo27 months: $94.23No30 days?✗✓✓✗ Blocked4.2/5 (51,628 reviews)
ExpressVPN✓ On by default
all servers
$3.00/mo28 months: $84No30 days✗✗✓✗✗ Blocked4.4/5 (29,706 reviews)
Surfshark✓ On by default
Camouflage, with OpenVPN
See siteSee siteNo30 days✗✗✗✓✗ Blocked4.3/5 (31,823 reviews)
Proton VPNTurn on manually
Stealth, free plan too
$2.99/mo12 months: $35.88Yes30 days✗✗✗✓✗ Blocked2.1/5 (1,040 reviews)
Astrill VPNTurn on manually
StealthVPN / OpenWeb
$12.50/mo24 months: $300NoSee site✗✗✗✓✗ Blocked1.3/5 (110 reviews)
Private Internet AccessTurn on manually
Shadowsocks, OpenVPN only
$2.03/mo40 months: $81.2No30 days✗✗✗✗✗ Blocked4.2/5 (11,033 reviews)
CyberGhostTurn on manually
selected servers
$2.19/mo28 months: $61.32No45 days✗✗✗✓✗ Blocked4.0/5 (24,178 reviews)
PureVPNTurn on manually
switch to OpenVPN
$1.69/mo60 months: $101.55No31 days??✗✓✗ Blocked4.4/5 (17,994 reviews)
AdGuard VPN✓ On by default
TrustTunnel
$2.99/mo24 months: $71.76Yes30 days✓✗✓✓Official site blocked; our special link opens (3.7 s)4.3/5 (290 reviews)
MullvadTurn on manually
QUIC / Shadowsocks / LWO
$5.61/mo€5/moNo14 days✗✗✗✓✗ Blocked3.2/5 (192 reviews)
WindscribeTurn on manually
Stealth / WStunnel
$5.75/mo12 months: $69YesSee site✗✗✗✓✗ Blocked4.7/5 (13,355 reviews)
StrongVPNTurn on manually
Scramble, OpenVPN TCP
See siteSee siteNo30 days✓✗✗✗✗ Blocked4.4/5 (2,695 reviews)
LightXtreme 闪连Not listed$7.08/mo12 months: $84.99Yes30 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.

IPsec VPN FortiGate: Setup, Configuration, and Best Practices: Checklist

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 choiceDecide based onCommon pitfall
AuthenticationExisting identity infrastructureMismatched credentials
Phase 1 exchangePeer compatibility and policyDifferent protocol settings
Address assignmentWhether the peer address changesIncorrect peer identification
Tunnel modeRouting and policy needsMissing routes or selectors
Traffic scopeRequired access onlyOverlapping or overly broad ranges
Encryption settingsSecurity policy and compatibilityProposal 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.

IPsec VPN FortiGate: Setup, Configuration, and Best Practices: Key points

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

SymptomLikely areaCheck firstUseful FortiGate checkNext step
Tunnel will not establishIKE settingsPeer address and proposalsVPN event logsMatch Phase 1 settings
Authentication failsCredentials or identityPre-shared key or certificateIKE negotiation logsVerify both peers’ credentials
Tunnel is up, traffic failsRouting or policyRoutes and firewall rulesRouting and policy tablesPermit required traffic
Only some subnets workSelectors or routesLocal and remote networksTunnel status and routesAlign subnet definitions
One-way trafficPolicies or return routeRules in both directionsTraffic logsAdd the missing return path
Connection drops repeatedlyNetwork stabilityLink health and peer reachabilityVPN and interface logsCheck upstream loss and timeouts
DNS names fail, IPs workDNS configurationDNS server reachabilityDNS and traffic logsProvide 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.

© 2026 Wayfarer Lantern Media · Wayfarer Lantern Media Ltd.