codegooglecom / snova

Automatically exported from code.google.com/p/snova
0 stars 0 forks source link

怎样做到选择性翻墙? #113

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
目前通过Jelastic部署C4,实现http和https都可以翻墙,但是我希�
��在家里一台电脑上部署后,其他电脑都通过这台代理上网,
怎样可以做到没有被墙的网站不走代理但被墙的都走代理且ht
tps和http都可以?

谢谢。

Original issue reported on code.google.com by phin...@gmail.com on 7 Oct 2012 at 9:49

GoogleCodeExporter commented 9 years ago
1. 
把监听的地址改为0.0.0.0:48100,使得局域网内机器可访问此服�
��

2 .在运行gsnova的机器上访问http://127.0.0.1:48100, 
在http://127.0.0.1:48100/pac/gfwlist有一个根据gfwlist和自定义规则生
成的PAC文件, 
修改此PAC文件,将“127.0.0.1”改为机器的内网IP。

3. 在其他电脑上引入此PAC文件(需要浏览器支持)

Original comment by yinqiwen@gmail.com on 7 Oct 2012 at 10:02

GoogleCodeExporter commented 9 years ago
第2步 在运行gsnova的机器上访问http://127.0.0.1:48100 
就访问不了,但是gui是显示c4,gae,spac都启动成功了

Original comment by phin...@gmail.com on 7 Oct 2012 at 10:39

GoogleCodeExporter commented 9 years ago
这个是Go版本的gsnova才有的,Java的snova没有
这种情况下可以访问 
https://autoproxy2pac.appspot.com生成一个GFWList的PAC文件

Original comment by yinqiwen@gmail.com on 7 Oct 2012 at 10:41

GoogleCodeExporter commented 9 years ago
有没有go版本部署的教程?我想弄go版的

Original comment by phin...@gmail.com on 7 Oct 2012 at 10:49

GoogleCodeExporter commented 9 years ago
gsnova与snova是公用服务端的,只是需要修改gsnova.conf即可;配�
��格式和snova中的gae.conf基本一致,需要手动编辑

Original comment by yinqiwen@gmail.com on 7 Oct 2012 at 11:41

GoogleCodeExporter commented 9 years ago
部署好了,全部走代理没有问题,不管是部署gsnova的机器还��
�局域网内其他机器通过gsnova代理上网。通过pac也成功过一次�
��我在ipad上直接代理设置为http://192.168.1.108:48100/pac/gfwlist,其��
�108是部署gsnova的机器,但现在经常不行,错误是 
2012/10/07 20:01:50 c4.go:233: [25]Failed to write  data to local client:use of
closed network connection.
2012/10/07 20:02:29 self.go:67: Path is /pac/gfwlist
2012/10/07 20:02:29 dispatch.go:145: Session[45]Failed to read http request:use
of closed network connection
2012/10/07 20:02:33 self.go:67: Path is /pac/gfwlist
2012/10/07 20:02:33 dispatch.go:145: Session[46]Failed to read http request:use
of closed network connection

Original comment by phin...@gmail.com on 7 Oct 2012 at 12:17

GoogleCodeExporter commented 9 years ago
这种情况下设置url有点问题,启动后会自动重新生成pac,地��
�还是127。修改pac后,编辑conf文件,把gfwlist地址那一行头加��
�#注释掉,启动后就不会自动生成pac了

Original comment by yinqiwen@gmail.com on 7 Oct 2012 at 1:26

GoogleCodeExporter commented 9 years ago
0.17.0beta 增加支持自定义的生成PAC文件中的proxy地址
https://code.google.com/p/snova/wiki/ReleaseNotes

Original comment by yinqiwen@gmail.com on 12 Oct 2012 at 2:12

GoogleCodeExporter commented 9 years ago
http://localhost:48100/pac/gfwlist try it

Original comment by cbmland on 6 Dec 2012 at 3:22