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.
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
| Option | Typical use | Peer type | Configuration focus | Access scope |
|---|---|---|---|---|
| Site-to-site tunnel | Connect two networks | Another VPN gateway | Matching Phase 1 and Phase 2 settings | Selected network subnets |
| Remote-access tunnel | Connect individual users | User device | User authentication and client settings | Authorized internal resources |
| Route-based site-to-site | Connect routed networks | Another VPN gateway | Tunnel interface and routes | Networks allowed by routing and policy |
| Policy-based site-to-site | Match traffic by policy | Another VPN gateway | Encryption domains and firewall policies | Traffic matching the policy |
| Dial-up IPsec | Accept connections from changing peer addresses | Dynamic peer | Peer identification and authentication | Configured networks and policies |
| Site-to-site with static peer | Connect a known gateway | Fixed public address | Peer address and matching proposals | Selected network subnets |
Compiled November 2026; check the provider's site for current details.
| VPN | Obfuscation | From / month | Plan | Free plan | Refund | Alipay | UnionPay | Crypto | Website opens in China | Trustpilot | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Turn on manually Shadow | $2.49/mo | 27 months: $59.99 | Yes | 7 days | ✓ | ✓ | ✓ | ✓ | Official site blocked; our special link opens (4.4 s) | 4.2/5 (195 reviews) | |
| Turn on manually Obfuscated Servers / NordWhisper | $3.49/mo | 27 months: $94.23 | No | 30 days | ? | ✗ | ✓ | ✓ | ✗ Blocked | 4.2/5 (51,628 reviews) | |
| ✓ On by default all servers | $3.00/mo | 28 months: $84 | No | 30 days | ✗ | ✗ | ✓ | ✗ | ✗ Blocked | 4.4/5 (29,706 reviews) | |
| ✓ On by default Camouflage, with OpenVPN | See site | See site | No | 30 days | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 4.3/5 (31,823 reviews) | |
| Turn on manually Stealth, free plan too | $2.99/mo | 12 months: $35.88 | Yes | 30 days | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 2.1/5 (1,040 reviews) | |
| Turn on manually StealthVPN / OpenWeb | $12.50/mo | 24 months: $300 | No | See site | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 1.3/5 (110 reviews) | |
| Turn on manually Shadowsocks, OpenVPN only | $2.03/mo | 40 months: $81.2 | No | 30 days | ✗ | ✗ | ✗ | ✗ | ✗ Blocked | 4.2/5 (11,033 reviews) | |
| Turn on manually selected servers | $2.19/mo | 28 months: $61.32 | No | 45 days | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 4.0/5 (24,178 reviews) | |
| Turn on manually switch to OpenVPN | $1.69/mo | 60 months: $101.55 | No | 31 days | ? | ? | ✗ | ✓ | ✗ Blocked | 4.4/5 (17,994 reviews) | |
| ✓ On by default TrustTunnel | $2.99/mo | 24 months: $71.76 | Yes | 30 days | ✓ | ✗ | ✓ | ✓ | Official site blocked; our special link opens (3.7 s) | 4.3/5 (290 reviews) | |
| Turn on manually QUIC / Shadowsocks / LWO | $5.61/mo | €5/mo | No | 14 days | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 3.2/5 (192 reviews) | |
| Turn on manually Stealth / WStunnel | $5.75/mo | 12 months: $69 | Yes | See site | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 4.7/5 (13,355 reviews) | |
| Turn on manually Scramble, OpenVPN TCP | See site | See site | No | 30 days | ✓ | ✗ | ✗ | ✗ | ✗ Blocked | 4.4/5 (2,695 reviews) | |
| Not listed | $7.08/mo | 12 months: $84.99 | Yes | 30 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
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
- Create the IPsec tunnel. Select a site-to-site or custom tunnel type and identify the remote gateway.
- Configure Phase 1. Set the IKE version, peer authentication, and agreed cryptographic parameters.
- Configure Phase 2. Specify the local and remote traffic selectors and matching encryption settings.
- Add routing. Route the remote subnet through the IPsec interface or use the routing design supported by the deployment.
- 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.
- Configure the other peer. Make sure its settings match. The local and remote network definitions appear reversed on the opposite gateway.
- 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
| Item | Needed for | What to confirm | Why it matters |
|---|---|---|---|
| FortiGate model and FortiOS version | Both | Device capabilities and interface names | Guides compatible setup steps |
| Local and remote subnets | Site-to-site | Network addresses and masks | Defines traffic to protect |
| Peer address | Site-to-site | Public IP or dynamic-peer details | Identifies the remote gateway |
| Authentication method | Both | Pre-shared key or certificate | Must match at both ends |
| Phase 1 settings | Both | Encryption, authentication, and key exchange | Proposals must be compatible |
| Phase 2 settings | Both | Encryption, authentication, and traffic selectors | Defines protected traffic |
| WAN and routing details | Site-to-site | Egress interface and route requirements | Enables tunnel reachability |
| User and client requirements | Remote access | Accounts, groups, and client compatibility | Controls user connection and access |
| Firewall access requirements | Both | Permitted services and destination resources | Allows 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.
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
| Symptom | Check first | Likely area | Useful FortiGate check | Next step |
|---|---|---|---|---|
| Tunnel will not establish | Peer reachability | WAN or peer settings | Inspect IKE status and logs | Confirm address, interface, and connectivity |
| Phase 1 fails | Authentication and proposals | Peer identity or Phase 1 | Review IKE negotiation logs | Match credentials and Phase 1 settings |
| Phase 1 is up, Phase 2 fails | Selectors and proposals | Phase 2 | Check child SA status and selectors | Align subnets and Phase 2 settings |
| Tunnel is up, traffic fails | Policies and routes | Firewall or routing | Check route table and policy hits | Add or correct route and policy |
| Only one direction works | Return path | Routing or policy | Trace traffic in both directions | Verify reverse route and policies |
| Remote users cannot connect | Credentials and client settings | User authentication or client | Review authentication and IKE logs | Check account, group, and client compatibility |
| Tunnel drops intermittently | Link stability and timers | WAN or negotiation settings | Review event logs and tunnel status | Check 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
