VPN软件免费版评测
VPN

FortiGate IPsec VPN: Setup, Configuration, and Troubleshooting

阮星澜··9 min
FortiGate IPsec VPN: Setup, Configuration, and Troubleshooting

Learn how FortiGate IPsec VPN works, how to configure a site-to-site tunnel, and how to diagnose common connection issues.

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

FortiGate IPsec VPN lets you securely connect two networks or provide remote users with encrypted access to a private network. A site-to-site VPN is configured between FortiGate devices or another compatible VPN gateway. A remote-access VPN connects an individual device to the network. A working tunnel requires compatible encryption settings, correct routing, and firewall policies that allow the intended traffic.

Compare FortiGate IPsec VPN deployment options

OptionConnectsTypical useMain setup focusAccess scope
Site-to-siteTwo or more networksBranch connectivityMatching tunnel settingsSelected subnets
Remote accessIndividual users to a networkWork-from-anywhere accessUser authenticationAssigned network resources
Route-based tunnelNetworks through a virtual interfaceFlexible routingInterface and route configurationControlled by routes and policies
Policy-based tunnelNetworks through security policiesPolicy-defined connectivityMatching encryption and selectorsDefined by policies
FortiGate to FortiGateFortiGate devicesFortinet-managed sitesCompatible phase settingsFirewall-controlled
FortiGate to third-partyDifferent firewall vendorsMixed-vendor sitesInteroperable proposals and settingsFirewall-controlled

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 VPN peers and encrypting data sent through a tunnel. FortiGate supports IPsec VPN for site-to-site connectivity and remote access, with configuration options that vary by FortiOS version and deployment.

A site-to-site tunnel is useful when, for example, a branch office needs access to applications at a head office. Users and devices on each side send eligible traffic through the tunnel according to routing and policy rules. Remote-access VPN, by contrast, lets an individual client connect from outside the organization.

IPsec tunnels commonly use two negotiation stages:

  • Phase 1 establishes an authenticated, encrypted connection between VPN peers.
  • Phase 2 negotiates the protection and traffic selectors for data sent through the tunnel.

Both peers must agree on the relevant settings. A tunnel can appear configured but fail to pass traffic if its selectors, routes, or policies do not match the intended design. FortiClient VPN: What It Does, How to Connect, and What to Know

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

Choose a VPN deployment

Select the deployment type before configuring FortiGate. The choice affects how peers, addresses, and access rules are defined.

Deployment Connects Common use
Site-to-site Two networks through VPN gateways Linking offices or a branch to a data center
Remote access A client device to a VPN gateway Giving an employee secure access while away from the office

For a site-to-site VPN, identify the public address or hostname of each peer and the private subnets that should communicate. Check that those subnets do not overlap. Duplicate address ranges can make routing ambiguous even when the tunnel itself is established.

For remote access, decide which users or groups can connect, which internal resources they can reach, and how client addresses will be assigned. Follow the client and authentication guidance for your FortiOS release and chosen deployment method.

Configure a site-to-site tunnel

FortiGate configuration is available through the web interface and the command-line interface. Menu names and options can differ across FortiOS versions, so use documentation for the version installed on your firewall. Clash Free: What It Means and How to Prevent Conflicts

Before configuration, gather:

  • The external interface and peer’s public IP address or hostname
  • The local and remote private subnets
  • A securely shared pre-shared key, or the certificate and identity details if using certificate authentication
  • The encryption, authentication, and Diffie–Hellman settings supported by both peers
  • The expected tunnel lifetime and Phase 2 traffic selectors

In the FortiGate interface, create an IPsec VPN tunnel and select the appropriate site-to-site setup. Configure Phase 1 to identify and authenticate the remote peer, then define Phase 2 for the subnets or traffic that should use the VPN. Use secure, mutually supported cryptographic settings. Avoid outdated algorithms where possible.

Next, configure how traffic reaches the tunnel. Depending on the design, this may involve static routes or dynamic routing. Add firewall policies for traffic traveling from the local network to the VPN interface and, if required, for traffic returning from the VPN to the local network. Limit policies to the necessary source and destination networks and services rather than allowing unrestricted access.

On the remote peer, configure corresponding settings. The peers’ proposals, authentication, and traffic selectors must be compatible. For a basic site-to-site connection, verify that the local subnet on one side is the remote subnet on the other. VPN for Microsoft Edge Free: Safe Options and What to Know

Site-to-site IPsec configuration decision guide

