遊戲連線站
VPN

IPsec VPN FortiGate: Setup, Configuration, and Troubleshooting

By 鍾晏青 · · 10 min
IPsec VPN FortiGate: Setup, Configuration, and Troubleshooting

Learn how an IPsec VPN on FortiGate works, how to configure it, and how to troubleshoot common connection problems.

An IPsec VPN on a FortiGate firewall provides an encrypted connection between two networks or between a remote device and a private network. For a site-to-site VPN, configure matching IPsec settings on both gateways, add routes to the remote networks, and create firewall policies that allow the intended traffic. For remote access, use a compatible client and an appropriate authentication method. The exact steps vary by FortiOS version and network design, but the core requirements are the same: the peers must negotiate compatible settings, and the firewall must know how to route and permit traffic through the tunnel.

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 usePeer typeConfiguration focusAccess scope
Site-to-site tunnelConnect two networksAnother VPN gatewayMatching Phase 1 and Phase 2 settingsSelected network subnets
Remote-access tunnelConnect individual usersUser deviceUser authentication and client settingsAuthorized internal resources
Route-based site-to-siteConnect routed networksAnother VPN gatewayTunnel interface and routesNetworks allowed by routing and policy
Policy-based site-to-siteMatch traffic by policyAnother VPN gatewayEncryption domains and firewall policiesTraffic matching the policy
Dial-up IPsecAccept connections from changing peer addressesDynamic peerPeer identification and authenticationConfigured networks and policies
Site-to-site with static peerConnect a known gatewayFixed public addressPeer address and matching proposalsSelected network subnets

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 IP traffic by authenticating peers and encrypting data between them. A FortiGate can act as one endpoint of a tunnel to another firewall, router, cloud gateway, or remote-access client.

The two common arrangements are:

  • Site-to-site: Connects networks in separate locations, such as a main office and a branch.
  • Remote access: Connects an individual user’s computer or mobile device to a private network.

A typical site-to-site tunnel has two negotiation stages. Phase 1 establishes a secure channel between the VPN peers. Phase 2 negotiates the security association used to protect traffic between the networks. Both phases must succeed before the tunnel can carry data.

An established tunnel does not automatically mean that users can reach resources. Routing, firewall policies, address selectors, and local network configuration must also be correct. FortiClient VPN for Windows 11: Download, Install, and Connect

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

Information to gather before configuration

Plan the tunnel before changing settings. For a site-to-site connection, document the network details at both ends and agree on the VPN parameters with the administrator of the other gateway.

Setting What to confirm
Peer address Public IP address or hostname of the other VPN gateway
Local and remote networks The private subnets that should communicate
Authentication A pre-shared key or certificate-based authentication
Phase 1 parameters IKE version, encryption, integrity, Diffie-Hellman group, and lifetime
Phase 2 parameters Encryption, integrity, selectors, and lifetime
Routing Static routes, dynamic routing, or policy-based forwarding
Firewall access Which services and destinations the tunnel should allow

Choose strong, supported cryptographic settings and follow organizational policy. Avoid weak or deprecated algorithms, and use a long, unique pre-shared key if that is the agreed authentication method. If one side is behind NAT, confirm that the peers can use NAT traversal. Also check that UDP 500 and UDP 4500, and IP protocol 50 where applicable, are not blocked along the path.

How to configure a site-to-site tunnel

In FortiOS, the VPN can generally be configured through the GUI or the CLI. Menu names and available options can change between releases, so use the documentation that matches the FortiOS version installed on the device.

A standard configuration process is: Is Cato a VPN? How Cato Networks Secure Remote Access

  1. Create the IPsec tunnel. Select a site-to-site or custom tunnel type and identify the remote gateway.
  2. Configure Phase 1. Set the IKE version, peer authentication, and agreed cryptographic parameters.
  3. Configure Phase 2. Specify the local and remote traffic selectors and matching encryption settings.
  4. Add routing. Route the remote subnet through the IPsec interface or use the routing design supported by the deployment.
  5. Create firewall policies. Permit only the required traffic from the local network to the VPN and, where needed, from the VPN back to the local network.
  6. Configure the other peer. Make sure its settings match. The local and remote network definitions appear reversed on the opposite gateway.
  7. Test the connection. Generate traffic between hosts on the two networks and confirm that the tunnel establishes and traffic passes.

A route-based tunnel uses an interface for the VPN connection and is commonly suited to flexible routing and policy control. A policy-based configuration ties traffic selection more directly to the VPN rules. Use the approach appropriate to the FortiOS release and network design, and do not mix assumptions from different configuration models.

Information to gather before configuring a FortiGate IPsec VPN

