Open frostRed opened 10 years ago
device_name = 'vg' # the virtual adapter name you created in step 2
# use "ifconfig" to determing these settings
my_gateway = '192.168.0.1' # your default gateway
my_adapter = 'eth0' # your physical adapter name
You may try these steps and see if it can solve the issue. If not, or any problems met, feel ease to let me know.
A error when I run vpncmd and select 2. [root@Manjaro frost]# vpncmd vpncmd 命令 - SoftEther VPN 命令行管理工具 SoftEther VPN 命令行管理工具 (vpncmd 命令) Version 4.06 Build 9437 (Simplified_Chinese) Compiled 2014/04/09 09:39:04 by yagi at pc25 Copyright (c) SoftEther VPN Project. All Rights Reserved.
通过使用 vpncmd 程序,可以取得以下成果。
选择 1, 2 或 3: 2
指定的主机名或正在运行的目标 VPN Client 计算机的 IP 地址。 如果不输入任何内容并且按下回车键,将连接到本地主机 (这台电脑)。 目标 IP 地址的主机名:61.10.191.74
发生错误。(错误代码: 1) 服务器连接失败。请检查网络连接,确保目标服务器地址和端口正确。
If your vpn target is your local computer, just press "Enter", no need to set the IP address. Just press "Enter" and see what happens.
It looks OK, I received the info "Initialization Sequence Completed", but I also can't use in to watch Youtube.com payson@frost ~/下载/vgauto-master $ sudo python start_openvpn.py You have some choices:
No. ping IP ping_google LineSpeed Region
1. 38 122.136.248.164 83 7Mbps 吉林省长春市 铁通
2. 106 112.72.158.85 58 19Mbps 韩国
3. 107 183.107.72.137 79 26Mbps 韩国
4. 110 113.189.121.32 65 2Mbps 越南
5. 121 112.161.8.159 54 46Mbps 韩国
6. 127 119.198.179.93 87 44Mbps 韩国
7. 133 119.203.136.24 73 58Mbps 韩国
8. 137 221.163.214.93 43 19Mbps 韩国
9. 141 222.97.173.131 76 17Mbps 韩国
10. 143 112.184.25.37 78 36Mbps 韩国
Which one do you like to connect with:2 You have choose:112.72.158.85, continue to connect?
Begin VPN configuration, please wait ...
creating vpn instance ... Initializing openvpn connection ... Sun May 11 10:13:03 2014 OpenVPN 2.3.2 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [eurephia] [MH] [IPv6] built on Nov 28 2013 Sun May 11 10:13:03 2014 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info. Sun May 11 10:13:03 2014 Socket Buffers: R=[212992->131072] S=[212992->131072] Sun May 11 10:13:03 2014 UDPv4 link local: [undef] Sun May 11 10:13:03 2014 UDPv4 link remote: [AF_INET]112.72.158.85:63187 Sun May 11 10:13:03 2014 TLS: Initial packet from [AFINET]112.72.158.85:63187, sid=5df1707a d245db45 Sun May 11 10:13:04 2014 VERIFY OK: depth=2, C=US, O=GeoTrust Inc., CN=GeoTrust Global CA Sun May 11 10:13:04 2014 VERIFY OK: depth=1, C=US, O=GeoTrust, Inc., CN=RapidSSL CA Sun May 11 10:13:04 2014 VERIFY OK: depth=0, serialNumber=UEZF/zN915SZthG4P6GMg2NCKWF9n4H8, OU=GT11772020, OU=See www.rapidssl.com/resources/cps (c)13, OU=Domain Control Validated - RapidSSL(R), CN=.opengw.net Sun May 11 10:13:04 2014 Data Channel Encrypt: Cipher 'AES-128-CBC' initialized with 128 bit key Sun May 11 10:13:04 2014 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication Sun May 11 10:13:04 2014 Data Channel Decrypt: Cipher 'AES-128-CBC' initialized with 128 bit key Sun May 11 10:13:04 2014 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication Sun May 11 10:13:04 2014 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA Sun May 11 10:13:04 2014 [_.opengw.net] Peer Connection Initiated with [AF_INET]112.72.158.85:63187 Sun May 11 10:13:06 2014 SENT CONTROL [*.opengw.net]: 'PUSH_REQUEST' (status=1) Sun May 11 10:13:07 2014 PUSH: Received control message: 'PUSH_REPLY,ping 3,ping-restart 10,ifconfig 10.211.1.5 10.211.1.6,dhcp-option DNS 10.211.254.254,dhcp-option DNS 8.8.8.8,route-gateway 10.211.1.6,redirect-gateway def1' Sun May 11 10:13:07 2014 OPTIONS IMPORT: timers and/or timeouts modified Sun May 11 10:13:07 2014 OPTIONS IMPORT: --ifconfig/up options modified Sun May 11 10:13:07 2014 OPTIONS IMPORT: route options modified Sun May 11 10:13:07 2014 OPTIONS IMPORT: route-related options modified Sun May 11 10:13:07 2014 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified Sun May 11 10:13:07 2014 ROUTE_GATEWAY 192.168.1.1/255.255.255.0 IFACE=eth0 HWADDR=20:6a:8a:66:48:fe Sun May 11 10:13:07 2014 TUN/TAP device tun0 opened Sun May 11 10:13:07 2014 TUN/TAP TX queue length set to 100 Sun May 11 10:13:07 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0 Sun May 11 10:13:07 2014 /sbin/ip link set dev tun0 up mtu 1500 Sun May 11 10:13:07 2014 /sbin/ip addr add dev tun0 local 10.211.1.5 peer 10.211.1.6 Sun May 11 10:13:07 2014 /sbin/ip route add 112.72.158.85/32 via 192.168.1.1 Sun May 11 10:13:07 2014 /sbin/ip route add 0.0.0.0/1 via 10.211.1.6 Sun May 11 10:13:07 2014 /sbin/ip route add 128.0.0.0/1 via 10.211.1.6 Sun May 11 10:13:07 2014 Initialization Sequence Completed
You need to modify your dns, use "8.8.8.8" or "114.114.114.114" or opendns etc. to access some sites. And remember not to use vpn server in China, they usually have no access to y2b.
Hi, Mars, it's a very good project, I use manjaro and I have no way to use vpngate.
There is something wrong with me.
[root@Manjaro vgauto-master]# python start_vpn.py File "start_vpn.py", line 25 print 'Retrieving best server for you, please wait ...' ^ SyntaxError: invalid syntax [root@Manjaro vgauto-master]# python2 start_vpn.py You have some choices:
open url failed:[Errno 104] Connection reset by peer trying using proxy {'http': '127.0.0.1:8087'} ... get [ip, port] list succeed, totally 100 servers sort list by ping value ... Here is the best 10 servers for you:
Which one do you like to connect with:1 You have choose:180.68.241.249:1950, continue to connect?
Begin VPN configuration, please wait ...
creating vpn instance ...
reconfig account settings and connect ... vpncmd 命令 - SoftEther VPN 命令行管理工具 SoftEther VPN 命令行管理工具 (vpncmd 命令) Version 4.06 Build 9437 (Simplified_Chinese) Compiled 2014/04/09 09:39:04 by yagi at pc25 Copyright (c) SoftEther VPN Project. All Rights Reserved.
通过使用 vpncmd 程序,可以取得以下成果。
选择 1, 2 或 3: 2
指定的主机名或正在运行的目标 VPN Client 计算机的 IP 地址。 如果不输入任何内容并且按下回车键,将连接到本地主机 (这台电脑)。 目标 IP 地址的主机名:
发生错误。(错误代码: 1) 服务器连接失败。请检查网络连接,确保目标服务器地址和端口正确。
None vpncmd 命令 - SoftEther VPN 命令行管理工具 SoftEther VPN 命令行管理工具 (vpncmd 命令) Version 4.06 Build 9437 (Simplified_Chinese) Compiled 2014/04/09 09:39:04 by yagi at pc25 Copyright (c) SoftEther VPN Project. All Rights Reserved.
通过使用 vpncmd 程序,可以取得以下成果。
选择 1, 2 或 3: 2
指定的主机名或正在运行的目标 VPN Client 计算机的 IP 地址。 如果不输入任何内容并且按下回车键,将连接到本地主机 (这台电脑)。 目标 IP 地址的主机名:
发生错误。(错误代码: 1) 服务器连接失败。请检查网络连接,确保目标服务器地址和端口正确。
None
dhclient refreshing ... Cannot find device "vpn_vg" enp4s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.13 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::226a:8aff:fe66:48fe prefixlen 64 scopeid 0x20 ether 20:6a:8a:66:48:fe txqueuelen 1000 (Ethernet) RX packets 31116 bytes 36475923 (34.7 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 27803 bytes 3246219 (3.0 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 19
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 0 (Local Loopback)
RX packets 8865 bytes 4520216 (4.3 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8865 bytes 4520216 (4.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
changing route ... Cannot find device "eth0" Cannot find device "vpn_vg"
now you can enjoy the vpn connection!