VPN

Fortigate ipsecvpn: How to Configure and Troubleshoot a Secure VPN

韩知予··10 min
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.

nord-vpn-microsoft-edge
nord-vpn-microsoft-edge

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.

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 →

FortiGate VPN options at a glance

OptionTypical useEndpointConfiguration approachBest fit
Site-to-site IPsecConnect office networksFortiGate or compatible gatewayConfigure matching tunnel settings at both endsPermanent network links
Remote-access IPsecConnect individual usersFortiGate and client deviceConfigure a dial-up tunnel and user accessUsers needing network access while away
FortiClient-based accessConnect individual usersFortiGate and FortiClientSet up the VPN on FortiGate and configure the clientManaged client devices
Third-party IPsec clientConnect individual usersFortiGate and compatible clientMatch authentication and tunnel settingsEnvironments using another client
Route-based IPsecCarry traffic between routed networksGateways at both endsUse a virtual tunnel interface and routesFlexible routing requirements
Policy-based IPsecMatch traffic to VPN policiesGateways at both endsDefine policies for traffic entering the tunnelPolicy-driven configurations

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

Fortigate ipsecvpn: How to Configure and Troubleshoot a Secure VPN: Checklist

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

CheckLocal gatewayRemote gatewayWhat to verifyCommon issue
Peer addressPublic IP or hostnamePublic IP or hostnameEach side points to the otherIncorrect or changed peer address
Phase 1 proposalEncryption and authenticationMatching proposalAlgorithms and DH settings matchProposal mismatch
AuthenticationPre-shared key or certificateMatching credentialsBoth peers use compatible authenticationIncorrect key or certificate
Phase 2 selectorsLocal networkRemote networkSelectors correspond in reverseSubnet mismatch
RoutingRoute to remote networkRoute to local networkVPN traffic uses the tunnelMissing or incorrect route
Firewall policyAllow local-to-remote trafficAllow remote-to-local trafficPolicies permit intended trafficMissing policy or service
NAT settingsExempt VPN traffic where neededExempt VPN traffic where neededNAT does not alter protected trafficUnexpected address translation
Tunnel statusMonitor local tunnelMonitor remote tunnelBoth peers establish the tunnelTunnel 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.

Fortigate ipsecvpn: How to Configure and Troubleshoot a Secure VPN: Key points

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 taskFirst checkNext actionSecurity considerationWhen to escalate
Tunnel will not establishPeer reachability and tunnel statusCompare Phase 1 settings on both peersAvoid weakening encryption to force a matchPeer remains unreachable
Phase 1 succeeds, Phase 2 failsProposals and traffic selectorsMatch encryption, authentication, and subnetsKeep approved cryptographic settingsNegotiation still fails
Tunnel is up, traffic failsRoutes and firewall policiesCheck selectors, policies, and NAT exemptionPermit only required trafficTraffic remains blocked
Users cannot connectClient settings and authenticationCheck credentials, user groups, and access rulesUse strong authenticationValid users still cannot connect
Intermittent connectionLogs, peer availability, and tunnel stabilityCheck routing and configuration changesPreserve logs for reviewDisconnections continue
Configuration changesExisting VPN settings and dependenciesDocument and test changes before rolloutMaintain a recovery pathChange causes service disruption
Routine maintenanceFirmware and security advisoriesReview updates and verify tunnel operationApply updates through change controlUpdate affects VPN behavior
Access reviewUser accounts and VPN policiesRemove unnecessary access and credentialsApply least privilegeUnexpected 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