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

上网、浏览、聊天、下载等
回复
头像
rhfcaesar
帖子: 2996
注册时间: 2005-11-17 15:45
来自: 湖北

#106

帖子 rhfcaesar » 2007-10-19 17:47

我在63楼介绍的方法在710中也能用,呵呵! :D :D

代码: 全选

枪杆子里面出政权
头像
percy
帖子: 508
注册时间: 2006-09-10 8:19
系统: Gentoo/Mac OS X
来自: Shanghai,China
联系:

#107

帖子 percy » 2007-10-19 19:17

rhfcaesar 写了:我在63楼介绍的方法在710中也能用,呵呵! :D :D
怎么我的没用啊,
这是我在WINDOWS下的详细设置
多少给点意见,谢谢了,
viewtopic.php?t=74461&highlight=

我用了sudo pon vpnnet 后,貌似没一点反应
用ifconfig
也没变化,好奇怪啊
头像
rhfcaesar
帖子: 2996
注册时间: 2005-11-17 15:45
来自: 湖北

#108

帖子 rhfcaesar » 2007-10-19 19:32

ls:

你那个貌似需要MPPE 128加密,所以要省略其中的一个注释加密的步骤。 :D :D 再试试。

代码: 全选

枪杆子里面出政权
头像
percy
帖子: 508
注册时间: 2006-09-10 8:19
系统: Gentoo/Mac OS X
来自: Shanghai,China
联系:

#109

帖子 percy » 2007-10-19 20:02

rhfcaesar 写了:ls:

你那个貌似需要MPPE 128加密,所以要省略其中的一个注释加密的步骤。 :D :D 再试试。
刚才又试过了,
sudo cat /etc/ppp/peers/vpnnet
pty "pptp 210.29.96.58 --nolaunchpppd"
name test
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam vpn

然后sudo pon vpnnet
用ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:4D:1B:76:9C
inet addr:10.0.1.111 Bcast:10.0.1.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:4dff:fe1b:769c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:210109 errors:0 dropped:0 overruns:0 frame:0
TX packets:38383 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:78285775 (74.6 MB) TX bytes:5522027 (5.2 MB)
Interrupt:16

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:27 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2250 (2.1 KB) TX bytes:2250 (2.1 KB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:10.0.219.84 P-t-P:10.0.218.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1396 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:90 (90.0 b) TX bytes:94 (94.0 b)


好像有点反应了
但是将Firefox代理服务器关掉的话,还是上不去网,是不是还要手动添加路由
这里有我在WINDOWS下的详细配置
viewtopic.php?t=74461&highlight=
头像
percy
帖子: 508
注册时间: 2006-09-10 8:19
系统: Gentoo/Mac OS X
来自: Shanghai,China
联系:

#110

帖子 percy » 2007-10-19 20:23

下面这个是按你给的配置:
sudo cat /etc/ppp/peers/vpnnet
file /etc/ppp/options.pptp
remotename PPTP
persist
defaultroute
usepeerdns
name test

pjq@pjq-desktop:~$ sudo pon vpnnet
~�}#�!}!}!} }4}"}&} } } } }%}&签S}'}"}(}"m�~~�}#�!}!}!} }4}"}&} } } } }%}&签S}'}"}(}"m�~~�}#�!}!}!} }4}"}&} } } } }%}&签S}'}"}(}"m�~~�}#�!}!}!} }4}"}&} } } } }%}&签S}'}"}(}"m�~~�}#�!}!}!} }4}"}&} } } } }%}&签S}'}"}(}"m�~~�}#�!}!}!} }4}"}&} } } } }%}&签S}'}"}(}"m�~~�}#�!}!}!} }4}"}&} } } } }%}&签S}'}"}(}"m�~~�}#�!}!}!} }4}"}&} } } } }%}&签S}'}"}(}"m�~~�}#�!}!}!} }4}"}&} } } } }%}&签S}'}"}(}"m�~~�}#�!}!}!} }4}"}&} } } } }%}&签S}'}"}(}"m�~~�}#�!}!}"} }4}"}&} } } } }%}&tr�}'}"}(}"}9�~~�}#�!}!}"} }4}"}&} } } } }%}&tr�}'}"}(}"}9�~~�}#�!}!}"} }4}"}&} } } } }%}&tr�}'}"}(}"}9�~~�}#�!}!}"} }4}"}&} } } } }%}&tr�}'}"}(}"}9�~~�}#�!}!}"} }4}"}&} } } } }%}&tr�}'}"}(}"}9�~~�}#�

