[求助]如何在arch下设置vpn

回复
头像
itux
帖子: 223
注册时间: 2008-01-10 14:03
送出感谢: 0
接收感谢: 0

[求助]如何在arch下设置vpn

#1

帖子 itux » 2009-03-16 12:42

按照wiki上面所指示的方法:http://wiki.ubuntu.org.cn/%E5%A6%82%E4% ... 8UbuntuVPN

可设置到第三步的时候就出问题了,add选项根本就无法使用。

附图如下,请问如何解决?
2009-03-16-123947_446x330_scrot.png
头像
bjsm
帖子: 2322
注册时间: 2007-05-13 16:45
来自: 阿拉斯加群岛其中的一个岛上一片原始森林里其中的一颗树上
送出感谢: 0
接收感谢: 0
联系:

Re: [求助]如何在arch下设置vpn

#2

帖子 bjsm » 2009-04-07 14:48

哪位大牛开个坛,布个道,我也想了解了解。
http://shop33976086.taobao.com/
AMD 速龙 x4 630
GIGABYTE MA785GT-UD3H
金士顿 骇客神条 DDR3 1666 2G (这个内存我最肉疼,390元。)
VIEWSONIC 2433
ssh -qTfnN -D 7070
chenwl
帖子: 509
注册时间: 2008-09-06 10:04
送出感谢: 0
接收感谢: 0

Re: [求助]如何在arch下设置vpn

#3

帖子 chenwl » 2009-07-30 23:41

我也想了解下

图片
头像
gza633
帖子: 799
注册时间: 2009-03-13 14:26
送出感谢: 0
接收感谢: 0

Re: [求助]如何在arch下设置vpn

#4

帖子 gza633 » 2009-07-31 21:59

viewtopic.php?f=155&t=216549

我问过这么一个问题 结果130几人看 看看那几个回帖的啥样
s666666
帖子: 21
注册时间: 2007-03-25 0:48
送出感谢: 0
接收感谢: 0

Re: [求助]如何在arch下设置vpn

#5

帖子 s666666 » 2009-07-31 22:23

你们不要这样。。。
我自己这么干的,反正可以用就是了。
sudo pacman -S openvpn
alias vpn='sudo openvpn --config /home/XXXXXX.conf --ca /home/XXXXXX.crt'
chenwl
帖子: 509
注册时间: 2008-09-06 10:04
送出感谢: 0
接收感谢: 0

Re: [求助]如何在arch下设置vpn

#6

帖子 chenwl » 2009-08-01 6:38

我在终端运行openvpn,运行正常但是没效果,到ip38.com上一看还是原来的IP阿

代码: 全选


