High Plains Science Notes
FortiGate IPsec VPN: Configuration, Troubleshooting, and Best Practices
VPN

FortiGate IPsec VPN: Configuration, Troubleshooting, and Best Practices

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

Odessa Lindqvist-Marwa
· 9 min read

FortiGate IPsec is Fortinet’s implementation of IPsec VPN technology, used to encrypt traffic between two networks or connect remote users to a FortiGate firewall. To set one up, configure matching Phase 1 and Phase 2 parameters on both endpoints, define which traffic should use the tunnel, and add the necessary routes and firewall policies. The exact steps depend on whether you are building a site-to-site VPN or a remote-access VPN.

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 options

OptionTypical useTunnel typeClient requirementsMain consideration
Site-to-siteConnect office networksGateway-to-gatewayFortiGate or compatible peerMatch Phase 1 and Phase 2 settings
Remote accessConnect individual usersClient-to-gatewayCompatible VPN clientAuthenticate and authorize each user
Route-basedFlexible network routingInterface-basedPeer supportConfigure routes and policies
Policy-basedPolicy-defined traffic flowsSelector-basedPeer supportSelectors must match on both ends
IKEv1Legacy peer compatibilityNegotiated IPsecPeer supportUse only when needed
IKEv2Modern IPsec connectionsNegotiated IPsecPeer supportPrefer when both peers support it

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 the endpoints and encrypting data as it travels over an untrusted network, such as the internet. A FortiGate can act as either end of a tunnel, or as the gateway that remote clients connect to.

Common uses include:

  • Connecting two offices securely over the internet.
  • Linking an office to a cloud network or another organization.
  • Allowing employees to connect remotely to internal resources.
  • Creating redundant VPN paths between locations.

A typical site-to-site VPN has two main stages. Phase 1 establishes and authenticates the secure connection between the VPN peers. Phase 2 negotiates the security settings and traffic selectors used to protect data through the tunnel. Both sides must agree on compatible settings.

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

Site-to-site and remote-access VPNs

Choose the VPN type based on who or what needs access. A site-to-site tunnel usually connects defined networks, while remote access connects individual users or devices. FortiGate L2TP: Setup, Compatibility, and Security

VPN type Typical connection Main configuration focus
Site-to-site FortiGate to another firewall or VPN gateway Peer addresses, network selectors, routes, and policies
Remote access User device to FortiGate Client authentication, address assignment, user access, and client settings

FortiGate supports different authentication approaches, including pre-shared keys and certificates. For remote access, deployments may also use user authentication and multifactor authentication. Available options and menus can vary by FortiOS version and client software, so check the documentation for the software versions in use.

How to configure a FortiGate IPsec tunnel

Before configuring the tunnel, collect the information for both endpoints. Confirm each device’s public address, protected network ranges, authentication method, and required encryption settings. Make sure the address ranges do not overlap.

Configure Phase 1

In the FortiGate interface, create an IPsec tunnel and enter the peer information. Configure the authentication method and a strong pre-shared key, or select the appropriate certificate. Choose compatible IKE and encryption settings for both peers.

Where possible, use current secure algorithms and avoid outdated options such as weak encryption or hashing. If the peer supports IKEv2, it is commonly preferred for new deployments, but the other endpoint must support and be configured for it as well. FortiGate VPN Client: How to Choose, Install, and Troubleshoot

Configure Phase 2

Define the local and remote subnets that should pass through the tunnel. These are often called traffic selectors or proxy IDs. Set compatible encryption and integrity options, and consider enabling Perfect Forward Secrecy when supported and required by your security policy.

The Phase 2 settings must match the remote device. For example, if one side defines the local network as 10.10.0.0/16, the other side should define that same network as the remote network, with the corresponding local and remote roles reversed.

Add routes and firewall policies

A tunnel can be established without carrying useful traffic. Create firewall policies that allow the intended traffic from the local network to the VPN interface, and add the return policy if your design requires it. Apply appropriate security profiles and restrict access to only the services and networks users need.

Depending on the tunnel and routing design, you may also need a static route, a dynamic routing configuration, or policy-based routing. Ensure the remote network routes return through the VPN. A missing or incorrect return route is a frequent reason traffic works in only one direction. Free VPN Where You Can Choose Location: What to Use and What to Check