然后就是乱码,
如果是下面的配置就没问题:
sudo cat /etc/ppp/peers/vpnnet
pty "pptp 210.29.96.58 --nolaunchpppd"
name test
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam vpn


sudo pon vpnnet
pjq@pjq-desktop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:4D:1B:76:9C
inet addr:10.0.1.111 Bcast:10.0.1.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:4dff:fe1b:769c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:231139 errors:0 dropped:0 overruns:0 frame:0
TX packets:39628 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:80996092 (77.2 MB) TX bytes:5826154 (5.5 MB)
Interrupt:16

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:31 errors:0 dropped:0 overruns:0 frame:0
TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2562 (2.5 KB) TX bytes:2562 (2.5 KB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:10.0.218.97 P-t-P:10.0.218.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1396 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:90 (90.0 b) TX bytes:94 (94.0 b)
hyyan
帖子: 12
注册时间: 2007-09-28 20:27

#111

帖子 hyyan » 2007-10-31 10:18

rhfcaesar 写了:
775ftft 写了:支持,
我学校用的是锐捷+二次拨号(l2tpd),不知怎么解决,
知道的,请告诉我,谢谢
775ftft@163.com
please see the attached.

这里提供的这个玩意如何使用?貌似拨号不上去,l2tp协议,pap验证的
头像
woainba15
帖子: 833
注册时间: 2006-11-11 17:14
来自: 浙江宁波
联系:

#112

帖子 woainba15 » 2007-11-01 10:06

去试试lz的方法,显卡搞不定已经很郁闷了,这个再不行就over了。。。。
时间过得快啊!
andytang
帖子: 29
注册时间: 2007-11-13 17:13

#113

帖子 andytang » 2007-11-14 20:04

我的也上不了网,我也在纳闷了.全是英文的,我刚安装了UNUBTU 7.04版的
头像
kansea
帖子: 19
注册时间: 2007-11-19 19:12
来自: 日本

can you copy your packet for me,,thank you

#114

帖子 kansea » 2007-11-19 21:30

can you copy your packet for me,,thank you,,,,,,my email:ljq930@yahoo.com.cn
头像
kansea
帖子: 19
注册时间: 2007-11-19 19:12
来自: 日本

#115

帖子 kansea » 2007-11-20 10:05

能不 能把你那10个文件大包发给我阿,谢谢了
ljq930@yahoo.com.cn
liyangmin
帖子: 25
注册时间: 2007-10-25 10:08

#116

帖子 liyangmin » 2007-11-20 17:53

大家有没有知道需要用USB-KEY 的 vpn 怎么安装?

我们公司就发了一个华为做的。
头像
冲浪板
论坛版主
帖子: 7513
注册时间: 2007-05-06 8:19

#117

帖子 冲浪板 » 2007-11-26 19:23

eexpress 写了:不错的经验,等我有需要的时候,也来参考。 :lol:
到时候...就已经...起了变化
头像
magicsky
帖子: 225
注册时间: 2007-03-30 9:46

#118

帖子 magicsky » 2007-12-07 12:07

楼主还缺少一部阿,懂不懂阿,ubuntu连vpn还得自己加路由信息
http://harmony.relax.blogbus.com/logs/7229035.html
在国外,众多程序员为了理想而夜以继日;
而在国内,程序员在为填饱自己和家人的肚子而埋头苦干。
头像
rhfcaesar
帖子: 2996
注册时间: 2005-11-17 15:45
来自: 湖北

#119

帖子 rhfcaesar » 2007-12-07 21:47

magicsky 写了:楼主还缺少一部阿,懂不懂阿,ubuntu连vpn还得自己加路由信息
http://harmony.relax.blogbus.com/logs/7229035.html
确实不太懂,都是自己瞎摸的, :D :D ,这不,我抛了一块转,就把你这块玉给引来了不是?谢谢你的补充!

代码: 全选

枪杆子里面出政权
SO
帖子: 1
注册时间: 2007-12-17 11:16

#120

帖子 SO » 2007-12-19 9:59

不错,帮助不小阿
回复