+ -
当前位置:首页 → 问答吧 → 有谁在ArchLinux下使用VPN了,或是知道pptp怎样配置?

有谁在ArchLinux下使用VPN了,或是知道pptp怎样配置?

时间:2005-10-27

来源:互联网

偶的ArchLinux配置基本上完成了,但现在要连上公司的VPN,原先在Windows下用系统自带的vpn连接就可以完成了,现在在Linux下也要连上vpn,在网上找了好多资料,大多都是说在Linux下建立VPN服务器的,关于客户端的少之又少。网上说用pptp就可以实现,我也安装了pptp,照着一些文档做了,可还是拨不了,我都快疯了,只要完成这一步,我就要以用这个Linux来完成我的工作了,有谁能帮帮我?
我的/etc/ppp/chap-secrets文件内容如下:
# Secrets for authentication using CHAP
# client server secret IP addresses
"vpntest" 10.31.18.9 vpntest
/etc/ppp/peers/pptp文件如下:
noauth
nobsdcomp
nodeflate
name testvpn
remotename PPTP
defaultroute
replacedefaultroute
pty "pptp 10.31.18.9 --nolaunchpppd"
我拨号的方法方法如下:
# pptp 10.31.18.9 user vpntest
以上内容是根据网上资料照猫画虎,
结果报错:
anon warn[open_inetsock:pptp_callmgr.c:326]: connect: Connection refused
anon fatal[callmgr_main:pptp_callmgr.c:124]: Could not open control connection to 10.31.18.9
anon fatal[open_callmgr:pptp.c:426]: Call manager exited with error 256
anon fatal[main:pptp.c:310]: Child process died

急盼解。

作者: 南蛮.net   发布时间: 2005-10-27

关注中,正在找,等高手

作者: caelfish   发布时间: 2009-09-04

关注, 好像ipsec更安全一些吧
楼主搞定了分享一下

作者: axlrose   发布时间: 2009-09-04

呵呵,我估计的:你公司的vpn的server是不是在windows下建立的。一般而言,现在的vpn server很多要求128位的加密吧。你的配置文件中没有这方面的描述。

你试试加上类似的语句在你的options中:
require-mppe
require-mppe-128
require-mschap
require-mschap-v2

也许能行吧。

作者: macrosun   发布时间: 2009-09-04

看看这个能不能帮上忙。
http://forum.ubuntu.org.cn/viewtopic.php?f=73&t=21606

作者: rhfcaesar   发布时间: 2009-09-04

用 networkmanager 的话,直接装个 networkmanager-pptp,然后 GUI 设置一下就行。

作者: lymanrb   发布时间: 2009-09-04

我用vpnc连公司的cisco硬vpn

作者: qiang_liu8183   发布时间: 2009-09-05

如果用的nm-applet管理网络,试试networkmanager-pptp

作者: princelai   发布时间: 2009-09-06

关注。。。。。

作者: luyaotang   发布时间: 2009-12-09

我用vpnc连接公司的VPN,是Cisco的解决方案。

Arch上的vpnc直接enable了hybrid authentication,所以无需和Ubuntu一样自己编译了。从Windows或者Cisco官方的Linux VPN client中获取.pcf文件用pcf2vpnc转换一下用就可以了。

我是用rc.d下的脚本启动vpnc的,配置文件是/etc/vpnc/start.conf

IPSec ID Ora-Hybrid-Gen
IPSec gateway xxx.oracle.com
IPSec secret xxxxxxxx

Xauth username username
Application version Cisco Systems VPN Client 4.8.0 (A):Linux
IKE Authmode hybrid
CA-File /etc/vpnc/xxx.cert

仅供参考,vpnc支持Cisco和Nortel的vpn。不过北美的nortel都已经倒闭了吧...

作者: 至尊宝   发布时间: 2009-12-09

热门下载

更多