Good afternoon, gentleman,
I'm starting my journey with FortiGate and I'm trying to learn how to set up a IPSec Tunnel Client-to-site VPN with StrongsWan and FortiGate.
I made these configurations is a test environment with a FortiGate, but i can't get the connection up with my Linux Mint.
Could someone please describe the correct script to insert into /etc/ipsec.conf.d/forti.conf and /etc/ipsec.conf.d/secrets?
Hi,
By looking at the FortiGate configuration itself, we don't see any issue. But the thing is we need to ensure all phase 1 and phase2 configurations are well matched between FortiGate and StrongsWan.
Below debug commands can be executed on the FortiGate side to see how the FortiGate is negotiating with StrongsWan and which part of configuration is not matched:
diagnose vpn ike log-filter dst-addr4 x.x.x.x <---- To filter using remote-gateway address.
diagnose vpn ike log filter rem-addr4 x.x.x.x <---- Command to filter using remote-gateway address. (v7.4.1 and above).
diagnose debug app ike -1 <----- To do the VPN debug.
diagnose debug console timestamp enable <----- To cross-check with VPN events.
diagnose debug enable <------ To display the debug output.
Please refer to below document for further troubleshoot:
Regards,
George
| User | Count |
|---|---|
| 2892 | |
| 1448 | |
| 848 | |
| 825 | |
| 455 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2026 Fortinet, Inc. All Rights Reserved.