how to connect to a windows vpn

为当前最终发行版之前的所有版本提供支持
回复
drtyh
帖子: 8
注册时间: 2010-04-24 13:03
送出感谢: 0
接收感谢: 0

how to connect to a windows vpn

#1

帖子 drtyh » 2010-12-13 14:34

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.
头像
hcym
帖子: 15634
注册时间: 2007-05-06 2:46
送出感谢: 0
接收感谢: 2 次

Re: how to connect to a windows vpn

#2

帖子 hcym » 2010-12-13 14:53

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 ملاحظات ، انا ذاهب الى غضب
drtyh
帖子: 8
注册时间: 2010-04-24 13:03
送出感谢: 0
接收感谢: 0

Re: how to connect to a windows vpn

#3

帖子 drtyh » 2010-12-13 15:01

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
头像
tenzu
论坛版主
帖子: 36913
注册时间: 2008-11-21 20:26
送出感谢: 0
接收感谢: 21 次

Re: how to connect to a windows vpn

#4

帖子 tenzu » 2010-12-13 15:05

why two 'sudo's?
回复

回到 “老旧版本支持”