/vpnc-fortigate

Mirror of vpnc patched to work with Fortigate

Primary LanguageC

VPNC Fortisgate

vpnc patched to work with Fortisgate.

The revision hosted in this repository is 550. The latest version can be found at http://svn.unix-ag.uni-kl.de/vpnc/trunk/.

Patch is here. Patch was original taken from Fortigate Ipsec Linux Networkmanager

Quick Install

Please read the source before blindly executing a shell script: quick-setup.sh.

sh -c "$(curl -fsSL https://raw.github.com/hekar/vpnc-fortisgate/master/setup.sh)"

Fedora

Dependencies

sudo dnf install -y libgcrypt-devel gnutls-devel

Ubuntu

Dependencies

TODO

Manual Setup

git@github.com:hekar/vpnc-fortisgate.git
cd vpnc-fortisgate/vpnc
make

Optionally it can also be installed. This is not recommended, as it will overwrite the vpnc client provided by your distribution and may not connect to other vpn providers. It is recommended that you save this patched version in /opt or elsewhere.

sudo make install

Run

If installed, you run this in the same manner you would run the standard vpnc (usually through NetworkManager.)

Not being a fan of NetworkManager, I prefer to run vpnc from the shell.

  1. Create a configuration file and save it in your home directory "~/.vpnc-default":
IPSec gateway my.vpn.gateway
IPSec ID my.ipsec.id
IPSec secret mysecret
  1. Start vpnc with the correct configuration file
sudo ./vpnc/vpnc ~/.vpnc-default
  1. Disconnect using sudo ./vpnc/vpnc-disconnect or kill -9 <PID>

  2. Add to $PATH

Credit

Tulio Munhoz - JustDailyNotes for the patch.