How do I configure a Linux VPN Client to get into a network through a Fortigate firewall?

Solution 1:

I suggest you check out Openfortivpn. I had to resort to that, as our implementation of fortigate VPN doesn't have a functioning linux client. OpenfortiVPN works great for me:

sudo openfortivpn -c /home/jarmund/vpnconfig

my /home/jarmund/vpnconfig:

host = vpn.example.com
port = 10443
username = [email protected]
password = sUpErSecReTPasW0Rd
trusted-cert = 65568d85191ad188e19e3d9396fd0065899fa1645aef40d3c9ba8e3040b1166b

The trusted cert is the certificate offered by the VPN gateway, and will be displayed if you try to connect. Then you edit the config to add the certificate. Several certificates can be specifie on separate lines.