asteroidman / wallproxy-plus

Automatically exported from code.google.com/p/wallproxy-plus
1 stars 0 forks source link

ipv6 模式下paas 与 iplist 要如何修改\local\pac #221

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
https://docs.google.com/document/d/1gyOvYBsEFskfk_YHubYMF0ZXKgWO9rf6cVOIPj765xg/
edit

目前只有gae模式,如何添加paas模式的支持?
还有同时加入iplist的支持,pac外,proxy.ini还要如何修改??

Original issue reported on code.google.com by rpzrpz...@gmail.com on 25 Oct 2012 at 3:09

GoogleCodeExporter commented 9 years ago
PAAS见这里:http://code.google.com/p/wallproxy-plus/issues/detail?id=192#c1
iplist目前不支持从proxy.ini中添加。
默认支持111.111.111.111/24这种掩码格式表示的返回或者111.111.111
.111|100这个个数表示的范围,对于教育网iplist或者apnic 
iplist则要另外定义parse函数过滤或提取,自己写iplist只要采用
以上两种格式就不用另写解析函数了,本来打算添加教育网ip
list的,但实在是时间不够,昨天搞到1点多。

Original comment by www.eh...@gmail.com on 25 Oct 2012 at 4:04

GoogleCodeExporter commented 9 years ago
ini文件的配置我一直留着,只是原来php一直有问题,#禁用而�
��。
丢掉的是\local\pac 中的配置,现在只剩下gae了。
       rulelist = (

           (['https://my-ap-lists.googlecode.com/svn/branches/Cupl', 'https://my-ap-lists.googlecode.com/svn/branches/fff', 'https://ipv6direct.googlecode.com/svn/Facebook', 'https://ipv6direct.googlecode.com/svn/Google', 'https://ipv6direct.googlecode.com/svn/IPv6', 'https://ipv6direct.googlecode.com/svn/Twitter', 'https://ipv6direct.googlecode.com/svn/YouTube', 'https://ipv6direct.googlecode.com/svn/edu'], 'DIRECT'),

       )
       PacFile(rulelist, [], files, 'PROXY *:*; DIRECT')

其实就是把https://my-ap-lists.googlecode.com/svn/branches/fff 
拖出来做php
记得原来有这条的,后来找不到了。
iplist不急。
辛苦了!

Original comment by rpzrpz...@gmail.com on 25 Oct 2012 at 4:13

GoogleCodeExporter commented 9 years ago
如果你没有启用PAAS的话,智能代理模式就不会给你加入paaslis
t

Original comment by www.eh...@gmail.com on 25 Oct 2012 at 4:38

GoogleCodeExporter commented 9 years ago
不是啊,我现在是要开启paas。那除了proxy.ini的修改,pac这段�
��用加上一句么?

Original comment by rpzrpz...@gmail.com on 25 Oct 2012 at 4:44

GoogleCodeExporter commented 9 years ago
利用dotCloud提供的免费资源反向代理Dropbox!(修订版!)_fire
fox吧_百度贴吧 - http://tieba.baidu.com/p/1886302306?see_lz=1

估计能部署成功了,不是原来的简单无用php了

Original comment by rpzrpz...@gmail.com on 25 Oct 2012 at 2:05

GoogleCodeExporter commented 9 years ago
修改proxy.ini配置出你想要的结果运行一遍,然后复制config.py��
�pac规则部分到pac即可。

Original comment by www.eh...@gmail.com on 25 Oct 2012 at 2:06

GoogleCodeExporter commented 9 years ago
试下去

Original comment by rpzrpz...@gmail.com on 25 Oct 2012 at 2:09

GoogleCodeExporter commented 9 years ago
还是不对
附上ini和pac
全局8088已没问题
config.py就是没反应。

Original comment by rpzrpz...@gmail.com on 26 Oct 2012 at 1:55

Attachments:

GoogleCodeExporter commented 9 years ago
之所以要分别弄[rulelists]和[py_rulelists],就是因为这两部分无�
��使用同一个配置。
rulelists的key是PAC中的代理,例如PROXY *:8087; DIRECT
py_rulelists的key是提供代理的插件对象名称:直连是DIRECT,gae��
�GAE,paas是PAAS,如果有多个paas且想指定其中某一个的规则,�
��别是PAAS1、PAAS2……依次类推。

Original comment by www.eh...@gmail.com on 27 Oct 2012 at 9:46

GoogleCodeExporter commented 9 years ago
[pac]
enable = 1
file = proxy.pac
https_mode = 2
rulelist = !rulelists
default = PROXY *:8087; DIRECT
py_default = GAE

[rulelists]
DIRECT =  
https://my-ap-lists.googlecode.com/svn/branches/Cupl|https://ipv6direct.googleco
de.com/svn/Facebook|https://ipv6direct.googlecode.com/svn/Google|https://ipv6dir
ect.googlecode.com/svn/IPv6|https://ipv6direct.googlecode.com/svn/Twitter|https:
//ipv6direct.googlecode.com/svn/YouTube|https://ipv6direct.googlecode.com/svn/ed
u
PROXY *:8088; DIRECT = https://my-ap-lists.googlecode.com/svn/branches/fff

[py_rulelists]
DIRECT =  
https://my-ap-lists.googlecode.com/svn/branches/Cupl|https://ipv6direct.googleco
de.com/svn/Facebook|https://ipv6direct.googlecode.com/svn/Google|https://ipv6dir
ect.googlecode.com/svn/IPv6|https://ipv6direct.googlecode.com/svn/Twitter|https:
//ipv6direct.googlecode.com/svn/YouTube|https://ipv6direct.googlecode.com/svn/ed
u
PAAS = https://my-ap-lists.googlecode.com/svn/branches/fff

其实真的不难啊,记住py_开头的是给智能代理用的,要写GAE/P
AAS等target,不带py_的是给PAC用的,要写PROXY 
*:8087等target就行了。
local\pac的话,将proxy.ini设置好,并将[pac]file注释取消来开启pa
c模式,运行一遍以更新config.py,从config.py复制以下部分替换l
ocal\pac中对应部分:
    rulelist = (
        (['https://my-ap-lists.googlecode.com/svn/branches/Cupl', 'https://ipv6direct.googlecode.com/svn/Facebook', 'https://ipv6direct.googlecode.com/svn/Google', 'https://ipv6direct.googlecode.com/svn/IPv6', 'https://ipv6direct.googlecode.com/svn/Twitter', 'https://ipv6direct.googlecode.com/svn/YouTube', 'https://ipv6direct.googlecode.com/svn/edu'], 'DIRECT'),
        (['https://my-ap-lists.googlecode.com/svn/branches/fff'], 'PROXY *:8088; DIRECT'),
    )
    PacFile(rulelist, [], ['1.pac'], 'PROXY *:8087; DIRECT')

Original comment by www.eh...@gmail.com on 27 Oct 2012 at 9:59

GoogleCodeExporter commented 9 years ago
终于知其然了,多谢!

Original comment by rpzrpz...@gmail.com on 27 Oct 2012 at 3:38

GoogleCodeExporter commented 9 years ago
Moved to: Issue wallproxy:42

Original comment by wwqgtxx on 1 Dec 2012 at 2:49