HOWTO:Ubuntu下VPN解决方案 (pptp方法更新在63楼,l2tp+ipsec方法在145楼)

上网、浏览、聊天、下载等
回复
ellison2000
帖子: 15
注册时间: 2007-07-22 22:07
来自: zhejiang

#61

帖子 ellison2000 » 2007-07-23 10:53

我十分需要那有关VPN的十个DEB包,希望有哪位仁兄豪杰能发送一份到fankunquan2000@163.com,不胜感激阿~~~
ellison2000
帖子: 15
注册时间: 2007-07-22 22:07
来自: zhejiang

#62

帖子 ellison2000 » 2007-07-23 10:56

刚没看到,不好一意思阿~~
头像
rhfcaesar
帖子: 2996
注册时间: 2005-11-17 15:45
来自: 湖北

#63

帖子 rhfcaesar » 2007-07-31 12:42

feisty下的方法:
1. 安装附件里的包。
2. sudo apt-get remove network-manager network-manager-gnome
3. sudo pico /etc/ppp/peers/vpnnet, 添加:

代码: 全选

pty "pptp vpn.classnet.cuhk.edu.hk --nolaunchpppd"
##注意: vpn.classnet.cuhk.edu.hk换成你自己的VPN服务器地址
file /etc/ppp/options.pptp
remotename PPTP
persist
defaultroute
usepeerdns
name youruserID
4. sudo pico /etc/ppp/options.pptp, 注释掉 require-mppe-128
5. sudo pico /etc/ppp/pap-secrets, 在最后一行添加:
youruserID PPTP yourpassword
##注意:如果认证方式是chap,那么就编辑chap-secrets文件,而不是pap-secrets。
6. 启动:
sudo pon vpnnet
7. 关闭:
sudo poff vpnnet[/code]
附件
pptp-linux_1.7.0-2ubuntu2_i386.deb
(40.98 KiB) 已下载 1007 次
上次由 rhfcaesar 在 2007-10-20 22:22,总共编辑 3 次。
头像
dchxcrow
帖子: 77
注册时间: 2006-08-16 10:36

#64

帖子 dchxcrow » 2007-08-10 18:23

谢谢了,对我很有启发!
头像
iridiumcao
帖子: 245
注册时间: 2007-01-18 18:05
来自: Shanghai
联系:

#66

帖子 iridiumcao » 2007-08-17 22:14

atery 写了:cisco的vpn client可以用一个免费的vpnc代替,非常方便,我现在就载用.安装只要sudo apt-get install vpnc就好了
虽然可以代替,但性能远不及cisco自家的vpnclient。
Dell Inspiron 1501
Xubuntu&Lubuntu 11.10

Ade, Gnome3, Ade, Unity!

随心所欲不逾矩
头像
jude511
帖子: 22
注册时间: 2007-08-25 23:56

#67

帖子 jude511 » 2007-08-26 0:12

各位大哥们,帮我看看,我刚开始。
附件
pptpconfig显示连上了,但上不了网
pptpconfig显示连上了,但上不了网
头像
rhfcaesar
帖子: 2996
注册时间: 2005-11-17 15:45
来自: 湖北

#68

帖子 rhfcaesar » 2007-08-26 1:31

楼上用的707吗?如果是707就不能用pptpconfig,要用63楼的方法。
你问题没说清楚不好回答的。
头像
jude511
帖子: 22
注册时间: 2007-08-25 23:56

#69

帖子 jude511 » 2007-08-26 9:38

楼主,我的是704的。还有,如果用63楼说的,在步骤3和5中,哪些行是照抄,哪些行要换成自己的?
头像
rhfcaesar
帖子: 2996
注册时间: 2005-11-17 15:45
来自: 湖北

#70

帖子 rhfcaesar » 2007-08-26 14:30

说明了要改的地方就根据你的情况修改,其他一律照抄好了。
步骤三:把vpn服务器地址换成你自己的。
步骤五:youruserID要换成你自己的vpn用户名,yourpassword要换成你自己的vpn登录密码。


Clear?
头像
jude511
帖子: 22
注册时间: 2007-08-25 23:56

[问题]

#71

帖子 jude511 » 2007-08-26 23:24

********************************************************************************************************
Do you want to continue [Y/n]? y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_CTYPE = "zh_CH.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 116017 files and directories currently installed.)
Removing network-manager ...
* Stopping network connection manager NetworkManager [ OK ]
* Stopping network events dispatcher NetworkManagerDispatcher [ OK ]
********************************************************************************************************

楼主,我在执行第二条指令时,出现以上对话。是不是跟lc有关,我该怎样设置?
头像
rhfcaesar
帖子: 2996
注册时间: 2005-11-17 15:45
来自: 湖北

#72

帖子 rhfcaesar » 2007-08-27 15:27

只保留 LANG = "en_US.UTF-8" ,其他都注释掉,不影响使用输入法的。我全英文locale,中文照样没问题。
头像
jude511
帖子: 22
注册时间: 2007-08-25 23:56

[问题]

#73

帖子 jude511 » 2007-08-28 12:50

亲爱的楼主,我的还是不行,我还重装了两边系统。 :em26
头像
rhfcaesar
帖子: 2996
注册时间: 2005-11-17 15:45
来自: 湖北

Re: [问题]

#74

帖子 rhfcaesar » 2007-08-28 15:19

jude511 写了:亲爱的楼主,我的还是不行,我还重装了两边系统。 :em26
:D
不需要重装系统的。能说说你用的是哪种VPN连接方式吗?cisco? pptp?还是别的什么方式?需要加密吗?
Ijs
帖子: 5
注册时间: 2007-08-28 16:41

Re: [问题]

#75

帖子 Ijs » 2007-08-28 16:47

樓主您好
我是採用pptpconfig設定連線
我的錯誤訊息如下

Using interface ppp0
pptpconfig: monitoring interface ppp0
Connect: ppp0 <--> /dev/pts/1
PAP authentication succeeded
Could not determine remote IP address: defaulting to 10.64.64.64 #這remote ip 上哪去改預設值呀?
Cannot determine ethernet address for proxy ARP
local IP address 192.168.202.11
remote IP address 10.64.64.64
primary DNS address 168.95.1.1
secondary DNS address 168.95.192.1
pptpconfig: pppd process exit status 0 (started)
ip route replace 202.39.48.161 via 192.168.1.1 dev eth1 src 192.168.1.5
pptpconfig: routes added to remote networks
ip route replace default dev 'ppp0'
Cannot find device "ppp0"
pptpconfig: command failed, exit code 255 #這東西不知道哪裡有可以查對照知道是什麼錯誤的??
pptpconfig: default route changed to use tunnel
pptpconfig: DNS changes made to /etc/resolv.conf
pptpconfig: connected


勞煩解答
感激不盡
回复