FortiGate IPsec VPN: Configuration, Troubleshooting, and Best Practices
Learn how FortiGate IPsec VPNs work, how to configure them, and how to troubleshoot common connection problems.
FortiGate IPsec is Fortinet’s implementation of IPsec VPN technology, used to encrypt traffic between two networks or connect remote users to a FortiGate firewall. To set one up, configure matching Phase 1 and Phase 2 parameters on both endpoints, define which traffic should use the tunnel, and add the necessary routes and firewall policies. The exact steps depend on whether you are building a site-to-site VPN or a remote-access 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
| Option | Typical use | Tunnel type | Client requirements | Main consideration |
|---|---|---|---|---|
| Site-to-site | Connect office networks | Gateway-to-gateway | FortiGate or compatible peer | Match Phase 1 and Phase 2 settings |
| Remote access | Connect individual users | Client-to-gateway | Compatible VPN client | Authenticate and authorize each user |
| Route-based | Flexible network routing | Interface-based | Peer support | Configure routes and policies |
| Policy-based | Policy-defined traffic flows | Selector-based | Peer support | Selectors must match on both ends |
| IKEv1 | Legacy peer compatibility | Negotiated IPsec | Peer support | Use only when needed |
| IKEv2 | Modern IPsec connections | Negotiated IPsec | Peer support | Prefer 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.
What FortiGate IPsec does
IPsec protects IP traffic by authenticating the endpoints and encrypting data as it travels over an untrusted network, such as the internet. A FortiGate can act as either end of a tunnel, or as the gateway that remote clients connect to.
Common uses include:
- Connecting two offices securely over the internet.
- Linking an office to a cloud network or another organization.
- Allowing employees to connect remotely to internal resources.
- Creating redundant VPN paths between locations.
A typical site-to-site VPN has two main stages. Phase 1 establishes and authenticates the secure connection between the VPN peers. Phase 2 negotiates the security settings and traffic selectors used to protect data through the tunnel. Both sides must agree on compatible settings.
Site-to-site and remote-access VPNs
Choose the VPN type based on who or what needs access. A site-to-site tunnel usually connects defined networks, while remote access connects individual users or devices. FortiGate L2TP: Setup, Compatibility, and Security
| VPN type | Typical connection | Main configuration focus |
|---|---|---|
| Site-to-site | FortiGate to another firewall or VPN gateway | Peer addresses, network selectors, routes, and policies |
| Remote access | User device to FortiGate | Client authentication, address assignment, user access, and client settings |
FortiGate supports different authentication approaches, including pre-shared keys and certificates. For remote access, deployments may also use user authentication and multifactor authentication. Available options and menus can vary by FortiOS version and client software, so check the documentation for the software versions in use.
How to configure a FortiGate IPsec tunnel
Before configuring the tunnel, collect the information for both endpoints. Confirm each device’s public address, protected network ranges, authentication method, and required encryption settings. Make sure the address ranges do not overlap.
Configure Phase 1
In the FortiGate interface, create an IPsec tunnel and enter the peer information. Configure the authentication method and a strong pre-shared key, or select the appropriate certificate. Choose compatible IKE and encryption settings for both peers.
Where possible, use current secure algorithms and avoid outdated options such as weak encryption or hashing. If the peer supports IKEv2, it is commonly preferred for new deployments, but the other endpoint must support and be configured for it as well. FortiGate VPN Client: How to Choose, Install, and Troubleshoot
Configure Phase 2
Define the local and remote subnets that should pass through the tunnel. These are often called traffic selectors or proxy IDs. Set compatible encryption and integrity options, and consider enabling Perfect Forward Secrecy when supported and required by your security policy.
The Phase 2 settings must match the remote device. For example, if one side defines the local network as 10.10.0.0/16, the other side should define that same network as the remote network, with the corresponding local and remote roles reversed.
Add routes and firewall policies
A tunnel can be established without carrying useful traffic. Create firewall policies that allow the intended traffic from the local network to the VPN interface, and add the return policy if your design requires it. Apply appropriate security profiles and restrict access to only the services and networks users need.
Depending on the tunnel and routing design, you may also need a static route, a dynamic routing configuration, or policy-based routing. Ensure the remote network routes return through the VPN. A missing or incorrect return route is a frequent reason traffic works in only one direction. Free VPN Where You Can Choose Location: What to Use and What to Check
Compare common FortiGate IPsec troubleshooting checks
| Symptom | Check first | Likely area | Useful action | Success indicator |
|---|---|---|---|---|
| Tunnel will not establish | Peer reachability | Network or firewall | Check WAN path and UDP 500/4500 | IKE negotiation starts |
| IKE negotiation fails | Phase 1 settings | Authentication or proposal | Match encryption, authentication, and DH settings | Phase 1 comes up |
| Child SA fails | Phase 2 settings | Selectors or proposal | Match subnets and Phase 2 parameters | Phase 2 comes up |
| Tunnel is up, traffic fails | Routes and policies | FortiGate forwarding | Check routes, policies, and NAT | Traffic passes |
| One direction works | Return path | Routing or policy | Verify both directions and peer routes | Two-way traffic works |
| VPN drops intermittently | Logs and link health | Network or timers | Review events and peer stability | Tunnel stays established |
Compiled November 2026; check the provider's site for current details.
Security and maintenance best practices
A working tunnel should also be carefully scoped and maintained. Use these practices:
- Use a unique, high-entropy pre-shared key, or certificates where appropriate.
- Prefer modern IKE, encryption, and authentication algorithms supported by both peers.
- Limit Phase 2 selectors and firewall policies to required networks and services.
- Use separate policies for different trust levels instead of broad “allow all” rules.
- Monitor tunnel status, traffic, and authentication events.
- Keep FortiOS and VPN client software updated according to your organization’s change process.
- Document peer addresses, networks, negotiated settings, and recovery steps.
- Plan for failover if the connection is important to business operations.
For remote-access VPNs, protect user accounts with strong authentication and multifactor authentication when available. Assign users only the access they need, and review accounts and policies regularly. Free VPN Choose Location: How to Pick a Safe Service
Troubleshooting FortiGate IPsec
Start by checking whether Phase 1 is up, then whether Phase 2 is established. If Phase 1 fails, inspect peer reachability, authentication details, IKE version, and proposal compatibility. If Phase 1 succeeds but Phase 2 does not, compare traffic selectors and Phase 2 proposals on both devices.
When the tunnel appears up but traffic fails, check:
- Firewall policies in both directions.
- Routes to the remote networks and the return route.
- Whether the source and destination addresses match the Phase 2 selectors.
- Overlapping subnets or incorrect network masks.
- NAT settings that may change traffic before it enters the tunnel.
- Upstream firewalls or internet providers blocking required VPN traffic.
Use the FortiGate VPN monitor and event logs to identify negotiation errors and tunnel status. For more detail, FortiGate’s command-line diagnostics can show IKE negotiation and tunnel information. Use them carefully, and consult the Fortinet documentation for commands appropriate to your FortiOS version. Avoid leaving verbose debugging enabled after testing, since it can generate substantial log output.
Compare FortiGate IPsec security and maintenance practices OVPN Explained: What It Is and How to Use It
| Practice | Security value | Operational value | Recommendation |
|---|---|---|---|
| Use strong proposals | Reduces weak cryptography | Improves configuration consistency | Prefer modern supported algorithms |
| Use IKEv2 when supported | Uses a modern negotiation protocol | Simplifies current deployments | Avoid legacy protocols where possible |
| Use strong authentication | Helps prevent unauthorized access | Makes peer identity explicit | Protect credentials and certificates |
| Limit access policies | Reduces unnecessary reachability | Makes rules easier to review | Allow only required networks and services |
| Keep FortiOS maintained | Addresses known issues | Improves reliability | Apply tested updates |
| Monitor VPN logs | Helps detect failures and suspicious activity | Speeds diagnosis | Review events and tunnel status regularly |
| Back up configurations | Supports recovery | Reduces restoration effort | Keep a protected, current backup |
| Review settings periodically | Helps remove outdated access | Keeps peers and policies accurate | Recheck proposals, routes, and users |
Compiled November 2026; check the provider's site for current details.
Recommendation
For a reliable FortiGate IPsec deployment, begin with a clear network and access plan, then configure matching Phase 1 and Phase 2 settings on both peers. Add only the routes and policies required, verify traffic in both directions, and use logs to resolve negotiation or routing issues. Before production use, review the configuration against current Fortinet guidance and your organization’s security requirements.

