lnln1111 / gappproxy

Automatically exported from code.google.com/p/gappproxy
GNU General Public License v3.0
0 stars 1 forks source link

期待加密功能 #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
现在好像没加密?所以还是没法绕过关键字限制?
哪怕只有弱加密或者伪加密也好

Original issue reported on code.google.com by oldh...@gmail.com on 19 Apr 2009 at 10:07

GoogleCodeExporter commented 9 years ago
恩,我觉得本地客户端和GAE之间的通信可以加密的。期待ing.

Original comment by howdoico...@gmail.com on 21 Jul 2009 at 10:34

GoogleCodeExporter commented 9 years ago
现在GAE已经能够实现HTTPS连接了~~~
GAppProxy作以下修改就可以使用
1. 修改app.yaml文件,添加
  secure: optional
2. 使用在Proxy之上支持SSL的PYTHON库可以实现加密
http://code.activestate.com/recipes/456195/
这个在python 2.6上需要修改一下,改过的文件放在附件里了
3. proxy.py也要修改,改过的放在附件里了
4. proxy.conf把fetch_server改成自己的https开头的URL

Original comment by leehom2...@gmail.com on 30 Jul 2009 at 9:31

Attachments:

GoogleCodeExporter commented 9 years ago
这两个文件需要放在哪个文件夹下?

Original comment by zzm.mail...@gmail.com on 9 Aug 2009 at 6:45

GoogleCodeExporter commented 9 years ago
都放在localproxy下面

Original comment by leehom2...@gmail.com on 9 Aug 2009 at 11:16

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
secure: optional 是加在
- url: /youraccount/.*的下方

Original comment by ALONE....@gmail.com on 17 Aug 2009 at 1:00

GoogleCodeExporter commented 9 years ago
   提示 raise ValueError, "unknown URL type: %s" % url
ValueError: unknown URL type: /fetch.py
打不开网站

Original comment by dayb...@gmail.com on 12 Oct 2009 at 8:36

GoogleCodeExporter commented 9 years ago
看来是urllib2调用request时改了参数的语义,现在只发绝对地址
了……

Original comment by pal...@gmail.com on 15 Oct 2009 at 10:40

GoogleCodeExporter commented 9 years ago
secure: optional 是加在
- url: /youraccount/.*的下方

app.yaml文件内容里面只有这么几段。是fetchserver文件夹里的:

application: ****
version: 1
runtime: python
api_version: 1

handlers:

- url: /fetch.py
  script: fetch.py

- url: /admin.py
  script: admin.py

请问要如何把secure: optional添加进,添加进哪一行?

Original comment by blackdre...@gmail.com on 9 Dec 2009 at 12:06

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
有知道的朋友能详细说下如何加密吗?谢谢

Original comment by z278126...@gmail.com on 14 Mar 2010 at 7:27

GoogleCodeExporter commented 9 years ago
1. 直接修改proxy.conf
fetch_server=http://xxx.appspot.com/fetch.py
改成
fetch_server=https://xxx.appspot.com/fetch.py
2. 
如果你设置了local_proxy,那么需要修改proxy.py的200行和302行(�
��两行是一样的)
proxy_handler = urllib2.ProxyHandler({"http": local_proxy})
改成
proxy_handler = urllib2.ProxyHandler({"http": local_proxy, "https": 
local_proxy})

Original comment by leehom2...@gmail.com on 14 Apr 2010 at 1:03

Attachments:

GoogleCodeExporter commented 9 years ago
ls,{"http": local_proxy}中http是指代理类型(一般有http, ssl, ftp, 
gopher, socks v4,
socks v5等,并没有https)

Original comment by www.eh...@gmail.com on 15 Apr 2010 at 2:20

GoogleCodeExporter commented 9 years ago
求一个修改好的 app.yaml 哪位可以将上面所说,做一份打包

Original comment by 833...@gmail.com on 15 Apr 2010 at 2:43

GoogleCodeExporter commented 9 years ago
app.yaml中的application-id每个人都不同,与域名第一部分对应,u
rl中/fetch\.py也要与
fetch.py文件中的对应
application: application-id
version: 1
runtime: python
api_version: 1

handlers:
- url: /fetch\.py
  script: fetch.py
http://code.google.com/p/wallproxy/downloads/detail?name=wallproxy-win.rar

Original comment by www.eh...@gmail.com on 15 Apr 2010 at 3:10

GoogleCodeExporter commented 9 years ago
ls的ls的ls,有https,信不信你可以试试

Original comment by leehom2...@gmail.com on 25 Apr 2010 at 10:10

GoogleCodeExporter commented 9 years ago
@leehom2001
刚才试了你comment2里面的方法,出现comment7里面的错误。
raise ValueError, "unknown URL type: %s" % url
ValueError: unknown URL type: /fetch.py

怎么解决呢。。

Original comment by wangxiao...@gmail.com on 12 Jun 2010 at 2:42

GoogleCodeExporter commented 9 years ago
#17
试试WallProxy(http://code.google.com/p/wallproxy/downloads/list 
)吧,GAppProxy的分支版本,有自颁发的CA根证书(导入到浏览器�
��可改善 
https支持,不提示证书无效),支持更多端口,支持上传文件��
�断点续传、更稳定、更节约流量和API调用 http://img.ly/1rCa
支持设置key进行简单的异或加密(需要更复杂的加密算法可��
�源码进行修改,不过异或加密是最快的),上行数据是先zlib
压缩再异或,下行数据是视频、压缩包等大文件只异或,小��
�件先压缩再异或,尽可能节约流量。

Original comment by www.eh...@gmail.com on 12 Jun 2010 at 4:34

GoogleCodeExporter commented 9 years ago
#17
现在绝大多数地方的GAE的HTTPS都被封掉了,这个功能不加也罢
,而且上面我的补丁是给很久以前版本的GAPPPROXY的,现在也��
�不着了。

Original comment by leehom2...@gmail.com on 1 Sep 2010 at 4:45

GoogleCodeExporter commented 9 years ago
我这里GAE的HTTPS确实被封了~算了,还是改用WallProxy吧

Original comment by victzh...@gmail.com on 3 Sep 2010 at 1:08

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/encrypted-gappproxy/downloads/list
调用库做了下AES加密

Original comment by Wand...@gmail.com on 19 Feb 2011 at 4:14

GoogleCodeExporter commented 9 years ago
wallproxy就是这样做的....

Original comment by bronze1...@gmail.com on 24 Mar 2011 at 9:52