让 GappProxy 翻墙更轻松

新手入门、经验交流

Moderator: cre

Forum rules
  • 软件自带帮助是最好的入门教程,请仔细阅读;在您掌握最基本知识前,我们没法帮助您
  • 提问前请先查阅软件帮助文件和论坛相关讨论
  • 查阅软件帮助和论坛相关讨论即可解决的问题帖将直接删除,以免浪费他人时间
  • 请学会如何提问,尽量将问题描述清楚,不明确的提问将被直接删除
Post Reply
Ray4
Moderator
Posts: 65
Joined: Dec 30 2007, 09:37

让 GappProxy 翻墙更轻松

Post by Ray4 »

一直没有试用 GappProxy(因为somh的privoxy+tor套装用得还算舒服),偶然试用了一下,速度还挺不错。

说明一下步骤

1、参照此文,用Google App Engine做个人代理服务器 第二版 ,这里假设申请好的地址为 proxomitronCN.appspot.com

2、直接引用sidki的Readme
- If you want Proxomitron to filter secure pages and/or want to activate the
"Use Half-SSL" option in the "Header Filters" window, make sure that the SSL
DLLs - SSLeay32.dll and Libeay32.dll - are installed on your system.

They should reside either in the same directory as Proxomitron.exe or on your
system's search path. You can get them here:
http://www.proxomitron.info/files/ .
使用过程中,过滤https可能出现某些问题,需要重启proxomitron才能解决,见 SSL DLL 更新求助

在proxomitron里添加如下规则(此规则请参考sidki的配置)

Code: Select all

[HTTP headers]
In = TRUE
Out = FALSE
Key = "Location: 5 Half-SSL 6.11.02 (cch!) [jjoe] (d.2) (In)"
Match = "https://\1:\2"
Replace = "http://https-px-..\1:\2"
注意:px-是proxomitron的 "Config Settings -> Access -> Prefix URL Command" 中设置的URL命令的前缀

3、Proxomitron的默认配置有个Bypass List,添加内容如下

Code: Select all

$URL(https://[^/:]+:)
~proxomitronCN.appspot.com:
~(versioncheck.|)addons.mozilla.org:
$URL(https://[^/:]+:) 需要放在被过滤的 https url 的上面,它的作用是不过滤所有https的地址(避免误过滤以及安全问题,过滤https是以牺牲安全性为代价的)

~在blocklist里的作用:
Unmatching a match

You can also add "exclude" lines By prefixing a line with the '~' character. They can be used to limit what a list will match, and are only checked if a regular match is found first in the list. The list will return as true only if none of the exclude lines match. For example a list like...

#
# Another sample list
# an example of using `~` to exclude
#

*.gif
~*/gamera.gif

The first line would match anything ending in ".gif", however the second line checks to see if it also matches "/gamera.gif". Which will insure that Gamera is never caught in our list (think of it as a Turtle Excluder Device).
在Head filter里添加规则

Code: Select all

[HTTP headers]
In = TRUE
Out = TRUE
Key = "!-|||||||||||| URL: JUMP & RDIR (out)"
URL = "$LST(Keywords)"
keywords里就是你的规则了,如:

Code: Select all

#### GAproxy ########
(www.orphne.net|www.superspeed.com/|www.your-freedom.net/|my.opera.com/|mizzmona.com/|[a-z0-9]+.proxomitron.info/)\1\2&$JUMP(https://proxomitronCN.appspot.com/\1\2)
((versioncheck.|)addons.mozilla.org)\1:443/(?)\2\3&$JUMP(https://proxomitronCN.appspot.com/\1/\2\3)
说明一下,正常情况下,是可以跳转到 http://proxomitronCN.appspot.com/,但由于这里的url都是明文传输,很可能被wall,所以用https的代理地址基本不会出啥大问题

之前看到GappProxy里有人提到过referer的问题,我想配合proxomitron应该可以解决

刚刚试用此方法,经不起推敲,请自行配置
User avatar
phoenix
Site Admin
Posts: 526
Joined: Dec 29 2007, 16:27

Re: 让 GappProxy 翻墙更轻松

Post by phoenix »

你这个方法好复杂,GappProxy 有个客户端程序,监听在本机的 8000 端口上,直接将其添加到 Proxomitron 的代理列表中,然后按需调用就行了。用 sidki 规则包的请参考 http://forum.proxomitron.cn/viewtopic.php?f=3&t=4

GappProxy 的客户端和服务器端的通讯是编码的,所以不用担心被墙的问题。唯一要担心的是墙直接屏蔽 GAE 的服务器,不过 GappProxy 本身支持上级代理,将 www.google.cn 设为上级代理就可以解决了。
Ray4 wrote:之前看到GappProxy里有人提到过referer的问题,我想配合proxomitron应该可以解决
这个 referer 指 GAE 服务器添加的,不是 proxomitron 能解决的。
Ray4
Moderator
Posts: 65
Joined: Dec 30 2007, 09:37

Re: 让 GappProxy 翻墙更轻松

Post by Ray4 »

呵呵,其实并不复杂,因为没有用客户端,所以有些步骤是必须的,但我还需要过滤https内容,所以还多了一些东西

原来是GAE添加的,我想简单了
User avatar
phoenix
Site Admin
Posts: 526
Joined: Dec 29 2007, 16:27

Re: 让 GappProxy 翻墙更轻松

Post by phoenix »

你用的是修改版的 GappProxy 吧?原版的并不支持 https://proxomitronCN.appspot.com/targetURL 这种方式。

不用客户端的话,GappProxy 就失去了其最大的特色,GAE上的 web proxy 很多,而且 proxomitron 的代理列表也支持添加 web proxy 。
Bonnie
Moderator
Posts: 165
Joined: Oct 05 2008, 01:27

Re: 让 GappProxy 翻墙更轻松

Post by Bonnie »

貌似就是让targetURL跳转到https://proxomitronCN.appspot.com/targetURL这样?
不过我试着访问了https://myusername.appspot.com/targetURL 的确没法访问啊.
Ray4
Moderator
Posts: 65
Joined: Dec 30 2007, 09:37

Re: 让 GappProxy 翻墙更轻松

Post by Ray4 »

看了一下,用的是修改版的,我下的是这个https://mirrorrr.appspot.com/www.chinagfw.org/2009/05/blog-post_6366.html
没想过要用客户端,所以不清楚它的优点

只记得prox不支持某些web proxy,具体哪些web proxy可以用在prox里,如何用,都不会 :roll: ,望赐教
User avatar
phoenix
Site Admin
Posts: 526
Joined: Dec 29 2007, 16:27

Re: 让 GappProxy 翻墙更轻松

Post by phoenix »

web proxy 的缺点是目标网页上的所有资源都会继续通过 web proxy 来访问。比如目标网页上嵌入的图像等多媒体资源或许并没有被屏蔽,或许直接访问速度更快,而一概通过 web proxy 来访问显然会增加代理服务器的负担,或许也会降低访问速度。

而使用 GappProxy 的客户端,设置好要通过 GappProxy 访问的 URL pattern ,则可以避免上面所说的问题。

好久没有用 web proxy 了,印象里确实有些不能用,自己试下吧。添加格式如: proxyserver.org:80/cgi-bin/proxy.cgi/ ,用起来和普通代理一样,可以参考你原来的文章 http://forum.proxomitron.cn/viewtopic.php?f=2&t=2
Post Reply