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
| Option | Best for | Peer type | Typical access | Main planning point |
|---|---|---|---|---|
| Site-to-site | Connecting offices or networks | Another VPN gateway | Network to network | Match encryption and authentication settings |
| Remote access | Connecting individual users | VPN client | User to company network | Choose client and user authentication |
| Route-based tunnel | Flexible routing and policies | Gateway or client | Routed traffic | Plan tunnel interfaces and routes |
| Policy-based tunnel | Policy-defined traffic selection | Gateway | Selected traffic | Define matching traffic selectors |
| Static routing | Stable, known network paths | Gateway | Specific remote subnets | Configure routes at both ends |
| Dynamic routing | Networks with changing paths | Compatible routing peer | Advertised networks | Confirm routing protocol support |
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 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.
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
| Decision | Consideration | Verify before deployment |
|---|---|---|
| Deployment | Network link versus individual users | Peer and client requirements |
| Authentication | Simpler setup versus certificate management | Matching credentials and trust |
| Traffic selection | Convenience versus least privilege | Local and remote selectors |
| Routing | Predictable paths versus adaptability | Return routes and route exchange |
| Addressing | Avoid overlap across connected networks | Subnet conflicts |
| Client setup | Compatibility and support needs | Client 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.
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:
- Peer reachability: Confirm that the gateways can reach each other over the internet and that upstream equipment is not blocking required IPsec traffic.
- Phase 1 agreement: Compare peer addresses, authentication, proposals, and related settings.
- Phase 2 agreement: Verify encryption proposals, lifetimes, and local and remote network selectors.
- Routing: Confirm that each endpoint has a route to the other side’s networks.
- Firewall policies: Check interface direction, source and destination objects, services, and any relevant security profiles.
- Address overlap or NAT: Look for duplicate subnets or unintended address translation affecting VPN traffic.
- 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 task | Check | Likely area | Recommended action | Prevention |
|---|---|---|---|---|
| Tunnel does not establish | Phase 1 status and logs | Peer or authentication settings | Compare gateway, credentials, and proposals | Document matching parameters |
| Tunnel is up but traffic fails | Phase 2 selectors and policies | Traffic selection or firewall rules | Check selectors and allow policies | Review rules during changes |
| One-way connectivity | Routes and return path | Routing | Confirm both sides have valid routes | Maintain an up-to-date route plan |
| Intermittent connectivity | Logs and peer reachability | Network stability or timers | Check links and negotiation settings | Monitor tunnel health |
| Subnets cannot communicate | Local and remote address ranges | Address overlap | Rework conflicting ranges or routing | Check overlap during planning |
| Routine security upkeep | Firmware and configuration | Maintenance | Apply updates and review settings | Schedule 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.