FortiGate IPsec VPN: Setup, Configuration, and Troubleshooting

Learn how FortiGate IPsec VPN works, how to configure a site-to-site tunnel, and how to diagnose common connection issues.


FortiGate IPsec VPN lets you securely connect two networks or provide remote users with encrypted access to a private network. A site-to-site VPN is configured between FortiGate devices or another compatible VPN gateway. A remote-access VPN connects an individual device to the network. A working tunnel requires compatible encryption settings, correct routing, and firewall policies that allow the intended traffic.
Compare FortiGate IPsec VPN deployment options
| Option | Connects | Typical use | Main setup focus | Access scope |
|---|---|---|---|---|
| Site-to-site | Two or more networks | Branch connectivity | Matching tunnel settings | Selected subnets |
| Remote access | Individual users to a network | Work-from-anywhere access | User authentication | Assigned network resources |
| Route-based tunnel | Networks through a virtual interface | Flexible routing | Interface and route configuration | Controlled by routes and policies |
| Policy-based tunnel | Networks through security policies | Policy-defined connectivity | Matching encryption and selectors | Defined by policies |
| FortiGate to FortiGate | FortiGate devices | Fortinet-managed sites | Compatible phase settings | Firewall-controlled |
| FortiGate to third-party | Different firewall vendors | Mixed-vendor sites | Interoperable proposals and settings | Firewall-controlled |
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 VPN does
IPsec protects traffic by authenticating VPN peers and encrypting data sent through a tunnel. FortiGate supports IPsec VPN for site-to-site connectivity and remote access, with configuration options that vary by FortiOS version and deployment.
A site-to-site tunnel is useful when, for example, a branch office needs access to applications at a head office. Users and devices on each side send eligible traffic through the tunnel according to routing and policy rules. Remote-access VPN, by contrast, lets an individual client connect from outside the organization.
IPsec tunnels commonly use two negotiation stages:
- Phase 1 establishes an authenticated, encrypted connection between VPN peers.
- Phase 2 negotiates the protection and traffic selectors for data sent through the tunnel.
Both peers must agree on the relevant settings. A tunnel can appear configured but fail to pass traffic if its selectors, routes, or policies do not match the intended design. FortiClient VPN: What It Does, How to Connect, and What to Know
Choose a VPN deployment
Select the deployment type before configuring FortiGate. The choice affects how peers, addresses, and access rules are defined.
| Deployment | Connects | Common use |
|---|---|---|
| Site-to-site | Two networks through VPN gateways | Linking offices or a branch to a data center |
| Remote access | A client device to a VPN gateway | Giving an employee secure access while away from the office |
For a site-to-site VPN, identify the public address or hostname of each peer and the private subnets that should communicate. Check that those subnets do not overlap. Duplicate address ranges can make routing ambiguous even when the tunnel itself is established.
For remote access, decide which users or groups can connect, which internal resources they can reach, and how client addresses will be assigned. Follow the client and authentication guidance for your FortiOS release and chosen deployment method.
Configure a site-to-site tunnel
FortiGate configuration is available through the web interface and the command-line interface. Menu names and options can differ across FortiOS versions, so use documentation for the version installed on your firewall. Clash Free: What It Means and How to Prevent Conflicts
Before configuration, gather:
- The external interface and peer’s public IP address or hostname
- The local and remote private subnets
- A securely shared pre-shared key, or the certificate and identity details if using certificate authentication
- The encryption, authentication, and Diffie–Hellman settings supported by both peers
- The expected tunnel lifetime and Phase 2 traffic selectors
In the FortiGate interface, create an IPsec VPN tunnel and select the appropriate site-to-site setup. Configure Phase 1 to identify and authenticate the remote peer, then define Phase 2 for the subnets or traffic that should use the VPN. Use secure, mutually supported cryptographic settings. Avoid outdated algorithms where possible.
Next, configure how traffic reaches the tunnel. Depending on the design, this may involve static routes or dynamic routing. Add firewall policies for traffic traveling from the local network to the VPN interface and, if required, for traffic returning from the VPN to the local network. Limit policies to the necessary source and destination networks and services rather than allowing unrestricted access.
On the remote peer, configure corresponding settings. The peers’ proposals, authentication, and traffic selectors must be compatible. For a basic site-to-site connection, verify that the local subnet on one side is the remote subnet on the other. VPN for Microsoft Edge Free: Safe Options and What to Know
Site-to-site IPsec configuration decision guide
| Setting | What to configure | Must match peer? | Why it matters | Check when it fails |
|---|---|---|---|---|
| IKE version | Compatible IKE version | Yes | Establishes the negotiation method | Peer compatibility |
| Authentication | Shared secret or certificates | Yes | Verifies the peer | Credentials and certificates |
| Phase 1 proposals | Encryption and integrity algorithms | Yes | Protects IKE negotiation | Proposal mismatch |
| Diffie-Hellman group | Compatible key exchange group | Yes | Creates shared key material | Group mismatch |
| Phase 2 proposals | Encryption and integrity algorithms | Yes | Protects tunnel traffic | Proposal mismatch |
| Local and remote subnets | Network selectors | Yes | Defines traffic covered by the tunnel | Selector mismatch |
| Peer address | Remote gateway address | Yes | Identifies the other endpoint | Address and reachability |
| Routes and policies | Paths and permitted traffic | No | Moves and authorizes traffic | Missing route or policy |
Compiled November 2026; check the provider's site for current details.
Verify the connection and control access
After saving the configuration, check the VPN monitor or tunnel status in the FortiGate interface. A tunnel may be up without carrying useful traffic, so test access to a permitted host or service on the other network.
Review these items: NordVPN Login: How to Sign In and Fix Common Account Issues
- Phase 1 status: The peers can reach and authenticate each other.
- Phase 2 status: A data connection has been negotiated for the intended traffic.
- Routing: The FortiGate has a valid route to the remote subnet through the tunnel.
- Firewall policies: Policies allow the required traffic in the necessary direction.
- Return path: The remote network has a route back to the local subnet.
- Address overlap: Local and remote networks use distinct ranges.
Apply least-privilege access rules. Permit only the networks, protocols, and services users need, and use appropriate authentication and account controls. Keep FortiOS and VPN client software updated, protect shared secrets, and review logs for unexpected connection attempts.
Troubleshoot common problems
When a FortiGate IPsec VPN does not connect, work through the negotiation and traffic path in order. Changing multiple settings at once can make the cause harder to identify.
The tunnel does not establish: Confirm that the peer addresses are correct and reachable, and that intermediate firewalls or network devices allow the required IPsec traffic. Check for matching Phase 1 proposals, authentication methods, peer identities, and pre-shared keys. If NAT is present, verify that the setup accounts for it.
Phase 1 works, but Phase 2 fails: Compare the Phase 2 proposals and traffic selectors on both peers. Check that the local and remote subnets are mirrored correctly and that the peers use compatible lifetimes and supported cryptographic settings. Urban VPN Extension: Features, Setup, and What to Consider
The tunnel is up, but traffic fails: Verify routes, firewall policies, address objects, and the destination host’s own firewall. Check that return traffic follows a valid path. Also confirm that the test traffic matches the configured selectors and that NAT is not unintentionally changing addresses.
Connections drop or behave inconsistently: Review logs and tunnel statistics for negotiation errors, rekey failures, or packet loss. Check whether network changes, mismatched lifetimes, or unstable internet connectivity are interrupting the tunnel. FortiGate diagnostic commands can provide more detail. Use the commands documented for your FortiOS version.
Connection symptoms and first troubleshooting checks
| Symptom | Likely area | First check | FortiGate check | Next action |
|---|---|---|---|---|
| Tunnel will not establish | Phase 1 | Peer address and reachability | IKE settings and logs | Align IKE and authentication settings |
| Authentication fails | Credentials | Shared secret or certificate | Peer identity and authentication logs | Correct credentials or identity |
| Phase 1 succeeds, Phase 2 fails | Phase 2 | Proposals and selectors | Phase 2 configuration | Match proposals and subnet selectors |
| Tunnel is up, traffic fails | Routing or policy | Routes and firewall policies | Route and policy lookup | Add or correct route and policy |
| Only one direction works | Return path or policy | Routes at both ends | Session and traffic logs | Fix reverse route or access rule |
| Some subnets work, others fail | Selectors or policy | Local and remote subnet definitions | Tunnel selectors and policies | Include intended subnets |
| Tunnel drops repeatedly | Network stability | Internet path and peer availability | VPN event logs | Investigate link stability and negotiation settings |
Compiled November 2026; check the provider's site for current details. Cisco VPN AnyConnect: What It Is and How to Connect
Recommendation
Start with a clearly defined network design, use strong compatible IPsec settings, and configure only the routes and policies needed for the connection. Verify Phase 1, Phase 2, and end-to-end traffic separately. For production deployments or persistent negotiation failures, consult the FortiOS documentation for your release or ask a qualified network administrator to review both VPN peers.