Open GoogleCodeExporter opened 9 years ago
另外我打开智能代理后,浏览器还是能通过http://127.0.0.1:8086/p
roxy.pac来调用pac,userlist.ini能生效,证书也是正常状态
Original comment by wzh49124...@gmail.com
on 15 Sep 2012 at 2:31
1. 因为需要一次转发,所以会慢一点点;
2. 为了获得完整的https
url进行判断,默认对https全部使用伪造证书,加上wp并没有去�
��证证书,无法防范中间人攻击;
3.
智能代理是相对于浏览器设置全局8086端口来说的,如果另外�
��过pac或扩展进行过判断,就是进行了两次筛选,速度又会慢
一点点。
对于第2点,更新到最新版,有个https_mode选项:
https_mode =
0:对于https全走直连,可以有正常的证书,但无法访问https://
twitter.com等网站;
https_mode =
1:对于https全走代理,证书全是伪造证书,可以访问https://twi
tter.com等网站;
https_mode =
2:对于https通过域名构造一个url去判断是否需要代理,证书��
�分正常部分伪造,因为又多了一次判断会更慢一点点,而且�
��能遗漏部分需要走代理的网站。
Original comment by www.eh...@gmail.com
on 15 Sep 2012 at 3:42
mark: https://code.google.com/p/android/issues/detail?id=12908
Original comment by www.eh...@gmail.com
on 21 Oct 2012 at 7:24
请问以后会有像以前那样可以不强制使用https吗?
Original comment by pppeter...@gmail.com
on 23 Oct 2012 at 4:36
[deleted comment]
什么https?
Original comment by www.eh...@gmail.com
on 23 Oct 2012 at 4:40
旧版的wallproxy
plus设置里面说建议不强制使用https,那样速度更快,从昨天开始
如果我不强制使用https,就翻不了墙,即使改了强制https,但速度�
��没有原来的快啊!原来我4M网视频缓冲速度都在2.4M/s左右啊
Original comment by pppeter...@gmail.com
on 24 Oct 2012 at 4:45
wallproxy plus设置里面的内容# -*- coding: utf-8 -*-
#
新手请在此文件基础上进行设置;以#开头的行是注释,用于�
��明及示范如何配置
#
默认监听地址为127.0.0.1:8086(可使用GUI托盘左键菜单或者AutoPr
oxy等设置给浏览器)
#
首次运行后生成cert目录,导入cert/_ca.crt为浏览器根证书可消�
��SSL警告
server_type = 'gaeproxy'
#
指定你申请的appid,例如'myappid',多个app用|分隔,想要使用��
�共的就保持为''
appid =
'llxpeter495|ndfs2011|ndfs2012|ndfs2013|ndfs2014|ndfs2015|ndfs2016|ndfs2017|ndfs
2018'
#appid = 'appid1|appid2|appid3'
#
如果你修改了密码,在下一行指定,例如'123456',多个app用|��
�隔
password = ''
#password = 'pwd1|pwd2|pwd3'
#
如果你修改了加密模式,在下一行指定,例如'AES-CBC-32',多��
�app用|分隔
crypto = 'XOR--32'
#crypto = 'XOR--32|XOR--32|XOR--32'
#
设置多个app后访问某些网站可能有问题,可以在这里指定哪��
�网站只使用一个app
onlyone = ''
#onlyone = 'example1.com|www.example2.com|www.www.example2.com'
# 访问日志输出位置(''不输出 None输出到终端
'filename.log'输出到文件),重新运行后生效
output = None
#
自定义.appspot.com的ip,如果启用,hosts中设置将无效,且不会�
��动切换https
gaehost_http =
'203.208.46.22|203.208.46.177|203.208.46.178|203.208.46.179|203.208.46.1|203.208
.46.2|203.208.46.3|203.208.46.4|203.208.46.5|203.208.46.6|203.208.46.7|203.208.4
6.8|203.208.37.22|203.208.37.184|203.208.39.22|203.208.39.184|203.208.46.174|203
.208.46.175|203.208.46.176'
gaehost_https =
'74.125.71.125|74.125.71.44|74.125.71.60|74.125.71.141|74.125.71.113|74.125.71.1
05|74.125.71.35|74.125.71.84|74.125.71.37|74.125.71.163'
# 自定义hosts,与hosts文件格式相同,建议保持默认
hosts = '''
www.google.cn .appspot.com
#ipv6.google.com .appspot.com
'''
# 是否强制使用https(True|False),建议False,速度更快
https = True
# 是否使用AutoProxy插件(True|False),建议True
pac = False
# 新手设置到此为止
# 数据包收发参数
# range0为下载大文件时每appid前2包大小,
# range为下载大文件时普通包大小,
# max_threads为大文件下载时最大进程数,
# headers不建议修改
# proxy为用于访问GAE的地址,
# 格式:
# 'proxy': 'http://www.google.cn:80',
# 'proxy': 'https://www.google.com:443',
# 'proxy': 'http://203.208.46.22:80',
# 'proxy': 'http://[2404:6800:8005::68]:80',
# 以上演示了域名、ipv4、ipv6、http、https访问方式,
# 另外proxy参数修改后会覆盖gaehost_http和gaehost_https
# 建议手动将proxy参数修改至最稳定且ping最低的连接方式
gae_extra_option = {
#'range0': 10000000000,
#'range': 50000000000,
#'max_threads': 10000000000000000000000,
#'headers': 'Content-Type: application/octet-stream',
#'proxy': '',
}
server_extra_option = {
#'listen': ('127.0.0.1', 8086),
#'keep_alive': True,
}
#
如果需要用PHP版弥补GAE不足,在此设置(此时GAE服务端不能��
�forold)
#forold = [{'proxy':'', 'url':'http://xxxx/fetch.php',}]
#plugins['plugins.forold'] = 'forold'
if appid:
if isinstance(crypto, basestring): crypto += '|'*20
if isinstance(password, basestring): password += ('|'+password)*20
app = zip(*(app.split('|') if isinstance(app, basestring) else app
for app in (appid, crypto, password)))
gaeproxy = []; https = 'https' if https else 'http'
for appid,crypto,password in app:
appid = {'url': '%s://%s.appspot.com/%s.py' % (https, appid, server_type)}
if crypto: appid['crypto'] = crypto
appid['key'] = password
gaeproxy.append(appid)
gaeproxy[0].update(gae_extra_option)
gaeproxy[0].setdefault('proxy', '')
del plugins['plugins.gaeproxy'], app
plugins['plugins.'+server_type] = 'gaeproxy'
if find_http_handler.__name__ == 'default_find_http_handler':
def find_http_handler(method, url, headers):
if use_onlyone(url.hostname): return gaeproxy[0]
return gaeproxy
if 'gaehost_http' in vars() and isinstance(gaehost_http, basestring) and not
(https == 'https'):
gaehost_http = gaehost_http and gaehost_http.split('|') or None
else:
gaehost_http = None
if 'gaehost_https' in vars() and isinstance(gaehost_https, basestring) and not
(https == 'http'):
gaehost_https = gaehost_https and gaehost_https.split('|') or None
else:
gaehost_https = None
if isinstance(onlyone, basestring):
onlyone = onlyone and onlyone.split('|') or []
onlyone_domain = set(onlyone)
server['log_file'] = output
server.update(server_extra_option)
if not pac: del plugins['plugins.autoproxy']
elif 'listen' in server:
pac = autoproxy[0].pop('PROXY 127.0.0.1:8086; DIRECT')
autoproxy[0]['PROXY %s:%s; DIRECT' % server['listen']] = ((pac[0][0], 'http://%s:%s' % server['listen']), pac[1])
del (server_type, appid, password, crypto, onlyone, output, https, pac,
gae_extra_option, server_extra_option)
#格式备忘,99%的人请无视:验证用户有效性,如果仅供个人�
��用,return True即可
# ip: client ip
# reqtype: http/https/socks4/socks5
# args: (method, url, headers) for http
# args: (host, port, headers) for https
# args: (cmd, ip, port, userid) for socks4
# args: (cmd, ip, port, username, password) for socks5
# please return True if client user is valid else False
#def check_client(ip, reqtype, args):
# return True
Original comment by pppeter...@gmail.com
on 24 Oct 2012 at 5:01
Moved to: Issue wallproxy:48
Original comment by wwqgtxx
on 1 Dec 2012 at 2:55
Original issue reported on code.google.com by
wzh49124...@gmail.com
on 15 Sep 2012 at 2:26