手机VPN评测台
VPN

IPsec VPN FortiGate: Setup, Configuration, and Best Practices

许嘉言··10 min
IPsec VPN FortiGate: Setup, Configuration, and Best Practices

Learn how to configure a FortiGate IPsec VPN, verify connectivity, troubleshoot common issues, and secure remote or site-to-site access.

A FortiGate IPsec VPN securely connects two networks or gives remote users encrypted access to internal resources. To configure one, define the tunnel’s Phase 1 and Phase 2 parameters, set routes and firewall policies, and verify that both VPN peers use compatible settings. FortiGate offers configuration options through its web interface and command-line interface (CLI), with the exact steps depending on the FortiOS version and whether the connection is site-to-site or remote access.

Choose the right FortiGate IPsec VPN deployment

OptionBest forPeer typeTypical accessMain planning point
Site-to-siteConnecting offices or networksAnother VPN gatewayNetwork to networkMatch encryption and authentication settings
Remote accessConnecting individual usersVPN clientUser to company networkChoose client and user authentication
Route-based tunnelFlexible routing and policiesGateway or clientRouted trafficPlan tunnel interfaces and routes
Policy-based tunnelPolicy-defined traffic selectionGatewaySelected trafficDefine matching traffic selectors
Static routingStable, known network pathsGatewaySpecific remote subnetsConfigure routes at both ends
Dynamic routingNetworks with changing pathsCompatible routing peerAdvertised networksConfirm routing protocol support

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 an IPsec VPN on FortiGate does

IPsec protects network traffic by authenticating VPN peers and encrypting data as it travels over an untrusted network, such as the internet. A FortiGate can act as one endpoint in a tunnel to another firewall, router, cloud gateway, or remote-access client.

The two common use cases are:

  • Site-to-site VPN: Connects networks at different locations, such as a branch office and headquarters.
  • Remote-access VPN: Connects an individual user’s device to a private network. The client and available features depend on the FortiOS release and deployment requirements.

An IPsec tunnel is not the same as a firewall policy. The tunnel establishes the encrypted path, while routes and policies determine which traffic can use it. A tunnel can show as established even when users cannot reach the intended resources because routing or policy configuration is incomplete.

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

Plan the configuration

Before configuring the FortiGate, collect the settings for both VPN endpoints. The values must be compatible. Mismatched proposals, authentication details, or network selectors commonly prevent a tunnel from coming up. FortiClient VPN for Windows 11: Download, Install, and Connect

For a typical site-to-site VPN, identify:

  • The public IP address or hostname of each VPN peer
  • The local and remote private subnets
  • The authentication method, such as a pre-shared key or certificates
  • Phase 1 encryption, integrity, and Diffie-Hellman settings
  • Phase 2 encryption, integrity, and key lifetime settings
  • Whether either endpoint uses a dynamic public IP address
  • The routes and services that should be permitted through the tunnel

Avoid overlapping subnets at the two sites. If both locations use the same network range, routing becomes ambiguous and may require network address translation or a redesign.

Connection type Typical peer Main planning consideration
Site-to-site Another firewall or VPN gateway Match network selectors and routing on both ends
Remote access VPN client on a user device Choose an appropriate client, authentication method, and user access policy
Dynamic peer Endpoint with a changing public IP Use a supported peer-identification method and account for changing addresses

Configure a site-to-site tunnel

In the FortiGate web interface, open the IPsec VPN area and create a new tunnel. Menu names can differ by FortiOS version, so consult the documentation for the version running on your device. A setup wizard may be available, but review its generated settings rather than assuming every default fits your environment.

Set Phase 1

Phase 1 establishes and authenticates the secure relationship between the VPN peers. Configure the remote gateway address or supported dynamic-peer option, authentication method, and compatible security proposals. Use a strong, unique pre-shared key if that method is selected, and store it securely. Is Cato a VPN? How Cato Networks Connects and Protects Users

Where possible, use current, secure cryptographic algorithms supported by both endpoints. Do not weaken settings simply to make a connection work without first checking the peer configuration and device capabilities.

Set Phase 2

Phase 2 protects traffic carried inside the tunnel. Define the local and remote networks, often called traffic selectors or encryption domains, and configure matching proposals on both devices. If one side specifies a subnet while the other specifies a different range, the peers may fail to establish Phase 2 or may pass only some traffic.

After creating the tunnel, add or verify:

  • A route to the remote subnet through the IPsec interface or tunnel
  • A firewall policy from the local network to the VPN
  • A corresponding policy for traffic returning from the VPN, when required by the design
  • Appropriate address objects and service restrictions

