Hello,
I've been trying to connect to my VPN using an Ubuntu Server today, but I can't seem to be able to get it working. A lot of the advice I found online either didn't work or was outdated.
Does anyone know of a Step by Step guide which actually works?
Thanks
Ok - I managed to do it after a lot of perseverance and effort! I'll post my answer soon for future visitors.
Here's how I managed to do it:
cat /etc/ipsec.conf
config setup
# strictcrlpolicy=yes
# uniqueids = no
charondebug="dmn 2, mgr 2, ike 2, chd 2, job 2, cfg 2, knl 2, net 2, enc2, lib 2"
conn ug_vpn
fragmentation = yes
keyexchange = ikev1
aggressive = yes
reauth = yes
forceencaps = no
mobike = no
rekey = yes
installpolicy = yes
type = tunnel
#type = passthrough
dpdaction = restart
dpddelay = 10s
dpdtimeout = 60s
ikelifetime = 14400s
lifetime = 3600sauto=start
dpdaction=hold
closeaction=holdleft = %defaultroute
leftauth = psk
leftauth2 = xauth
leftsourceip = %config
leftid = %<MY_LOCALID>
xauth_identity=<MY_USERNAME>
right = <MY_FORTIGATE_IP>
rightid = %<MY_LOCALID>
# route all trafic via this tunnel
rightsubnet = 0.0.0.0/0
rightauth = psk
ike=aes128-sha1-modp1536!
esp=aes128-sha1-modp1536!
cat /etc/ipsec.secrets
<MY_USERNAME> : XAUTH "<MY_PASSWORD>"
<MY_USERNAME> <MY_FORTIGATE_IP> : PSK "<MY_SECRET_KEY>"
ipsec up ug_vpn
I hope this helps somebody :)
thanks so far. I am interested in this too. Thus I'd like to addidionally have support for split tunneling.
But might give it some try if I find the time to.
--
"It is a mistake to think you can solve any major problems just with potatoes." - Douglas Adams
Do you mean installing Forticlient on Ubuntu?
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1740 | |
1108 | |
752 | |
447 | |
240 |
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 2024 Fortinet, Inc. All Rights Reserved.