IPsec VPN FortiGate: Setup, Configuration, and Troubleshooting

Learn how to configure, secure, and troubleshoot an IPsec VPN on FortiGate for reliable site-to-site or remote access.
An IPsec VPN on FortiGate securely connects two networks or lets remote users reach an organization’s network through an encrypted tunnel. FortiGate firewalls support both site-to-site VPNs and remote-access VPNs, with configuration options available in the web interface and CLI. A successful setup requires matching settings at both ends, appropriate routing and firewall policies, and careful testing.
Compare FortiGate IPsec VPN deployment options
| Option | Best fit | Peer type | Routing approach | Main consideration |
|---|---|---|---|---|
| Site-to-site | Connect office networks | FortiGate or compatible gateway | Static or dynamic | Requires matching settings at both ends |
| Dial-up remote access | Connect roaming users | Individual clients | Client routes | Requires user and device authentication |
| Route-based tunnel | Flexible network connectivity | Gateway or client | Routing table | Uses a virtual IPsec interface |
| Policy-based tunnel | Simple, fixed traffic flows | Compatible gateway | Firewall policies | Less flexible for complex routing |
| IKEv1 | Legacy compatibility | Compatible peer | Depends on tunnel design | Use only when the peer requires it |
| IKEv2 | Modern site-to-site or remote access | Compatible peer | Depends on tunnel design | Preferred when both peers support it |
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.
Choose the right FortiGate IPsec VPN
A site-to-site IPsec VPN connects networks behind two gateways, such as a head office and a branch. A remote-access VPN connects an individual device to a protected network. The right design depends on who needs access and how the network is arranged.
| VPN type | Typical use | Main configuration considerations |
|---|---|---|
| Site-to-site | Connect offices or cloud networks | Peer addresses, protected subnets, routing, and matching Phase 1 and Phase 2 settings |
| Remote access | Connect employees’ devices to the network | User authentication, client configuration, address assignment, and access policies |
FortiGate configurations commonly use two stages:
- Phase 1, or the IKE negotiation, authenticates the peers and establishes a secure control channel.
- Phase 2, or the IPsec negotiation, defines the protected traffic and creates the encrypted data connection.
Both peers must agree on compatible settings. The exact menu names and options can vary by FortiOS version and VPN design.
Configure a site-to-site tunnel
Before configuring the tunnel, collect the public IP addresses of both gateways, the local and remote network ranges, and the authentication details. Confirm that the network ranges do not overlap. Also check that each gateway can reach its peer over the internet. FortiClient VPN for Windows 11: Download, Install, and Connect
In the FortiGate web interface, open VPN > IPsec Tunnels and create a new tunnel. For a standard site-to-site connection, select a site-to-site template if one is available. Configure the following:
- Remote gateway: Enter the peer’s public IP address, or select a dynamic-peer option if the other gateway does not have a fixed address.
- Authentication: Use a strong pre-shared key or certificates. The peer must use the same credentials and compatible authentication method.
- Phase 1 proposal: Choose compatible IKE version, encryption, integrity, and Diffie-Hellman group settings.
- Phase 2 selectors: Set the local and remote subnets that should pass through the tunnel. The local subnet on one side must match the remote subnet on the other.
- Lifetime and other options: Keep settings compatible with the peer. Enable features such as NAT traversal when the network path requires them.
Use strong, current cryptographic options supported by both devices. Avoid outdated algorithms and short, predictable pre-shared keys. If possible, use certificates to simplify secure identity management across larger deployments.
Compare site-to-site tunnel configuration choices
| Setting | Common choice | Alternative | Match on both peers? | What to check |
|---|---|---|---|---|
| IKE version | IKEv2 | IKEv1 | Yes | Peer compatibility |
| Authentication | Pre-shared key | Certificates | Yes | Key or certificate validity |
| Encryption | AES | Peer-supported cipher | Yes | Phase 1 proposal compatibility |
| Integrity | SHA-2 | Peer-supported hash | Yes | Phase 1 and Phase 2 proposals |
| DH group | Supported modern group | Peer-supported group | Yes | Phase 1 key exchange settings |
| Phase 2 selectors | Local and remote subnets | Narrower traffic selectors | Yes | Networks must mirror across peers |
| NAT traversal | Enabled when NAT is present | Disabled when not needed | Compatible settings | NAT devices along the path |
| Dead peer detection | Enabled | Peer-compatible setting | Compatible behavior | Stale or unreachable peers |
Compiled November 2026; check the provider's site for current details. Is Cato a VPN? What Cato SASE and Cato Client Actually Do
Add routing and firewall policies
A tunnel can show as established while user traffic still fails. The FortiGate must know how to route traffic to the remote network, and policies must permit the intended traffic through the VPN interface.
For a route-based tunnel, add a route for the remote subnet through the IPsec tunnel interface. In some designs, dynamic routing such as BGP is used instead of static routes. Choose the method that fits the network and make sure return traffic has a valid route as well.
Create firewall policies for the traffic that should cross the tunnel. A typical site-to-site setup needs a policy from the local network interface to the IPsec tunnel and a corresponding policy for traffic in the reverse direction. Set the source and destination addresses narrowly, choose only the services users need, and enable logging where appropriate.
Check whether NAT is enabled on the VPN policies. Site-to-site traffic usually should not be translated when the peers expect to see each other’s original private addresses. NAT may be necessary in special cases, such as overlapping subnets, but it should be planned rather than enabled by default. Free Clash: How to Play Without Spending Money
For remote access, also configure the client-facing settings, user or group authentication, an address pool, and policies that limit users to approved internal resources. Give remote users only the access they require.
Test the connection and troubleshoot common failures
After saving the configuration, generate traffic between devices on the protected networks. Check both directions rather than relying only on the tunnel status indicator. Review the VPN monitor and FortiGate event logs for negotiation messages and policy denials.
Common problems include:
- Phase 1 does not establish: Verify peer addresses, IKE version, authentication credentials, and Phase 1 proposals.
- Phase 1 works but Phase 2 fails: Compare the encryption and integrity proposals, key lifetime, and local and remote subnet selectors.
- Tunnel is up but traffic does not pass: Check routes, firewall policies, address objects, NAT settings, and the return path.
- Connection works intermittently: Investigate changing public IP addresses, unstable internet links, mismatched lifetimes, or missing keepalive settings.
- Traffic stops at one device: Check local host firewalls, default gateways, and whether the endpoint routes replies through the expected gateway.
For deeper diagnostics, FortiGate administrators can use the CLI to inspect tunnel status and run IKE debugging. Debug output can contain sensitive information, so use it only when needed and disable it after troubleshooting. Consult the FortiOS documentation for commands and procedures that match the installed version. How to Fix Virgin TV Go App Not Working With VPN
Troubleshoot common FortiGate IPsec VPN symptoms
| Symptom | Likely area | Check first | Possible action | Verify with |
|---|---|---|---|---|
| Tunnel stays down | Phase 1 | Peer address and IKE settings | Align proposals and authentication | IKE status and logs |
| Phase 1 up, Phase 2 down | Phase 2 | Selectors and proposals | Match subnets and Phase 2 settings | IPsec status |
| Tunnel up, no traffic | Routing or policy | Routes and firewall policies | Add or correct matching rules | Traffic logs |
| One-way traffic | Return path | Remote routes and policies | Fix the missing return route or rule | Bidirectional tests |
| No tunnel through NAT | NAT traversal | NAT-T and upstream UDP handling | Enable NAT-T and permit required traffic | IKE logs |
| Intermittent disconnects | Link or peer health | DPD and network stability | Review DPD and upstream path | Event logs |
| DNS names fail | DNS configuration | Client DNS and reachable resolver | Set an appropriate DNS server | Name resolution tests |
| Large transfers stall | MTU or MSS | Packet size and fragmentation | Adjust MTU or TCP MSS | Large-packet tests |
Compiled November 2026; check the provider's site for current details.
Secure and maintain the VPN
Treat an IPsec VPN as a controlled network boundary, not as a reason to grant unrestricted access. Apply least-privilege policies, use unique credentials, and keep FortiOS and endpoint software updated. For remote access, use multifactor authentication where supported and remove accounts or certificates that are no longer needed.
Monitor tunnel availability, authentication failures, and unusual traffic. Document the peer details, protected subnets, cryptographic settings, and change history so administrators can compare configurations during an outage. Test configuration backups and recovery procedures before they are needed. BSNL VPN.ovpn File: How to Find, Verify, and Use One Safely
Recommendation
For most new deployments, use a route-based IPsec VPN with strong, mutually compatible cryptography, narrowly defined firewall policies, and explicit routes. Validate Phase 1, Phase 2, and end-to-end traffic separately, then monitor the tunnel and review access regularly.