ItemNeeded forWhat to confirmWhy it matters
FortiGate model and FortiOS versionBothDevice capabilities and interface namesGuides compatible setup steps
Local and remote subnetsSite-to-siteNetwork addresses and masksDefines traffic to protect
Peer addressSite-to-sitePublic IP or dynamic-peer detailsIdentifies the remote gateway
Authentication methodBothPre-shared key or certificateMust match at both ends
Phase 1 settingsBothEncryption, authentication, and key exchangeProposals must be compatible
Phase 2 settingsBothEncryption, authentication, and traffic selectorsDefines protected traffic
WAN and routing detailsSite-to-siteEgress interface and route requirementsEnables tunnel reachability
User and client requirementsRemote accessAccounts, groups, and client compatibilityControls user connection and access
Firewall access requirementsBothPermitted services and destination resourcesAllows intended traffic through

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

Remote-access IPsec VPNs

For remote users, the FortiGate acts as the VPN gateway and the user connects with a compatible client. FortiClient is one option in Fortinet environments, but client support and setup requirements depend on the operating system, FortiOS version, and authentication design. Free Clash: How to Play Clash of Clans for Free

A remote-access deployment typically requires:

  • A user group or identity source, such as local accounts or an organization’s authentication service.
  • A defined IP address range for VPN clients.
  • Access policies that limit users to the resources they need.
  • DNS settings that let users resolve internal hostnames when required.
  • A plan for split tunneling, which determines whether all user traffic or only traffic for private networks goes through the VPN.

Use multi-factor authentication where available, protect account credentials, and restrict access by user group or role. Decide whether clients should receive access to a narrow set of internal subnets rather than the entire corporate network. Test from an external connection, since testing from inside the same network may not reproduce the user’s actual path.

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

Troubleshooting a FortiGate IPsec VPN

Work through the connection in order rather than changing multiple settings at once. First establish whether Phase 1 and Phase 2 are up. Then verify that traffic is routed and permitted.

Common checks include: Proton VPN Extension for Edge: How to Install and Use It

  • Phase 1 does not establish: Confirm the peer IP or hostname, reachability, authentication details, IKE version, and Phase 1 proposals. Check for blocked VPN traffic or a NAT device affecting the path.
  • Phase 1 is up but Phase 2 is down: Compare Phase 2 encryption and integrity settings, lifetimes, and local and remote selectors. Ensure the subnet definitions are reversed correctly at the other peer.
  • The tunnel is up but traffic fails: Check routes in both directions, firewall policies, address objects, and whether the traffic matches the tunnel’s selectors. Confirm that the destination host’s own firewall allows the traffic.
  • Only some traffic works: Review overlapping subnets, policy order, NAT rules, and routing decisions. For remote access, also check the client’s assigned address, DNS, and split-tunnel routes.
  • The tunnel drops intermittently: Compare lifetime and rekey settings, investigate unstable internet links, and check whether both peers handle dead-peer detection consistently.

FortiGate provides VPN status information, event logs, and diagnostic tools to help identify negotiation failures. Use logs and command-line diagnostics appropriate to the installed FortiOS version. When collecting diagnostics, avoid sharing pre-shared keys, private certificates, or other secrets.

Troubleshoot a FortiGate IPsec VPN by symptom

SymptomCheck firstLikely areaUseful FortiGate checkNext step
Tunnel will not establishPeer reachabilityWAN or peer settingsInspect IKE status and logsConfirm address, interface, and connectivity
Phase 1 failsAuthentication and proposalsPeer identity or Phase 1Review IKE negotiation logsMatch credentials and Phase 1 settings
Phase 1 is up, Phase 2 failsSelectors and proposalsPhase 2Check child SA status and selectorsAlign subnets and Phase 2 settings
Tunnel is up, traffic failsPolicies and routesFirewall or routingCheck route table and policy hitsAdd or correct route and policy
Only one direction worksReturn pathRouting or policyTrace traffic in both directionsVerify reverse route and policies
Remote users cannot connectCredentials and client settingsUser authentication or clientReview authentication and IKE logsCheck account, group, and client compatibility
Tunnel drops intermittentlyLink stability and timersWAN or negotiation settingsReview event logs and tunnel statusCheck peer availability and matching timers

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

Recommendation

For a reliable IPsec VPN FortiGate deployment, document the network ranges and agree on compatible Phase 1 and Phase 2 settings before configuration. Add explicit routes and least-privilege firewall policies, then test both tunnel negotiation and real application traffic. Keep FortiOS and VPN clients supported and updated, and use logs to troubleshoot one layer at a time. How to Fix Virgin TV Go App Not Working With VPN

© 2026 Fernhollow Play Media · Fernhollow Play Media Ltd.