NewIP VPN Notes
VPN

FortiGate IPsec VPN: Setup, Configuration, and Troubleshooting

By Ethan Marlowe · · 10 min
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

OptionBest fitConfiguration approachMain consideration
Site-to-siteConnect two networksConfigure a tunnel at both sitesBoth peers must agree on settings
Remote accessConnect individual usersConfigure client access and authenticationClient and user settings must match
Route-based tunnelFlexible routing needsUse a virtual IPsec interface and routesRouting must point traffic into the tunnel
Policy-based tunnelPolicy-driven traffic controlDefine policies for tunnel trafficPolicies must match the intended traffic
IKEv1Peer requires IKEv1Select IKEv1 on both endsPeer compatibility is required
IKEv2Peer supports IKEv2Select IKEv2 on both endsPeer compatibility is required

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 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.

FortiGate IPsec VPN: Setup, Configuration, and Troubleshooting: Checklist

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

SettingLocal sideRemote sideWhat to check
Peer addressRemote gateway addressLocal gateway addressAddresses point to the opposite peer
Phase 1 modeSelected IKE version and proposalMatching IKE version and proposalIKE and encryption settings agree
AuthenticationShared secret or certificateMatching authentication methodCredentials and certificates are valid
Phase 2 selectorsLocal protected subnetRemote protected subnetEach side’s local and remote networks are reversed
RoutingRoute to remote subnetRoute to local subnetRoutes use the tunnel interface
Firewall policyAllow local-to-remote trafficAllow remote-to-local trafficPolicies permit the required services
NATDisabled for protected traffic, as neededDisabled for protected traffic, as neededNAT does not alter tunnel selectors
Dead peer detectionEnabled or configured as requiredCompatible peer behaviorSettings 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:

  1. Confirm that Phase 1 is established.
  2. Confirm that the relevant Phase 2 security association is active.
  3. Check that the FortiGate has a route to the remote subnet.
  4. Review firewall policies in both directions.
  5. 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.

FortiGate IPsec VPN: Setup, Configuration, and Troubleshooting: Key points

Match common symptoms to FortiGate IPsec checks

SymptomFirst checkLikely areaNext action
Tunnel will not establishPeer address and reachabilityConnectivityVerify WAN access and peer details
Phase 1 failsIKE version and authenticationPhase 1 settingsCompare proposals and credentials
Phase 2 failsNetwork selectors and proposalsPhase 2 settingsMatch subnets and encryption settings
Tunnel is up, but traffic failsRoutes and firewall policiesTraffic handlingConfirm routes and policies in both directions
Only some traffic passesSelectors and policy scopeTraffic matchingCheck protected networks and services
Tunnel drops repeatedlyPeer reachability and DPDLink stabilityReview peer status and DPD compatibility
Name-based access failsDNS settings and reachabilityName resolutionTest access by IP and verify DNS
Changes do not take effectActive configuration and logsConfiguration stateConfirm 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.

© 2026 Northlight Network Notes · Northlight Network Notes LLC