SettingWhat to configureMust match peer?Why it mattersCheck when it fails
IKE versionCompatible IKE versionYesEstablishes the negotiation methodPeer compatibility
AuthenticationShared secret or certificatesYesVerifies the peerCredentials and certificates
Phase 1 proposalsEncryption and integrity algorithmsYesProtects IKE negotiationProposal mismatch
Diffie-Hellman groupCompatible key exchange groupYesCreates shared key materialGroup mismatch
Phase 2 proposalsEncryption and integrity algorithmsYesProtects tunnel trafficProposal mismatch
Local and remote subnetsNetwork selectorsYesDefines traffic covered by the tunnelSelector mismatch
Peer addressRemote gateway addressYesIdentifies the other endpointAddress and reachability
Routes and policiesPaths and permitted trafficNoMoves and authorizes trafficMissing route or policy

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

Verify the connection and control access

After saving the configuration, check the VPN monitor or tunnel status in the FortiGate interface. A tunnel may be up without carrying useful traffic, so test access to a permitted host or service on the other network.

Review these items: NordVPN Login: How to Sign In and Fix Common Account Issues

  • Phase 1 status: The peers can reach and authenticate each other.
  • Phase 2 status: A data connection has been negotiated for the intended traffic.
  • Routing: The FortiGate has a valid route to the remote subnet through the tunnel.
  • Firewall policies: Policies allow the required traffic in the necessary direction.
  • Return path: The remote network has a route back to the local subnet.
  • Address overlap: Local and remote networks use distinct ranges.

Apply least-privilege access rules. Permit only the networks, protocols, and services users need, and use appropriate authentication and account controls. Keep FortiOS and VPN client software updated, protect shared secrets, and review logs for unexpected connection attempts.

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

Troubleshoot common problems

When a FortiGate IPsec VPN does not connect, work through the negotiation and traffic path in order. Changing multiple settings at once can make the cause harder to identify.

The tunnel does not establish: Confirm that the peer addresses are correct and reachable, and that intermediate firewalls or network devices allow the required IPsec traffic. Check for matching Phase 1 proposals, authentication methods, peer identities, and pre-shared keys. If NAT is present, verify that the setup accounts for it.

Phase 1 works, but Phase 2 fails: Compare the Phase 2 proposals and traffic selectors on both peers. Check that the local and remote subnets are mirrored correctly and that the peers use compatible lifetimes and supported cryptographic settings. Urban VPN Extension: Features, Setup, and What to Consider

The tunnel is up, but traffic fails: Verify routes, firewall policies, address objects, and the destination host’s own firewall. Check that return traffic follows a valid path. Also confirm that the test traffic matches the configured selectors and that NAT is not unintentionally changing addresses.

Connections drop or behave inconsistently: Review logs and tunnel statistics for negotiation errors, rekey failures, or packet loss. Check whether network changes, mismatched lifetimes, or unstable internet connectivity are interrupting the tunnel. FortiGate diagnostic commands can provide more detail. Use the commands documented for your FortiOS version.

Connection symptoms and first troubleshooting checks

SymptomLikely areaFirst checkFortiGate checkNext action
Tunnel will not establishPhase 1Peer address and reachabilityIKE settings and logsAlign IKE and authentication settings
Authentication failsCredentialsShared secret or certificatePeer identity and authentication logsCorrect credentials or identity
Phase 1 succeeds, Phase 2 failsPhase 2Proposals and selectorsPhase 2 configurationMatch proposals and subnet selectors
Tunnel is up, traffic failsRouting or policyRoutes and firewall policiesRoute and policy lookupAdd or correct route and policy
Only one direction worksReturn path or policyRoutes at both endsSession and traffic logsFix reverse route or access rule
Some subnets work, others failSelectors or policyLocal and remote subnet definitionsTunnel selectors and policiesInclude intended subnets
Tunnel drops repeatedlyNetwork stabilityInternet path and peer availabilityVPN event logsInvestigate link stability and negotiation settings

Compiled November 2026; check the provider's site for current details. Cisco VPN AnyConnect: What It Is and How to Connect

Recommendation

Start with a clearly defined network design, use strong compatible IPsec settings, and configure only the routes and policies needed for the connection. Verify Phase 1, Phase 2, and end-to-end traffic separately. For production deployments or persistent negotiation failures, consult the FortiOS documentation for your release or ask a qualified network administrator to review both VPN peers.

© 2026 青枫软件评测 · Qingfeng Software Review Ltd.