FreeABC
记忆重叠

Centos 6.X 系列 Linux cisco vpn 客户端安装——VPNC篇

pre-install

libgcrypt-dev or libgcrypt-devel

 

yum install -y libgcrypt-dev libgcrypt-devel  vpnc

安装

  1. if need crypt, modified the Makefile file, following the Error
  2. make
  3. make install

Error

built without openssl

vpnc was built without openssl: Can't do hybrid or cert mode

vim Makefile
#uncomment
# OPENSSL_GPL_VIOLATION = -DOPENSSL_GPL_VIOLATION
# OPENSSLLIBS = -lcrypto

配置

转换官方pcf配置文件为vpnc配置文件

    pcf2vpnc company.pcf vpnc.conf

vpnc配置文件示例

IPSec ID Mygroup
IPSec secret ourpassword

IPSec gateway <XX.XX.XX.XX>
IKE Authmode psk

## To add your username and password,
## use the following lines:
# Xauth username <your username>
# Xauth password <your password>

启动

  1. 备份默认配置文件default.conf,并将自己生成的改为该名
  2. vpnc启动即可
  3. 或者vpnc company,注意这里不要加配哦知文件的后缀名
  4. vpnc会在后台启动,可以ifconfig查看相关IP
  5. vpnc-disconnect关闭vpnc

常见问题

  1. 连接成功后,部分内网网段无法访问
    解决方法 添加路由规则

 

参考网页

http://home.roadrunner.com/~computertaijutsu/vpnc.html
http://www.unix-ag.uni-kl.de/~massar/vpnc/

 

未经允许不得转载:Free-Abc智能 » Centos 6.X 系列 Linux cisco vpn 客户端安装——VPNC篇
分享到: 更多 (0)