IPsec VPN FortiGate: Setup, Configuration, and Troubleshooting
Learn how FortiGate IPsec VPNs work, how to configure them, and how to troubleshoot common connection problems.
An IPsec VPN on a FortiGate firewall creates an encrypted connection between networks or between a remote user and a private network. To set one up, configure compatible Phase 1 and Phase 2 parameters, add the required routes and firewall policies, then verify that the tunnel negotiates and passes traffic. FortiGate supports both site-to-site and remote-access IPsec VPNs, with configuration details varying by FortiOS version and network design.
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 common FortiGate IPsec VPN deployment options
| Option | Typical use | Peer requirement | Routing approach | Main consideration |
|---|---|---|---|---|
| Site-to-site | Connect office networks | FortiGate or compatible IPsec peer | Static routes or dynamic routing | Match settings at both ends |
| Remote access | Connect individual users | VPN client or supported endpoint | Client routes | Requires user authentication |
| Route-based tunnel | Flexible network connectivity | Compatible IPsec peer | Route through a tunnel interface | Policies control traffic |
| Policy-based tunnel | Simple, fixed traffic selectors | Compatible IPsec peer | Policies define protected traffic | Less flexible for complex routing |
| IKEv1 | Interoperate with peers requiring IKEv1 | Peer configured for IKEv1 | Depends on tunnel design | Use only when needed |
| IKEv2 | Modern peer negotiation | Peer configured for IKEv2 | Depends on tunnel design | Both peers must support matching settings |
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 the devices at each end of a connection and encrypting data as it travels across an untrusted network, such as the internet. A FortiGate can establish a tunnel with another FortiGate or with a compatible third-party firewall, router, or VPN client.
The two common use cases are:
- Site-to-site VPN: Connects networks at separate locations, such as a branch office and a head office.
- Remote-access VPN: Lets an individual user connect to a private network using a compatible client and an account or certificate.
An IPsec tunnel has two negotiation stages. Phase 1, also called IKE, establishes and authenticates the secure relationship between VPN peers. Phase 2 creates the IPsec security association that protects the selected network traffic. Both sides need compatible settings.
Information to prepare before configuration
Gather the network and security details before creating the tunnel. This reduces mismatches that can prevent negotiation or block traffic after the tunnel is up. Hkmc rndvpn hyundai net: Access, Login Help, and Safety Tips
For a basic site-to-site setup, you will usually need:
- The public IP address or hostname of each VPN peer.
- The local and remote subnet ranges that should communicate.
- The authentication method, such as a pre-shared key or certificates.
- Compatible IKE version and Phase 1 and Phase 2 proposals.
- The WAN interfaces used to reach the peer.
- A plan for routing traffic through the tunnel.
- Firewall rules allowing the intended traffic.
Avoid overlapping local and remote subnet ranges. For example, if both sites use the same private subnet, routing cannot reliably distinguish which network a destination belongs to. Renumbering one side or designing an appropriate translation approach may be necessary.
Security settings should follow your organization’s policy and the capabilities of both peers. Choose current, mutually supported encryption and authentication algorithms, and use a strong, unique pre-shared key if that is the chosen authentication method.
Compare information to prepare before configuring a site-to-site tunnel FortiClient VPN for Windows 11: Download, Install, and Connect
| Item | What to collect | Must match the peer? | Why it matters |
|---|---|---|---|
| Peer gateway | Public IP address or hostname | Yes | Identifies the remote endpoint |
| Local subnet | Network address and mask | Coordinate with peer | Defines local protected traffic |
| Remote subnet | Network address and mask | Coordinate with peer | Defines remote protected traffic |
| IKE version | IKEv1 or IKEv2 | Yes | Enables compatible negotiation |
| Authentication | Pre-shared key or certificate | Yes | Verifies the peer |
| Encryption proposal | Encryption and integrity algorithms | Yes | Establishes compatible phase settings |
| DH group | Agreed Diffie–Hellman group | Yes | Supports key exchange |
| NAT status | Whether either peer is behind NAT | Share with peer | Affects negotiation and traversal |
| Routing plan | Static routes or dynamic routing | Coordinate with peer | Directs traffic into the tunnel |
Compiled November 2026; check the provider's site for current details.
How to configure a site-to-site IPsec VPN
FortiGate provides a setup wizard in the web-based management interface, and administrators can also configure VPNs through the CLI. Menu names and available options can differ between FortiOS releases, so check the documentation for the installed version.
1. Create the VPN tunnel
In the FortiGate GUI, go to the IPsec VPN area and create a new tunnel. Select a site-to-site configuration, then enter the remote gateway address and the local WAN interface. Configure the authentication method and shared key or certificate as agreed with the peer.
Set the Phase 1 options so they match the remote device. These typically include: IPVanish Login: How to Sign In and Fix Common Problems
- IKE version.
- Encryption and integrity algorithms.
- Diffie-Hellman group.
- Authentication method.
- Negotiation and lifetime settings.
Configure Phase 2 with the local and remote traffic selectors, also known as encryption domains. These should identify the subnets that are permitted to use the tunnel. Make sure the selectors agree with the peer’s configuration.
| Configuration area | What it controls | Common mismatch symptom |
|---|---|---|
| Phase 1 | Peer authentication and IKE security | Tunnel fails to establish |
| Phase 2 | Protected traffic and IPsec security | Phase 1 is up, but Phase 2 fails |
| Routing | Where packets are sent | Tunnel is up, but traffic takes another path |
| Firewall policy | Which traffic is permitted | Traffic is dropped despite a working tunnel |
2. Add routes and firewall policies
A tunnel alone does not automatically allow all traffic to flow. Add a route for the remote subnet through the IPsec interface, or configure dynamic routing if your design requires it.
Create firewall policies for traffic in both directions as needed:
- From the local network to the VPN interface.
- From the VPN interface to the local network.
Set the correct source and destination addresses, services, and security profiles for your requirements. Enable NAT only when your design calls for it. Ordinary site-to-site traffic commonly uses no NAT. Also confirm that policies on the remote peer permit the return traffic. Free VPN: How to Choose One That’s Safe and Useful
3. Configure remote access when needed
For remote-access VPNs, define how users authenticate and which internal resources they can access. Depending on the environment, authentication may use local users, a directory service, certificates, or a multi-factor authentication system.
Provide users with the correct FortiClient or other compatible client configuration. Restrict access to necessary networks and services rather than granting broad access by default. Consider split tunneling carefully: it can send only corporate traffic through the VPN, while a full tunnel routes all user internet traffic through the organization.
How to test the tunnel
After saving the configuration on both peers, check the FortiGate VPN monitor to see whether the tunnel is up and whether Phase 1 and Phase 2 are established. Then test traffic between specific hosts on the local and remote networks.
A useful verification sequence is: Is Cato a VPN? What Cato Networks Does and How Its Remote Access Works
- Confirm that each VPN peer is reachable over the WAN.
- Check the tunnel status and negotiation details.
- Confirm that the route to the remote subnet points to the VPN.
- Review firewall policy counters while generating test traffic.
- Test from a host in each protected subnet, not only from the FortiGate itself.
An “up” tunnel does not prove that end-to-end traffic works. The route, selectors, host firewalls, and policies on both sides must all permit the intended connection.
Troubleshoot common FortiGate IPsec VPN symptoms
| Symptom | Likely area | First check | Useful FortiGate check | Next step |
|---|---|---|---|---|
| Tunnel stays down | IKE negotiation | Peer address and reachability | Check VPN tunnel status | Compare IKE versions and proposals |
| Authentication fails | Peer identity or credentials | Pre-shared key or certificate | Review IKE logs | Confirm matching authentication settings |
| Phase 1 is up, Phase 2 is down | Phase 2 negotiation | Selectors and proposals | Inspect IPsec SA status | Align subnets and phase 2 settings |
| Tunnel is up, no traffic passes | Policies or routing | Firewall policies and routes | Check route and policy lookup | Permit the traffic and correct routing |
| Only one direction works | Return path or selectors | Routes and traffic selectors | Review counters and logs | Check both peers’ routes and selectors |
| Tunnel drops intermittently | Link or rekey behavior | WAN stability and rekey settings | Review event logs | Compare timers and inspect link health |
Compiled November 2026; check the provider's site for current details.
Troubleshooting common FortiGate IPsec VPN problems
Start with the stage where the failure occurs. If Phase 1 is down, focus on peer reachability, authentication, and IKE settings. If Phase 1 is up but Phase 2 is down, compare the traffic selectors and Phase 2 proposals. If both are up but applications fail, investigate routes, firewall policies, NAT, and endpoint firewalls. Sslvpn poscoenc.com: How to Find and Access the POSCO E&C VPN
Common checks include:
- Confirm that the remote peer IP address and WAN interface are correct.
- Check that both peers use the same IKE version and compatible proposals.
- Verify the pre-shared key or certificate and the peer identity settings.
- Compare local and remote subnet definitions on both ends.
- Ensure routes point to the VPN and do not conflict with more specific routes.
- Review firewall logs and policy hit counters for denied traffic.
- Check for overlapping subnets or unexpected NAT.
- Confirm that intermediate networks allow the required IPsec traffic, commonly UDP 500 and UDP 4500 for IKE and NAT traversal.
FortiGate’s VPN monitor, event logs, and IPsec diagnostics can help reveal negotiation errors. CLI diagnostic commands are also available, but command syntax and output can vary by FortiOS version. Use version-specific Fortinet documentation, and avoid leaving verbose debugging enabled longer than needed.
Recommendation
For a reliable IPsec VPN FortiGate deployment, document the peer addresses, subnets, proposals, routes, and policies before configuring either device. Match settings carefully, apply least-privilege access rules, and test real traffic in both directions. For production networks, use current FortiOS guidance and have both VPN endpoints reviewed together, especially when connecting FortiGate to a third-party device.

