让 GappProxy 翻墙更轻松
Posted: Jul 17 2009, 09:34
一直没有试用 GappProxy(因为somh的privoxy+tor套装用得还算舒服),偶然试用了一下,速度还挺不错。
说明一下步骤
1、参照此文,用Google App Engine做个人代理服务器 第二版 ,这里假设申请好的地址为 proxomitronCN.appspot.com
2、直接引用sidki的Readme
在proxomitron里添加如下规则(此规则请参考sidki的配置)
注意:px-是proxomitron的 "Config Settings -> Access -> Prefix URL Command" 中设置的URL命令的前缀
3、Proxomitron的默认配置有个Bypass List,添加内容如下
$URL(https://[^/:]+:) 需要放在被过滤的 https url 的上面,它的作用是不过滤所有https的地址(避免误过滤以及安全问题,过滤https是以牺牲安全性为代价的)
~在blocklist里的作用:
keywords里就是你的规则了,如:
说明一下,正常情况下,是可以跳转到 http://proxomitronCN.appspot.com/,但由于这里的url都是明文传输,很可能被wall,所以用https的代理地址基本不会出啥大问题
之前看到GappProxy里有人提到过referer的问题,我想配合proxomitron应该可以解决
刚刚试用此方法,经不起推敲,请自行配置
说明一下步骤
1、参照此文,用Google App Engine做个人代理服务器 第二版 ,这里假设申请好的地址为 proxomitronCN.appspot.com
2、直接引用sidki的Readme
使用过程中,过滤https可能出现某些问题,需要重启proxomitron才能解决,见 SSL DLL 更新求助- 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/ .
在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"
3、Proxomitron的默认配置有个Bypass List,添加内容如下
Code: Select all
$URL(https://[^/:]+:)
~proxomitronCN.appspot.com:
~(versioncheck.|)addons.mozilla.org:
~在blocklist里的作用:
在Head filter里添加规则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).
Code: Select all
[HTTP headers]
In = TRUE
Out = TRUE
Key = "!-|||||||||||| URL: JUMP & RDIR (out)"
URL = "$LST(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)
之前看到GappProxy里有人提到过referer的问题,我想配合proxomitron应该可以解决
刚刚试用此方法,经不起推敲,请自行配置