Giter VIP home page Giter VIP logo

chnroutes's People

Stargazers

 avatar

Watchers

 avatar

chnroutes's Issues

mac os 10.5.8 下 pptp 连接后未能成功修改路由表

What steps will reproduce the problem?
1. 下载chnroutes_pptp_mac并按提供方法安装成功
2. 连接pptp或者l2tp后 /tmp/pptp_oldgw 文件也成功产生
3. 但是文件为空,用netstat -nr命令并问看见路由表更改

What is the expected output? What do you see instead?
用netstat -nr应该看到路由表成功更改,但是并没有,pptp 
vpn还是全局代理,所有网络流量都经过vpn。


What version of the product are you using? On what operating system?
chnroutes_pptp_mac on mac os 10.5.8


Please provide any additional information below.
有时候可以成功更改但成功率很低,有时候尝试十次也未必��
�成功一次,一切都要看运气


Original issue reported on code.google.com by [email protected] on 14 Nov 2010 at 6:40

可以通过gfwlist细化路由表吗

route-table-gen (http://code.google.com/p/route-table-gen/) 
那个project好像是要通过gfwlist细化路由表。

实现上有什么难度吗?

Original issue reported on code.google.com by [email protected] on 9 Dec 2011 at 9:32

should output "!/bin/bash" in chnroutes_ovpn_linux

After download the chntoutes_ovpn_linux, and follow steps as below:
1. python chnroutes_ovpn_linux (OK)
2. chmod a+x vpnup vpndown (OK)
3. vpnup (ERROR)

the vpnup will show:
"[: 8: 192.168.1.1: unexpected operator"

On Ubuntu 10.4.

Because the Ubuntu has changed the default shell to dash (a ash like shell), 
for performance. But the `vpnup' was write in bash.

To solve this issue, I changed the first line of the `vpnup' script created by 
`chnroutes_ovpn_linux' to `#!/bin/bash', the message disappear.

Original issue reported on code.google.com by [email protected] on 16 Jul 2010 at 1:31

对中文本地连接名处理不当

Mon Jan 25 21:57:55 2010 us=723000 vpnup.vbs 本地连接 2 1500 1542
10.7.0.224 255.255.255.0 init

由于本地连接的名称是"本地连接 
2",这样传递的参数里,第一个参数就变成"本地连
接"了…

Original issue reported on code.google.com by [email protected] on 25 Jan 2010 at 2:02

Windows下多网卡时脚本获取的网关可能有问题

What steps will reproduce the problem?
1. 机器有两块或以上网卡且至少有一块设置了静态ip
2. 
使用非静态ip的网卡时获取到的网关会始终是设置了静态ip那�
��网卡的网关,如果
两块网卡使用的网关不同就会出错了
3. 如果多块网卡的网关都一致那这个问题就不是问题了
4. 以上问题均发生在win7环境下,其他环境没有测试

原脚本里面是通过route print ^| findstr 
"\<0.0.0.0\>获取当前网关的,实际上这
样获取到的是当前网关和设置了静态ip的网卡的网关的列表,
我观察了一下route
print生产的信息,发现只有第一个网关(即当前真正在用的网
关)是以数字结尾的,
所以改成route print ^| findstr 
"\<0.0.0.0.*[0-9]$,这样就不会出问题了

Original issue reported on code.google.com by [email protected] on 8 Apr 2010 at 2:33

我用**的VPN,无法连接Dropbox

我用的是**的VPN,连接之前执行了vpnup.bat,绝大部分的都��
�常,但是唯独dropbox经常无法连接,**不至于无法访问dropbo
x吧,请问我要删除掉哪条静态路由,才可以让dropbox不走**
?

Original issue reported on code.google.com by [email protected] on 17 Jun 2011 at 12:21

iChat遠程桌面的問題

我發現國內兩台Mac/iChat如果其中有一台使用了chnroutes, 
將會無法使用遠程桌面,估計是apple那邊實現的過程沒有考慮
到這種特殊情況。

各位有發現這個現象嗎?有無work around可以解決?

Original issue reported on code.google.com by [email protected] on 21 Jun 2010 at 9:17

公司网段访问

What steps will reproduce the problem?
1. 按照chnroutes 设置完毕
2. 启动VPN,连接旧金山


What is the expected output? What do you see instead?
无法正常访问公司内部网站,outlook无法连接公司exchange邮件��
�务器

What version of the product are you using? On what operating system?
office 2011 for mac, mac os 10.6

Please provide any additional information below.
以前在公司用vpn,最大的问题就是拨了之后无法访问公司内��
�oa网站,也无法正常收取邮件(当然这也很正常;)

然后找到了chnroutes,非常满意这个能根据需求来区别是否走vp
n的方式。
想了解如何将公司网段添加设置为不走vpn的模式。

例如公司网段为172.18.xxx.xxx


Original issue reported on code.google.com by [email protected] on 8 Oct 2010 at 7:28

push routes from server side

Hi guys:

I successfully configured OpenVPN server to push routes to client. This is 
__WAY__ easier than let clients messing with configuration as well as DNS 
server.

Another advantage is these days we have too much device to mess with: iPad, 
iPhone, Android. We usually have two of them. There is no easy way to make them 
work like magic. That's too painful.




Original issue reported on code.google.com by [email protected] on 19 Oct 2011 at 6:31

country-ipv4.lst 文件好像找不到了?

url=r'http://ftp.apnic.net/apnic/dbase/data/country-ipv4.lst'                   


这行报错,后来发现是这个文件 404 
了,去哪里可以找到这个文件的最新版本呢?谢谢。

Original issue reported on code.google.com by [email protected] on 26 Nov 2011 at 1:19

  • Merged into: #47

WIN7 PPTP “路由添加失败: 参数错误” 的解决方案

由于WIN7的route print输出结果发生了变化,如下所示:

网络目标        网络掩码          网关       接口   跃点数
 0.0.0.0          0.0.0.0            在链路上    123.231.123.123    434

因此,在vpnup.bat批处理文件,第3行的如下命令会错误获取信�
��:
for /F "tokens=3" %%* in ('route print ^| findstr "\<0.0.0.0\>"') do set 
"gw=%%*"

在WIN7下运行此批处理命令获取的字符串会是 
'在链路上',而不是网关IP地址。

解决方案:
编辑vpnup.bat批处理文件,将上述命令中的 "tokens=3" 更改为 
"tokens=4"。


Original issue reported on code.google.com by [email protected] on 21 Mar 2011 at 5:11

gaeproxy项目内置的表不能访问日本的ameba网站

手动nslookup了下

ameblo
180.233.142.129 
180.233.142.131
ameba
59.106.4.193
209.8.118.120
209.8.118.74
180.233.143.1
180.233.142.226
180.233.143.17
180.233.140.2
203.77.186.253
203.77.186.254
180.233.143.42

不知道这个能不能添加到表内



Original issue reported on code.google.com by [email protected] on 10 Jan 2012 at 7:36

pre_created_for_win 的 EOL 问题

我一个朋友说up.bat执行不了,我发现,原来是UNIX的EOL,而不�
��特殊的Windows式的\r\n,转一下就好了。


Original issue reported on code.google.com by sherlockmao on 23 Oct 2010 at 5:31

MAC OSX 10.6.6 中使用ip-up后,国外网站速度慢

What steps will reproduce the problem?
1. python chnroutes_pptp_mac
2. sudo cp ip-up ip-down /etc/ppp
3. sudo chmod +x ip-up ip-down
4. connect vpn

What is the expected output? What do you see instead?
netstat -rn 
显示所有国内IP都进入了路由表。访问国内站点也确实直接走
而非通过VPN,但是访问国外网站速度很慢。应该说是有些网��
�速度就很慢。比如mog.com页面迟迟不能打开.国外网站确实从VP
N走的。不是直走。


What version of the product are you using? On what operating system?
MAC OSX 10.6.6

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 18 Jan 2011 at 6:43

For Android OpenVPN用户的脚本

前提:有内置busybox
注意自行修改其中的路径以符合你的android rom的实际
在.ovpn文件中添加以下配置:
up "/system/bin/sh /sdcard/openvpn/vpnup.sh"
down "/system/bin/sh /sdcard/openvpn/vpndown.sh"
script-security 2

然后将本issue中的附件放在/sdcard/openvpn/文件夹下

Original issue reported on code.google.com by [email protected] on 21 Feb 2010 at 2:18

Attachments:

如果是用networkmanager,又要如何配置

opensuse/ubuntu
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 13 Jul 2011 at 6:21

L2TP的怎麼辦?

看下載檔似乎只有PPTP和OpenVPN的,那采用L2TP的怎麼辦?Mac...

Original issue reported on code.google.com by [email protected] on 23 Feb 2010 at 11:14

QQ不能登录

Mac上用了PPTP版本之后,用Get route测试OK,QQ不能登录

Original issue reported on code.google.com by [email protected] on 13 Apr 2010 at 2:53

openvpn用在配置文件后添加路由的方式使用一段时间后路由全部都不走vpn了。

一开始挺好的,国内的走国内路由,用那种看ip的网站查询是
我自己的ip,然后去国外的查ip网站查询是vpn的ip..但是用一段��
�间后不知道为什么就都变成做国内路由了。youtube和facebook都�
��不去,然后去看国外的查ip网站显示也是我自己的国内ip了��
�。。

Original issue reported on code.google.com by [email protected] on 23 Aug 2011 at 5:45

Server2003 route命令无法成功运行

单独运行route命令出现如下错误:
C:\Documents and Settings\Administrator>route add 1.12.0.0 mask 255.252.0.0 %gw%
 metric 5
route: bad gateway address %gw%

Original issue reported on code.google.com by [email protected] on 20 Oct 2011 at 3:36

当连接成功后无任何路由表加入route list 系统windows 2003

What steps will reproduce the problem?
1. put below files in D:\usr\local\programs\openvpn\
vpndown.bat
vpndown.vbs
vpnup.bat
vpnup.vbs

2. change config file add below lines:

route-delay 2
script-security 2
up '"C:/WINDOWS/system32/wscript.exe" 
D:/usr/local/programs/openvpn/config/vpnup.vbs'
down '"C:/WINDOWS/system32/wscript.exe" 
D:/usr/local/programs/openvpn/config/vpndown.vbs'

3. change vpnup.vbs and vpndown.vbs as:

Set objShell = CreateObject("Wscript.shell")
call objShell.Run("D:\usr\local\programs\openvpn\config\vpnup.bat",0,FALSE)


Set objShell = CreateObject("Wscript.shell")
call objShell.Run("D:\usr\local\programs\openvpn\config\vpndown.bat",0,FALSE)

What is the expected output? What do you see instead?
all of the route lines added to local route list.

but there's nothing added and output below:

Sun Jun 20 12:33:26 2010 TAP-WIN32 device [Local Area Connection 3] opened: 
\\.\Global\{56CB6665-E87B-445F-A2F3-F8BE6AF4248B}.tap
Sun Jun 20 12:33:26 2010 TAP-Win32 Driver Version 9.6 
Sun Jun 20 12:33:26 2010 TAP-Win32 MTU=1500
Sun Jun 20 12:33:26 2010 Notified TAP-Win32 driver to set a DHCP IP/netmask of 
10.8.0.22/255.255.255.252 on interface {56CB6665-E87B-445F-A2F3-F8BE6AF4248B} 
[DHCP-serv: 10.8.0.21, lease-time: 31536000]
Sun Jun 20 12:33:26 2010 Successful ARP Flush on interface [6] 
{56CB6665-E87B-445F-A2F3-F8BE6AF4248B}
Sun Jun 20 12:33:26 2010 C:/WINDOWS/system32/wscript.exe 
D:/usr/local/programs/openvpn/config/vpnup.vbs Local Area Connection 3 1500 
1546 10.8.0.22 10.8.0.21 init
Sun Jun 20 12:33:29 2010 TEST ROUTES: 2/2 succeeded len=1 ret=1 a=0 u/d=up
Sun Jun 20 12:33:29 2010 C:\WINDOWS\system32\route.exe ADD 74.82.169.247 MASK 
255.255.255.255 192.168.1.1
Sun Jun 20 12:33:29 2010 C:\WINDOWS\system32\route.exe ADD 0.0.0.0 MASK 
128.0.0.0 10.8.0.21
Sun Jun 20 12:33:29 2010 C:\WINDOWS\system32\route.exe ADD 128.0.0.0 MASK 
128.0.0.0 10.8.0.21
Sun Jun 20 12:33:29 2010 C:\WINDOWS\system32\route.exe ADD 10.8.0.1 MASK 
255.255.255.255 10.8.0.21
Sun Jun 20 12:33:29 2010 Initialization Sequence Completed


What version of the product are you using? On what operating system?
VPN client: OpenVPN 2.1_rc15 i686-pc-mingw32 [SSL] [LZO2] [PKCS11] built on May 
 5 2009
OS: Microsoft Windows [Version 5.2.3790]

Please provide any additional information below.
请开发人员帮忙确认一下,是否在WINDOWS 
2003下成功执行添加路由呢?

谢谢你们为大家提供这么好的解决方案!

Original issue reported on code.google.com by [email protected] on 20 Jun 2010 at 4:46

能否选择多一些的国家地区的IP?

从apnic拿过来的列表中有亚太地区的所有IP列表。目前程序默�
��只选择其中的: cn : 
的。是否可以扩展一下让用户可以选择hk,tw等。因为这些地方
的服务器大陆直接访问过去也挺快的,不需要VPN。

Original issue reported on code.google.com by [email protected] on 29 Jul 2010 at 7:19

增加私有IP段路由表

现在路由表中缺少局域网的10.*.*.*、172.*.*.*、192.*.*.* 
IP段,无法访问路由资源。建立在vpnup脚本中加上以下IP段:

route add -net 172.0.0.0 netmask 255.0.0.0 gw $OLDGW
route add -net 192.0.0.0 netmask 255.0.0.0 gw $OLDGW
route add -net 10.0.0.0 netmask 255.0.0.0 gw $OLDGW

Original issue reported on code.google.com by [email protected] on 18 Aug 2010 at 3:04

Mac pppoe 拨号,按照教程操作之后国内网站仍走vpn线路

我用的是MAC 系统,版本号10.6.5,pppoe拨号,pptp vpn
在我按照http://code.google.com/p/chnroutes/wiki/Usage 
上的教程设置之后,用route get 
命令查看网关,发现无论是国内还是国外ip走的还都是的 
vpn线路
试了好几遍都不行,我是严格按照教程上来做的

Original issue reported on code.google.com by [email protected] on 28 Dec 2010 at 6:57

即使按照说明添加了路由表,正确设置了脚本,连接速度依然很慢

What steps will reproduce the problem?
1. 安装好OpenVPN
2. 
按http://code.google.com/p/chnroutes/wiki/Usage描述的方法添加路由表
3. 点击客户端上的Connect按钮链接VPN

What is the expected output? What do you see instead?
理想状况应该是,在添加了路由表之后,大陆的网站应该通��
�非VPN线路访问。但情况
并非如此

What version of the product are you using? On what operating system?

OpenVPN v2.1.1 ,GUI版本v1.0.3
Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 28 Mar 2010 at 5:19

如何解決國外未強網址的連線速度問題?

chnroutes可以很好的解決全局vpn時,連內地網站都需要經過vpn��
�問題。

但,國外大部份網站都是未被強的,可是依chnroutes的方式,��
�中國以外的ip皆經由vpn。這就造成了國外未被強網站也經過vp
n訪問,而導致速度慢的問題。

其實主要是vpn的速度不快才會如此,但沒法子,咱們的vpn是��
�己建的。頻寬有限><

Original issue reported on code.google.com by [email protected] on 24 Jun 2011 at 6:31

求一個在ros軟路由下的腳本

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 13 Dec 2011 at 2:21

OpenVPN无法连接

按步骤把routes.txt里的信息加入我的config.opvn文件后,Tunnelblick
报告因配置文件错误所以无法连接VPN。

不知道哪里设置错误了。我是把routes信息全加在文件末尾了��
�至于那个max routes究竟应该在文件的哪个位置?

系统是Mac OS X 10.6.7, Tunnelblick 3.1.6

Original issue reported on code.google.com by [email protected] on 22 Apr 2011 at 2:39

希望能够提供一些自定义的路由表的方法

比如有一些网站虽然是国外网站,但国内可以正常访问,这��
�情况下走VPN就有点多此一举,所以希望能够提供自定义的方�
��。

我看了一下bat文件的内容,主要是一些参数看不懂,解释一��
�大家就可以自定义了:


Original issue reported on code.google.com by coffin86 on 9 Aug 2010 at 3:34

pppoe拨号上网修改路由表无法连接国内网络

What steps will reproduce the problem?
1. 使用vpnup.dat修改路由表
2. pppoe拨号上网
3. 连接vpn


What is the expected output? What do you see instead?
期望结果:国内流量走pppoe,国外走vpn。
事实:国外网站可以访问,国内不行

Please provide any additional information below.
我对路由表不是很熟,看了下发现是修改路由表让流量走本��
�网关,但是我总觉得这个pppoe拨号以后让流量直接走网关可��
�吗?我试过pppoe拨号以后再运行这个vpnup.bat,但是出现一串��
�数错误的提示,也不知道为什么

Original issue reported on code.google.com by [email protected] on 13 Oct 2010 at 1:31

Android 脚本生成有问题

生成的Android的vpnup.sh开头几行alias有问题

alias nestat='system/xbin/busybox netstat'
alias grep='/system/xbin/busybox awk'

应该是


alias netstat='/system/xbin/busybox netstat'
alias awk='/system/xbin/busybox awk'

Original issue reported on code.google.com by [email protected] on 10 Jul 2010 at 1:33

Windows 7 PPTP

我没有用OpenVPN,直接用Windows 7 
PPTP建立的VPN连接,在我执行vpnup.bat时遇到这样的提示:
"请求的操作需要提升。"
当我试着以管理员身份运行时,提示是:
"路由添加失败: 参数错误。"
请问应该怎样解决呢?

谢谢!

Original issue reported on code.google.com by [email protected] on 3 Jan 2011 at 11:59

解决一下内网问题吧

解决一下内网问题吧

公司内网,用上这个就上不了内网了,不给力啊


Original issue reported on code.google.com by coffin86 on 6 Dec 2010 at 7:49

Windows的调用方法基本是错误的

正确的方法是:
script-security 2
up '"C:/WINDOWS/system32/cscript.exe" "C:/Program
Files/OpenVPN/config/vpnup.vbs"'
down '"C:/WINDOWS/system32/cscript.exe" "C:/Program
Files/OpenVPN/config/vpndown.vbs"' 

否则会提示无法执行vbs脚本

Original issue reported on code.google.com by [email protected] on 21 Mar 2010 at 4:07

doesn't work with tunnelblink 3.2beta30 on mac

What steps will reproduce the problem?
1. I use tunnelblick 3.2beta30 (the lion version on Mac)
2. follow the openvpn method
3. I doesn't work on my mac

here's the output log:

2011-09-03 02:18:42 PUSH: Received control message: 
'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 10.103.30.1,dhcp-option DNS 
8.8.4.4,dhcp-option DNS 8.8.8.8,route 10.103.30.0 255.255.255.0,topology 
net30,ping 15,ping-restart 90,ifconfig 10.103.30.6 10.103.30.5'
2011-09-03 02:18:42 OPTIONS IMPORT: timers and/or timeouts modified
2011-09-03 02:18:42 OPTIONS IMPORT: --ifconfig/up options modified
2011-09-03 02:18:42 OPTIONS IMPORT: route options modified
2011-09-03 02:18:42 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options 
modified
2011-09-03 02:18:42 ROUTE default_gateway=192.168.1.1
2011-09-03 02:18:44 TUN/TAP device /dev/tun0 opened
2011-09-03 02:18:44 MANAGEMENT: >STATE:1314987524,ASSIGN_IP,,10.103.30.6,
2011-09-03 02:18:44 /sbin/ifconfig tun0 delete
2011-09-03 02:18:44 NOTE: Tried to delete pre-existing tun/tap instance -- No 
Problem if failure
2011-09-03 02:18:44 /sbin/ifconfig tun0 10.103.30.6 10.103.30.5 mtu 1500 
netmask 255.255.255.255 up
2011-09-03 02:18:44 MANAGEMENT: Client disconnected


Original issue reported on code.google.com by [email protected] on 2 Sep 2011 at 6:22

Mac OS下的ip-up脚本在使用ADSL+路由器时基本用不了

比如使用联通的ADSL配合路由器,Ethernet router ip是192.168.1.1
然后ip-up脚本里面的OLDGATEWAY就会被设置为192.168.1.1
所有的国内IP都会被route到这里,但是这样是无法正常联网的�
��

另外,从思路上来讲,并不是所有的国外网站都被盾的,所��
�VPN用户们更需要的是针对特定的被盾的网站,让连接通过VPN�
��问;而其他所有的没有被盾的网站,一般情况下直接访问即
可。


Original issue reported on code.google.com by [email protected] on 15 Jun 2010 at 9:07

建议为windows平台编写一个程序来代替脚本的执行!

建议为windows平台编写一个程序来代替脚本的执行!

因为windows平台的修改脚本是直接使用route程序一行一行的执��
�的,而需要修改的路由又确实太多。
又因为windows平台创建进程的开销非常大,具体表现出来为rout
e程序执行过慢,导致整个脚本执行的时间太长!

如果用户开启和关闭openvpn的时间过快,网络会有出现一段时�
��内出现连接不通的问题!可能是网络出口变动导致的!此问
题没有仔细测试和研究过。
但这个问题在linux平台基本不算问题,因为linux创建进程是非�
��快的,所以脚本执行时间非常短。基本在5秒左右就完成,5�
��后网络立马就稳定下来了。

所以,如果可以的话,建议为windows平台写一个非常简单程序�
��代替脚本的执行!
这样,可以带来很好的用户体验。

不知道,这能不能算是一个新需求!

另:
    不知道开发人员中是否有熟悉windows平台这方面开发的。
    虽然我对没有windows开发经验,但是如果有需要,我愿意完成此功能!

Original issue reported on code.google.com by [email protected] on 13 Aug 2010 at 4:16

**地区无法访问

作者在pre_created_for_win.zip中把**地区的网段也加到路由中,
造成使用bat后
无法访问被gfw封锁的**网站,希望新版本能去除**地区��
�路由表。

Original issue reported on code.google.com by [email protected] on 30 Mar 2010 at 3:27

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.