Compare common FortiGate IPsec troubleshooting checks

SymptomCheck firstLikely areaUseful actionSuccess indicator
Tunnel will not establishPeer reachabilityNetwork or firewallCheck WAN path and UDP 500/4500IKE negotiation starts
IKE negotiation failsPhase 1 settingsAuthentication or proposalMatch encryption, authentication, and DH settingsPhase 1 comes up
Child SA failsPhase 2 settingsSelectors or proposalMatch subnets and Phase 2 parametersPhase 2 comes up
Tunnel is up, traffic failsRoutes and policiesFortiGate forwardingCheck routes, policies, and NATTraffic passes
One direction worksReturn pathRouting or policyVerify both directions and peer routesTwo-way traffic works
VPN drops intermittentlyLogs and link healthNetwork or timersReview events and peer stabilityTunnel stays established

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

Security and maintenance best practices

A working tunnel should also be carefully scoped and maintained. Use these practices:

  • Use a unique, high-entropy pre-shared key, or certificates where appropriate.
  • Prefer modern IKE, encryption, and authentication algorithms supported by both peers.
  • Limit Phase 2 selectors and firewall policies to required networks and services.
  • Use separate policies for different trust levels instead of broad “allow all” rules.
  • Monitor tunnel status, traffic, and authentication events.
  • Keep FortiOS and VPN client software updated according to your organization’s change process.
  • Document peer addresses, networks, negotiated settings, and recovery steps.
  • Plan for failover if the connection is important to business operations.

For remote-access VPNs, protect user accounts with strong authentication and multifactor authentication when available. Assign users only the access they need, and review accounts and policies regularly. Free VPN Choose Location: How to Pick a Safe Service

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

Troubleshooting FortiGate IPsec

Start by checking whether Phase 1 is up, then whether Phase 2 is established. If Phase 1 fails, inspect peer reachability, authentication details, IKE version, and proposal compatibility. If Phase 1 succeeds but Phase 2 does not, compare traffic selectors and Phase 2 proposals on both devices.

When the tunnel appears up but traffic fails, check:

  • Firewall policies in both directions.
  • Routes to the remote networks and the return route.
  • Whether the source and destination addresses match the Phase 2 selectors.
  • Overlapping subnets or incorrect network masks.
  • NAT settings that may change traffic before it enters the tunnel.
  • Upstream firewalls or internet providers blocking required VPN traffic.

Use the FortiGate VPN monitor and event logs to identify negotiation errors and tunnel status. For more detail, FortiGate’s command-line diagnostics can show IKE negotiation and tunnel information. Use them carefully, and consult the Fortinet documentation for commands appropriate to your FortiOS version. Avoid leaving verbose debugging enabled after testing, since it can generate substantial log output.

Compare FortiGate IPsec security and maintenance practices OVPN Explained: What It Is and How to Use It

PracticeSecurity valueOperational valueRecommendation
Use strong proposalsReduces weak cryptographyImproves configuration consistencyPrefer modern supported algorithms
Use IKEv2 when supportedUses a modern negotiation protocolSimplifies current deploymentsAvoid legacy protocols where possible
Use strong authenticationHelps prevent unauthorized accessMakes peer identity explicitProtect credentials and certificates
Limit access policiesReduces unnecessary reachabilityMakes rules easier to reviewAllow only required networks and services
Keep FortiOS maintainedAddresses known issuesImproves reliabilityApply tested updates
Monitor VPN logsHelps detect failures and suspicious activitySpeeds diagnosisReview events and tunnel status regularly
Back up configurationsSupports recoveryReduces restoration effortKeep a protected, current backup
Review settings periodicallyHelps remove outdated accessKeeps peers and policies accurateRecheck proposals, routes, and users

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

Recommendation

For a reliable FortiGate IPsec deployment, begin with a clear network and access plan, then configure matching Phase 1 and Phase 2 settings on both peers. Add only the routes and policies required, verify traffic in both directions, and use logs to resolve negotiation or routing issues. Before production use, review the configuration against current Fortinet guidance and your organization’s security requirements.

© 2026 Sagebrush Field Media · Sagebrush Field Media LLC