Solved
Ipsec connection in linux mint with strongswan
Hi all,
I am able to connect to a Fortinet VPN server from Windows 10 using Fortinet Client v6.0.9.0277. My configuration is displayed in the following 2 pictures:


But, from linux mint, using strongswan I am unable to connect. Here is my configuration:
# ipsec.conf - strongSwan IPsec configuration file conn FortinetVPN keyexchange=ikev1 aggressive=yes authby=secret left=%defaultroute leftauth=psk leftid=My_User_name right=VPN_IP_HERE rightauth=psk rightid=%any rightsubnet=0.0.0.0/0 ike=aes256-sha256-modp1536,aes128-sha1-modp1536! esp=aes256-sha1-modp1536,aes128-sha1-modp1536! dpdaction=clear dpddelay=30s dpdtimeout=150s ikelifetime=86400s lifetime=43200s keylife=43200s rekeymargin=3m keyingtries=1 auto=add type=tunnel replay_window=32 mobike=no forceencaps=yes
#ipsec.secrets My_User_name : PSK "My_Preshared_key" My_User_name : XAUTH "My_Password"
The output I am getting is:
sudo ipsec up FortinetVPN initiating Aggressive Mode IKE_SA FortinetVPN[1] to VPN_IP_HERE generating AGGRESSIVE request 0 [ SA KE No ID V V V V V ] sending packet: from 10.0.2.15[500] to VPN_IP_HERE[500] (475 bytes) received packet: from VPN_IP_HERE[500] to 10.0.2.15[500] (540 bytes) parsed AGGRESSIVE response 0 [ SA KE No ID HASH V NAT-D NAT-D V V V V V ] received NAT-T (RFC 3947) vendor ID received DPD vendor ID received XAuth vendor ID received unknown vendor ID: 82:99:03:17:57:a3:60:82:c6:a6:21:de:00:00:00:00 received FRAGMENTATION vendor ID received FRAGMENTATION vendor ID selected proposal: IKE:AES_CBC_256/HMAC_SHA2_256_128/PRF_HMAC_SHA2_256/MODP_1536 local host is behind NAT, sending keep alives IKE_SA FortinetVPN[1] established between 10.0.2.15[My_User_name]...VPN_IP_HERE[VPN_IP_HERE] scheduling reauthentication in 86166s maximum IKE_SA lifetime 86346s generating AGGRESSIVE request 0 [ HASH NAT-D NAT-D ] sending packet: from 10.0.2.15[4500] to VPN_IP_HERE[4500] (140 bytes) generating QUICK_MODE request 1993355718 [ HASH SA No KE ID ID ] sending packet: from 10.0.2.15[4500] to VPN_IP_HERE[4500] (428 bytes) received packet: from VPN_IP_HERE[4500] to 10.0.2.15[4500] (92 bytes) queueing TRANSACTION request as tasks still active received packet: from VPN_IP_HERE[4500] to 10.0.2.15[4500] (108 bytes) parsed INFORMATIONAL_V1 request 1651800496 [ HASH D ] received DELETE for IKE_SA FortinetVPN[1] deleting IKE_SA FortinetVPN[1] between 10.0.2.15[My_User_name]...VPN_IP_HERE[VPN_IP_HERE] establishing connection 'FortinetVPN' failed
I suppose that I am doing something wrong in the config file, but I am unable to figure out what.
Any help would be highly appreciated. Thank you very much!
