加入收藏 | 设为首页 | 会员中心 | RSS
您当前的位置:首页 > Linux技术 > 网络管理

Debian上的VPN客户端设置

时间:2008-06-06 10:35:33  来源:  作者:
#由于需要经常vpn到学校的网络
#现在使用的是debian的操作系统
#学校的VPN是基于WIN2003构建
#大致配置流程如下:

#apt-get install pptp-linux


#接着是对pptp的配置,可以使用pptpconfig,也可以自己手工配置
#安装pptpconfig,需要首先把下面这个源加到/etc/apt/source.list

deb http://quozl.netrek.org/pptp/pptpconfig./


#apt-get update之后就可以安装了,这些配置具体请看如下网址:

http://man.chinaunix.net/linux/debian/debian_learning/ch08s16.html

#需要注意的是,由于服务器端基于windows,所以在pptpconfig
#里的加密选项里需勾上对mpee的支持,去掉eap
#
#设置完点update,之后start,出现如下提示:

MS-CHAPv2 Success packet is badly formed.


#连接不成功
#具体原因分析见这里:

http://ubuntuforums.org/showthread.php?t=610599

PPTP server is sending message that you authenticaced successfully but this message is not understood by your ppp (you can see that there is space missing before "M=" in message). You have 2 solutions:
1) Talk to VPN server administrator and try to convince him that server sends responses that violates standard (good luck, windows clients probably work, so he has "no problem")
2) Patch your ppp to ignore any junk on the end of success message:
#解决办法:


# install compileranddevelopment packages
# sudo aptitude install build-essential
# sudo apt-get build-dep ppp
# # create some dir where we will compile our versionofppp
# mkdir ppp
# cd ppp
# # get ppp sources
# apt-get source ppp
# # IMPORTANT
# # now put patch attached tothispostintoppp-2.4.4rel/debian/patches
# # compile package
# cd ppp-2.4.4rel
# fakeroot dpkg-buildpackage-b
# cd..
# # install compiled package
# sudo dpkg-i ppp_*.deb

来顶一下
近回首页
返回首页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
推荐资讯
相关文章
    无相关信息
栏目更新
栏目热门