[wenlong@localhost ~]$ sudo openvpn --config /media/winD/Program\ Files/UltraVPN/config/client.ovpn --ca /media/winD/Program\ Files/UltraVPN/config/ca.crt 
Sat Aug  1 06:33:36 2009 OpenVPN 2.0.9 i686-pc-linux [SSL] [LZO] [EPOLL] built on Jun  3 2009
Enter Auth Username:chenwl
Enter Auth Password:
Sat Aug  1 06:33:39 2009 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA.  OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
Sat Aug  1 06:33:39 2009 WARNING: No server certificate verification method has been enabled.  See http://openvpn.net/howto.html#mitm for more info.
Sat Aug  1 06:33:39 2009 LZO compression initialized
Sat Aug  1 06:33:39 2009 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Sat Aug  1 06:33:39 2009 RESOLVE: Cannot resolve host address: servers21.ultravpn.fr: [HOST_NOT_FOUND] The specified host is unknown.
Sat Aug  1 06:33:39 2009 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Sat Aug  1 06:33:39 2009 Local Options hash (VER=V4): '41690919'
Sat Aug  1 06:33:39 2009 Expected Remote Options hash (VER=V4): '530fdded'
Sat Aug  1 06:33:39 2009 RESOLVE: Cannot resolve host address: servers21.ultravpn.fr: [HOST_NOT_FOUND] The specified host is unknown.
Sat Aug  1 06:33:39 2009 TCP/UDP: Closing socket
Sat Aug  1 06:33:39 2009 SIGUSR1[soft,init_instance] received, process restarting
Sat Aug  1 06:33:39 2009 Restart pause, 2 second(s)
Sat Aug  1 06:33:41 2009 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA.  OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
Sat Aug  1 06:33:41 2009 WARNING: No server certificate verification method has been enabled.  See http://openvpn.net/howto.html#mitm for more info.
Sat Aug  1 06:33:41 2009 Re-using SSL/TLS context
Sat Aug  1 06:33:41 2009 LZO compression initialized
Sat Aug  1 06:33:41 2009 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Sat Aug  1 06:33:41 2009 RESOLVE: NOTE: servers24.ultravpn.net resolves to 2 addresses, choosing one by random
Sat Aug  1 06:33:41 2009 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Sat Aug  1 06:33:41 2009 Local Options hash (VER=V4): '41690919'
Sat Aug  1 06:33:41 2009 Expected Remote Options hash (VER=V4): '530fdded'
Sat Aug  1 06:33:41 2009 UDPv4 link local: [undef]
Sat Aug  1 06:33:41 2009 UDPv4 link remote: 94.23.207.54:24
Sat Aug  1 06:33:42 2009 TLS: Initial packet from 94.23.207.54:24, sid=53c854a7 1ceabe63
Sat Aug  1 06:33:43 2009 VERIFY OK: depth=1, /C=FR/ST=NA/L=BISHKEK/O=OpenVPN-TEST/CN=ludwig/emailAddress=me@myhost.mydomain
Sat Aug  1 06:33:43 2009 VERIFY OK: depth=0, /C=FR/ST=NA/O=OpenVPN-TEST/CN=ludwig/emailAddress=me@myhost.mydomain
Sat Aug  1 06:33:45 2009 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Aug  1 06:33:45 2009 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Aug  1 06:33:45 2009 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Aug  1 06:33:45 2009 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Aug  1 06:33:45 2009 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Sat Aug  1 06:33:45 2009 [ludwig] Peer Connection Initiated with 94.23.207.54:24
Sat Aug  1 06:33:46 2009 SENT CONTROL [ludwig]: 'PUSH_REQUEST' (status=1)
Sat Aug  1 06:33:46 2009 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 94.23.39.201,dhcp-option DNS 213.251.133.164,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.8.41.26 10.8.41.25'
Sat Aug  1 06:33:46 2009 Options error: unknown --redirect-gateway flag: bypass-dhcp
Sat Aug  1 06:33:46 2009 Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:5: topology (2.0.9)
Sat Aug  1 06:33:46 2009 OPTIONS IMPORT: timers and/or timeouts modified
Sat Aug  1 06:33:46 2009 OPTIONS IMPORT: --ifconfig/up options modified
Sat Aug  1 06:33:46 2009 OPTIONS IMPORT: route options modified
Sat Aug  1 06:33:46 2009 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Sat Aug  1 06:33:46 2009 TUN/TAP device tun0 opened
Sat Aug  1 06:33:46 2009 /sbin/ifconfig tun0 10.8.41.26 pointopoint 10.8.41.25 mtu 1500
Sat Aug  1 06:33:46 2009 /sbin/route add -net 10.8.0.1 netmask 255.255.255.255 gw 10.8.41.25
Sat Aug  1 06:33:46 2009 Initialization Sequence Completed




s666666 写了:你们不要这样。。。
我自己这么干的,反正可以用就是了。
sudo pacman -S openvpn
alias vpn='sudo openvpn --config /home/XXXXXX.conf --ca /home/XXXXXX.crt'
chenwl
帖子: 509
注册时间: 2008-09-06 10:04
送出感谢: 0
接收感谢: 0

Re: [求助]如何在arch下设置vpn

#7

帖子 chenwl » 2009-08-01 6:39

s666666 写了:你们不要这样。。。
我自己这么干的,反正可以用就是了。
sudo pacman -S openvpn
alias vpn='sudo openvpn --config /home/XXXXXX.conf --ca /home/XXXXXX.crt'
能不能把你的 conf 和 crt 文件传上来试一试。
s666666
帖子: 21
注册时间: 2007-03-25 0:48
送出感谢: 0
接收感谢: 0

Re: [求助]如何在arch下设置vpn

#8

帖子 s666666 » 2009-08-01 7:04

我对这些没了解。
UltraVPN的话,在client.ovpn最后加上一句

代码: 全选

redirect-gateway
具体啥用处我也不知道,自己去找资料吧。
chenwl
帖子: 509
注册时间: 2008-09-06 10:04
送出感谢: 0
接收感谢: 0

Re: [求助]如何在arch下设置vpn

#9

帖子 chenwl » 2009-08-01 7:29

s666666 写了:我对这些没了解。
UltraVPN的话,在client.ovpn最后加上一句

代码: 全选

redirect-gateway
具体啥用处我也不知道,自己去找资料吧。
perfect ! :em11
黄色蚂蚁
帖子: 31
注册时间: 2009-05-04 17:34
送出感谢: 0
接收感谢: 0

Re: [求助]如何在arch下设置vpn

#10

帖子 黄色蚂蚁 » 2009-08-01 13:17

UltraVPN在最后的时候没有修改路由
所有运行之后还要自己修改路由
AlonwebVPN就没有这个问题,运行后会自动修改路由

我一般都是把需要访问的地址段自己写个脚本修改路由
这样两不误
头像
nuanhuai
帖子: 7810
注册时间: 2009-03-10 13:04
送出感谢: 1 次
接收感谢: 0

Re: [求助]如何在arch下设置vpn

#11

帖子 nuanhuai » 2009-10-04 23:32

代码: 全选

[root@localhost ~]# y -Ss networkmanager-openvpn
aur/networkmanager-openvpn 0.7.1-2 [installed] (118)
    openvpn plugin for networkmanager
装了个 包包,出来了 :em11
回复

回到 “Arch发行版”