FortiGate policies are stateful, but the policy direction and interface selection still matter. Limit access to the necessary destination networks and services rather than allowing unrestricted traffic. Free Clash: How to Play Clash Games for Free

Compare configuration choices before building a tunnel

DecisionConsiderationVerify before deployment
DeploymentNetwork link versus individual usersPeer and client requirements
AuthenticationSimpler setup versus certificate managementMatching credentials and trust
Traffic selectionConvenience versus least privilegeLocal and remote selectors
RoutingPredictable paths versus adaptabilityReturn routes and route exchange
AddressingAvoid overlap across connected networksSubnet conflicts
Client setupCompatibility and support needsClient and FortiGate settings

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

Configure remote access

For remote-access IPsec, configure the FortiGate to accept client connections, define the authentication method, and assign users or groups to the appropriate access policy. Configure a client address range that does not conflict with networks already in use.

Decide whether clients should use split tunneling or send all internet traffic through the VPN: Proton VPN Extension for Edge: How to Install and Use It

  • With split tunneling, only specified private networks use the tunnel.
  • With full tunneling, internet and private-network traffic can be routed through the FortiGate, subject to its policies and capacity.

Provide users with the correct client settings and explain how to protect their credentials and devices. For organizations, multi-factor authentication and individual accounts generally provide stronger control than sharing one VPN secret. Confirm that user access is limited to the resources each group needs.

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

Verify and troubleshoot connectivity

Test the tunnel from both locations. First check whether Phase 1 and Phase 2 are established in the FortiGate VPN monitoring view. Then test access to a specific host or service in the remote subnet. A successful tunnel status alone does not prove that application traffic is flowing.

If the connection fails, check these items in order:

  1. Peer reachability: Confirm that the gateways can reach each other over the internet and that upstream equipment is not blocking required IPsec traffic.
  2. Phase 1 agreement: Compare peer addresses, authentication, proposals, and related settings.
  3. Phase 2 agreement: Verify encryption proposals, lifetimes, and local and remote network selectors.
  4. Routing: Confirm that each endpoint has a route to the other side’s networks.
  5. Firewall policies: Check interface direction, source and destination objects, services, and any relevant security profiles.
  6. Address overlap or NAT: Look for duplicate subnets or unintended address translation affecting VPN traffic.
  7. Logs and diagnostics: Review VPN event logs and use FortiGate diagnostic tools appropriate to the FortiOS version.

Change one setting at a time and retest. This makes it easier to identify the cause and avoids introducing unnecessary security exceptions. How to Fix Virgin TV Go App Not Working With VPN

Troubleshoot and maintain an IPsec VPN

Symptom or taskCheckLikely areaRecommended actionPrevention
Tunnel does not establishPhase 1 status and logsPeer or authentication settingsCompare gateway, credentials, and proposalsDocument matching parameters
Tunnel is up but traffic failsPhase 2 selectors and policiesTraffic selection or firewall rulesCheck selectors and allow policiesReview rules during changes
One-way connectivityRoutes and return pathRoutingConfirm both sides have valid routesMaintain an up-to-date route plan
Intermittent connectivityLogs and peer reachabilityNetwork stability or timersCheck links and negotiation settingsMonitor tunnel health
Subnets cannot communicateLocal and remote address rangesAddress overlapRework conflicting ranges or routingCheck overlap during planning
Routine security upkeepFirmware and configurationMaintenanceApply updates and review settingsSchedule regular reviews

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

Security and maintenance best practices

A reliable IPsec VPN needs ongoing care as well as a correct initial setup. Use strong authentication and modern cryptographic settings supported by both peers. Keep FortiGate firmware and VPN client software maintained, following your organization’s change-control process.

Also consider these practices: BSNL VPN.ovpn File: What It Is and How to Get One Safely

  • Use unique credentials or keys for each connection and rotate them when appropriate.
  • Restrict VPN policies to required networks, users, and services.
  • Monitor tunnel status, authentication events, and configuration changes.
  • Document peer details, subnets, approved algorithms, and recovery steps.
  • Back up the FortiGate configuration securely before significant changes.
  • Test failover and reconnection behavior if the VPN supports redundant links.

Recommendation

For most deployments, configure the FortiGate IPsec VPN with matching peer settings, narrowly defined network selectors, explicit routes, and least-privilege firewall policies. Validate both tunnel status and real application traffic, then document and monitor the connection. If the peers cannot agree on secure settings or the tunnel remains unstable, compare their configurations and FortiOS documentation before lowering security controls.

© 2026 影川数码评测 · Yingchuan Digital Review Ltd.