0

I have a problem connecting to a remote server via StrongSwan IPsec. I tried connecting using FortiClient IPsec on Windows, and everything worked fine. I was able to connect! However, when I tried to connect using StrongSwan, it didn’t work. I’d be very grateful for any support.

This is my code in ipsec.conf

config setup
    charondebug="ike 2, knl 2, net 2, dmn 2, mgr 2"
    nat_traversal=yes


conn myvpn
    keyexchange=ikev2        
    authby=xauthpsk          
    left=%defaultroute       
    leftid=<my_login>          
    right=<remote_server>    
    rightid=@<remote_server>
    rightsubnet=0.0.0.0/0    
    ikelifetime=60m         
    keylife=20m             
    esp=aes256-sha2_256     
    dpdaction=clear         
    dpddelay=30s            
    dpdtimeout=120s         
    auto=start 

This is my cod in ipsec.secrets

@<remote_server> : PSK "PSK_key"

@<my_login> : XAuth "password"
3
  • Does Fortinet not offer a StrongSwan client for Linux? Commented Mar 29 at 17:01
  • I don't know about it. I know that I must use a VPN with IPsec support to connect to the remote server Commented Mar 29 at 17:05
  • Does the Fortinet documentation agree that any IPSec client can connect, and suggest the client's config settings? Commented Mar 29 at 20:54

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.