忘记密码   免费注册 查看新帖 | 论坛精华区

ChinaUnix.net

  平台 论坛 博客 认证专区 大话IT 视频 徽章 文库 沙龙 自测 下载 频道自动化运维 虚拟化 储存备份 C/C++ PHP MySQL 嵌入式 Linux系统
最近访问板块 发新帖
查看: 1008 | 回复: 0

Cisco VPN Client 无法连接,请各位看看。 [复制链接]

论坛徽章:
0
发表于 2016-12-15 17:55 |显示全部楼层
安装Cisco VPN Client但是无法连接,请教高手!
我用的path补丁安装的,借鉴的这篇文档http://blog.csdn.net/bowen82/article/details/7426496
这是我的安装提示:
Making module
make -C /lib/modules/2.6.32-642.el6.x86_64/build SUBDIRS=/root/vpnclient modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-642.el6.x86_64'
  CC [M]  /root/vpnclient/linuxcniapi.o
  CC [M]  /root/vpnclient/frag.o
  CC [M]  /root/vpnclient/IPSecDrvOS_linux.o
  CC [M]  /root/vpnclient/interceptor.o
  CC [M]  /root/vpnclient/linuxkernelapi.o
  LD [M]  /root/vpnclient/cisco_ipsec.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: could not find /root/vpnclient/.libdriver64.so.cmd for /root/vpnclient/libdriver64.so
  CC      /root/vpnclient/cisco_ipsec.mod.o
  LD [M]  /root/vpnclient/cisco_ipsec.ko.unsigned
  NO SIGN [M] /root/vpnclient/cisco_ipsec.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.32-642.el6.x86_64'
Create module directory "/lib/modules/2.6.32-642.el6.x86_64/CiscoVPN".
Copying module to directory "/lib/modules/2.6.32-642.el6.x86_64/CiscoVPN".
Already have group 'bin'
Creating start/stop script "/etc/init.d/vpnclient_init".
    /etc/init.d/vpnclient_init
Enabling start/stop script for run level 3,4 and 5.
Creating global config /etc/opt/cisco-vpnclient

Installing license.txt (VPN Client license) in "/opt/cisco-vpnclient/":
    /opt/cisco-vpnclient/license.txt

Installing bundled user profiles in "/etc/opt/cisco-vpnclient/Profiles/":
* New Profiles     : sample

Copying binaries to directory "/opt/cisco-vpnclient/bin".
Adding symlinks to "/usr/local/bin".
    /opt/cisco-vpnclient/bin/vpnclient
    /opt/cisco-vpnclient/bin/cisco_cert_mgr
    /opt/cisco-vpnclient/bin/ipseclog
Copying setuid binaries to directory "/opt/cisco-vpnclient/bin".
    /opt/cisco-vpnclient/bin/cvpnd
Copying libraries to directory "/opt/cisco-vpnclient/lib".
    /opt/cisco-vpnclient/lib/libvpnapi.so
Copying header files to directory "/opt/cisco-vpnclient/include".
    /opt/cisco-vpnclient/include/vpnapi.h
Setting permissions.
    /opt/cisco-vpnclient/bin/cvpnd (setuid root)
    /opt/cisco-vpnclient (group bin readable)
    /etc/opt/cisco-vpnclient (group bin readable)
    /etc/opt/cisco-vpnclient/Profiles (group bin readable)
    /etc/opt/cisco-vpnclient/Certificates (group bin readable)
* You may wish to change these permissions to restrict access to root.
* You must run "/etc/init.d/vpnclient_init start" before using the client.
* This script will be run AUTOMATICALLY every time you reboot your computer.

安装成功,启动也正常,然后我把sample.pcf配置文件拷贝新编辑一个。
[root@localhost Profiles]# cp sample.pcf jkyvpn.pcf
[root@localhost cisco-vpnclient]# vim jkyvpn.pcf
[main]
Description=jkyvpn
Host=101.251.123.125
GroupName=mygroup
Username=cisco
SaveUserPassword=1
#AuthType=1
#EnableISPConnect=0
#ISPConnectType=0
#ISPConnect=
#ISPCommand=
#EnableBackup=0
#BackupServer=
#EnableNat=1
#CertStore=0
#CertName=
#CertPath=
#CertSubjectName=
#CertSerialHash=00000000000000000000000000000000
#DHGroup=2
#ForceKeepAlives=0
#UserPassword=
#enc_UserPassword=
我就改了前边几项,后边我都注释了,而且我也不太清楚后边的选线是什么意义,不过后边的选项不注释也连接不上。
最后我执行[root@localhost Profiles]# vpnclient connect jkyvpn
Enter a group password:
Initializing the VPN connection.
Contacting the gateway at 101.251.123.125
Secure VPN Connection terminated locally by the Client
Reason: Remote peer is no longer responding.
There are no new notification messages at this time.
就永远提示这个,我在网上搜索了一下,有的人出现的问题会在Reason后边带一个端口号,但是我的没有。还有说是防火墙的什么的问题,但是我在win系统下连接就没有问题,在linux下就不行(我的ip地址,组名,用户名跟win的上边都一致。),我的linux和win的网段都一样,不存在防火墙拒绝某网段的问题,并且我linux的防火墙和selinux全部关闭了。
打赏鼓励一下!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

SACC2017购票7.8折优惠进行时

2017中国系统架构师大会(SACC2017)将于10月19-21日在北京新云南皇冠假日酒店震撼来袭。今年,大会以“云智未来”为主题,云集国内外顶级专家,围绕云计算、人工智能、大数据、移动互联网、产业应用等热点领域展开技术探讨与交流。本届大会共设置2大主会场,18个技术专场;邀请来自互联网、金融、制造业、电商等多个领域,100余位技术专家及行业领袖来分享他们的经验;并将吸引4000+人次的系统运维、架构师及IT决策人士参会,为他们提供最具价值的交流平台。
----------------------------------------
优惠时间:2017年8月2日前

活动链接>>
  

北京皓辰网域网络信息技术有限公司. 版权所有 京ICP证:060528号 北京市公安局海淀分局网监中心备案编号:1101082001
广播电视节目制作经营许可证(京) 字第1234号 中国互联网协会会员  联系我们:
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP