从0开始将wallproxyV1.0安装配置好
V1.0版本安装配置说明
本wiki的目的
从0开始将wallproxyV1.0安装配置好
wallproxy需求
1.下载wallproxy用 https://code.google.com/p/wallproxy/ 2.上传服务器端用 https://appengine.google.com/ 3.上传服务器端登录用 https://www.google.com/accounts/ 4.连接代理用 http://shell.appspot.com/ 内容1.申请GAE的app
注意事项:
2.上传wallproxy的服务器端至GAE
application: app-id 将app-id用你第一步注册的id来代替(:号后面的空格不可少)
3.设置服务器端密码
4.修改客户端配置文件
# -*- coding: utf-8 -*- #上面第一行保证可以用汉字注释 #设置本地服务端参数,修改后需要重启才能生效 server['listen'] = ('', 8086) #监听地址 server['log_file'] = '' #''不记录 None终端 filename文件 server['daemon_threads'] = True #主线程退出后自动结束子线程 #设置plugins,需要停用可在plugins['xxxx']='yyy'前面加# #效果类似于修改hosts hosts = {'.appspot.com':'www.google.cn'} #plugins['plugins.hosts'] = 'hosts' #指定GAE服务端,设置多个时后面的继承第一个的设置,所以后面的指定一个url就行了, #而且推荐这么设置,可设置参数有url、key、crypto、proxy、headers、range0、range、 #max_threads,proxy设置格式与下面rawproxy中设置相同 gaeproxy = [{ 'url':'https://app-id.appspot.com/fetch.php', 'key':'',#此处使用默认密码 'crypto':'AES-CBC-32', }] plugins['plugins.gaeproxy'] = 'gaeproxy' #在这里设置0.4.0版的服务端,格式与上面相同 oldproxy = [] plugins['plugins.forold'] = 'oldproxy' #根据AutoProxy规则生成PAC用于浏览器或者提供判断函数用于find_http_handler,可指定 #多个网址,如需使用代理,格式为(url, proxy),代理格式与下面rawproxy中设置相同 autoproxy = {} autoproxy['PROXY 127.0.0.1:8086'] =( 'http://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt', 'file://userlist.ini' ) autoproxy = autoproxy, 'proxy.pac' #如果指定文件名则生成PAC,否则提供函数 #plugins['plugins.autoproxy'] = 'autoproxy' #与以前的DIRECT_PROXY类似,支持http、https、socks4、socks5,设置格式形如 #'http://127.0.0.1:8086'或者多个级联,如('socks5://1.1.1.1:1','http://2.2.2.2:2') rawproxy = (None,) plugins['plugins.rawproxy'] = 'rawproxy' #用伪造证书来代理https fakehttps = '' plugins['plugins.fakehttps'] = 'fakehttps' #http(包括用fakehttps转来的https)代理选择函数 # Note: url is not a string: for 'http://localhost:8086/index.html?arg=1' # you can use url.scheme, url.hostname, url.port, url.path, url.query # to get what you want, if you need the whole url, use url.geturl() # if you want to get ip of the hostname, use url.ip you will get a # pair like (['127.0.0.1'], ['::1']) # >>> URL('http://localhost:8086/index.html?arg=1') # URL(scheme='http', hostname='localhost', port=8086, username=None, # password=None, path='/index.html', params='', query='arg=1', fragment='') def find_http_handler(method, url, headers): if method not in ('GET', 'HEAD', 'PUT', 'POST', 'DELETE'): return rawproxy[0] if method=='DELETE' or int(headers.get('content-length', 0))>0x100000: return rawproxy[0] if 80<=url.port<=90 or 440<=url.port<=450 or url.port>=1024: return gaeproxy return rawproxy[0] #本地服务端支持http、https、socks4、socks5,但需要相应的处理插件来实现 # reqtype: https/socks4/socks5 # ip, port, cmd are same to args of check_client for socks4/socks5 def find_sock_handler(reqtype, ip, port, cmd): if reqtype == 'https': return fakehttps return rawproxy[0] #验证用户有效性,如果仅供个人使用,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 gaeproxy = [{ 'url': 'http://id1.appspot.com/fetch.php', 'key': '', 'crypto':'AES-CBC-32', 'proxy':'http://www.google.cn' }, {'url': 'http://id2.appspot.com/fetch.php','key':'123'}, {'url': 'http://id3.appspot.com/fetch.php',}, {'url': 'http://id4.appspot.com/fetch.php',}, {'url': 'http://id5.appspot.com/fetch.php',}, {'url': 'http://id6.appspot.com/fetch.php',} ] plugins使用说明
使用hosts功能 plugins['plugins.hosts'] = 'hosts' 不使用hosts功能 #plugins['plugins.hosts'] = 'hosts'
hosts = {'.appspot.com':'www.google.cn'}
不满足wallproxy的需求
->请使用其他免费代理,如http、https、socks4、socks5
其他声明
已知:1.http方式访问GAE会在你机器到GAE传输过程中明文出现你的app-id. 2.在GAE到对方网站的传输过程中明文出现你的app-id 3.你访问的网站也会得到你的app-id(包含在UA中) 4.加密只是简单的将数据对称加密,很容易通过查看你计算机上的配置文件得到密码 |
来源:http://code.google.com/p/wallproxy/wiki/setupV1
项目地址:http://code.google.com/p/wallproxy/
下载地址:http://code.google.com/p/wallproxy/downloads/list
按照你的方法设置多apps总是错误?
你看看版本对不对,这个是官方的教程不是我写的!