JWK - Jackall's IT Wiki

Sécurité, Système, Réseau

Outils pour utilisateurs

Outils du site


vpnc

VPNC - Cisco IPSec Client

Intro

VPNC is a Linux client that allow you to connect to Cisco IPSec VPN.
Here is a small howto tested on Fedora 18 but who should work,on any other distribution <note warning> Even though VPNC work well, you can't import PCF file directly. But you can use this script to decode PCF file. </note>

Install

yum install NetworkManager-vpnc

PCF management

Get the PCF and convert it using pcf2vpnc.

[root@ace usr]# cd /usr/local/sbin/
[root@ace sbin]# wget "http://svn.unix-ag.uni-kl.de/vpnc/tags/vpnc-0.5.3/pcf2vpnc"
--2013-03-10 12:48:02-- http://svn.unix-ag.uni-kl.de/vpnc/tags/vpnc-0.5.3/pcf2vpnc
Résolution de svn.unix-ag.uni-kl.de (svn.unix-ag.uni-kl.de)...
2001:638:208:ef34:0:ff:fe00:72, 131.246.124.72
Connexion vers svn.unix-ag.uni-kl.de (svn.unix-ag.uni-kl.de)|2001:638:208:ef34:0:ff:fe00:72|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 3854 (3,8K) [text/plain]
Sauvegarde en : «pcf2vpnc»

100%[============================================================================================================>]
3 854       --.-K/s   ds 0s      

2013-03-10 12:48:02 (224 MB/s) - «pcf2vpnc» sauvegardé [3854/3854]

[root@ace sbin]# ls
pcf2vpnc

[root@ace sbin]# chmod u+x pcf2vpnc

Then just execute the script

[root@ace sbin]# perl pcf2vpnc  /stockage/pcf/Bureau
## generated by pcf2vpnc
IPSec ID ra-ldap
IPSec gateway bureau.jackall.lan
IPSec secret !f0o!3@R!

Xauth username jackall
IKE Authmode psk

Just input due info in network-manager and you're go to go .

search?q=Linux%20VPN%20Cisco%20Fedora%20EN&amp;btnI=lucky

vpnc.txt · Dernière modification: 2018/02/18 16:01 (modification externe)