当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : how to connect to a windows vpn
帖子发表于 : 2010-12-13 14:34 

注册: 2010-04-24 13:03
帖子: 8
送出感谢: 0 次
接收感谢: 0 次
i google it still can not solve my vpn connection problem..
i've installed pptp-linux in ubuntu 10.04 and follow the tutorial as following site :

http://pptpclient.sourceforge.net/howto-ubuntu.phtml
(the gui configure package can not be used,the apt-get said the package is broken....)
Configuration, by hand
obtain from your PPTP Server administrator:
the IP address or host name of the server ($SERVER),
the name you wish to use to refer to the tunnel ($TUNNEL),
the authentication domain name ($DOMAIN),
the username you are to use ($USERNAME),
the password you are to use ($PASSWORD),
whether encryption is required.
In the steps below, substitute these values manually. For example, where we write $PASSWORD we expect you to replace this with your password.

create or edit the /etc/ppp/options.pptp file, which sets options common to all tunnels:
lock noauth nobsdcomp nodeflate
create or add lines to the /etc/ppp/chap-secrets file, which holds usernames and passwords:
$DOMAIN\\$USERNAME PPTP $PASSWORD *
Note: if you are using a PPTP Server that does not require an authentication domain name, omit the slashes as well as the domain name.

Note: if the passwords contain any special characters, quote them. See man pppd for more details.

create a /etc/ppp/peers/$TUNNEL file:
pty "pptp $SERVER --nolaunchpppd"
name $DOMAIN\\$USERNAME
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam $TUNNEL
Note: if you do not need MPPE support, then remove the require-mppe-128 option from this file and /etc/ppp/options.pptp.

start the tunnel using the pon command:
pon $TUNNEL
to further diagnose a failure, add options to the command:

pon $TUNNEL debug dump logfd 2 nodetach
Note: we have further information on enabling debug mode, and on diagnosing problems.

stop the tunnel using the poff command:
poff $TUNNEL


the first problem is i do not know whether this vpn require the mppe support ...
but anyway, whether the setting supports the mppe or not ,i can not pon the tunnel.... :em20

the second question is about the chap-secrets file and
i have successfully used the pppoeconf to connect internet via adsl ..and my /etc/ppp/chap-secrets file

# Secrets for authentication using CHAP
# client server secret IP addresses



"xxxxxxx" * "xxxxxxx"

($username) ($password)

but in the tutorial , the format is $DOMAIN\\$USERNAME PPTP $PASSWORD * (do not need the quotation mark " " )
i do not know whether there is any relationship between the adsl connection and the vpn?

Does someone here can tell me how to configure the vpn?

best regards.


页首
 用户资料  
 
2 楼 
 文章标题 : Re: how to connect to a windows vpn
帖子发表于 : 2010-12-13 14:53 
头像

注册: 2007-05-06 2:46
帖子: 15634
送出感谢: 0 次
接收感谢: 2
Install PPTP GUI in Ubuntu

代码:
sudo sudo apt-get install pptpconfig


you want to open the application go to Applications--->Internet or you can use the command line to open GUI

gksudo pptpconfig


_________________
وإذا كان هذا لا يحصل أكثر من 100 ملاحظات ، انا ذاهب الى غضب


页首
 用户资料  
 
3 楼 
 文章标题 : Re: how to connect to a windows vpn
帖子发表于 : 2010-12-13 15:01 

注册: 2010-04-24 13:03
帖子: 8
送出感谢: 0 次
接收感谢: 0 次
hcym 写道:
Install PPTP GUI in Ubuntu

代码:
sudo sudo apt-get install pptpconfig


you want to open the application go to Applications--->Internet or you can use the command line to open GUI

gksudo pptpconfig


i have tried your command ,but
代码:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Couldn't find package pptpconfig


页首
 用户资料  
 
4 楼 
 文章标题 : Re: how to connect to a windows vpn
帖子发表于 : 2010-12-13 15:05 
头像

注册: 2008-11-21 20:26
帖子: 36913
送出感谢: 1
接收感谢: 36
why two 'sudo's?


_________________
讨厌我的人可以试着点一下
浏览全部ubuntu技巧


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:Google [Bot] 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译