Question
VPN IPSEC - StrongSwan with FortiGate
Hi,
I tried to use strongswan on Linux host to up a IPsec VPN with FortiGate. On the Windows FortiClient, no problem.
My FortiGate configuration is :
[ul][ul]
edit "vpn-IPSEC"[ul]
set type dynamic
set interface "INET"
set local-gw PublicIP
set mode aggressive
set peertype any
set mode-cfg enable
set ipv4-dns-server1 x.x.x.31
set proposal aes256-sha512 aes256-sha384
set dpd on-idle
set dhgrp 14
set xauthtype auto
set authusrgrp "SI_admin"
set ipv4-start-ip x.x.x.1
set ipv4-end-ip x.x.x.10
set ipv4-netmask x.x.x.0
set ipv4-split-include "group-VPN"
set psksecret ENC *****************************************==
set dpd-retryinterval 60
next
edit "vpn-IPSEC"
set phase1name "vpn-IPSEC"
set proposal aes256-sha512 aes256-sha384
set dhgrp 14
next
My Strongswan configuration is :
#/etc/ipsec.d/forti.conf
config setup
charondebug = "dmn 1, mgr 1, ike 1, ike 2, chd 1, job 1, cfg 3, knl 2, net 2, lib 1"
nat_traversal = yes
conn fortinet
type = tunnel
reauth = yes
authby = xauthpsk
left = %defaultroute
leftsourceip = %config
leftsubnet = %dynamic,192.168.1.0/24
leftauth = psk
leftauth2 = xauth
right = PeerIP
rightaddresspool = x.x.x.1-x.x.x.10
rightauth = psk
rightmodecfgserver = yes
keyexchange = ikev1
aggressive = yes
ikelifetime = 86400s
pfs = yes
ike = aes256-sha512;modp2048
phase2 = esp
phase2alg = aes256-sha512;modp2048
keylife = 43200s
xauth_identity = USERNAME
auto=add
#/etc/ipsec.secrets
PeerIP : PSK "PSK"
@USERNAME : XAUTH "PASSWORD"
Could someone help me?
Thanks
Alix
