Total Pageviews

Monday 9 November 2015

利用ShadowSPDY翻墙(这个程序有问题,严重不推荐使用!)

登陆linux vps,首先安装node环境。
git clone https://github.com/clowwindy/ShadowSPDY
cd ShadowSPDY
root@AR:~/ShadowSPDY# ls
bin  CHANGES      lib node_modules  README.md
Cakefile  config.json  LICENSE package.json  src
root@AR:~/ShadowSPDY# npm install
root@AR:~/ShadowSPDY# cd node_modules
root@AR:~/ShadowSPDY/node_modules# ls
argparse coffee-script spdy
root@AR:~/ShadowSPDY/node_modules# rm -rf coffee-script
root@AR:~/ShadowSPDY/node_modules# cd ..
root@AR:~/ShadowSPDY# npm install -g coffee-script
root@AR:~/ShadowSPDY# nano config.json
(内容为:
{
    "server":"0.0.0.0",
    "server_port":8688,
    "local_port":1085,
    "password":"你自设的密码",
    "timeout":600,
    "method":"aes-256-cfb",
    "connections": 1
}
注意:server的值要么写成0.0.0.0,要么写成你的vps的公网ip.千万不要写成127.0.0.1 )
root@AR:~/ShadowSPDY# nohup ./bin/spserver > /dev/null &
服务器端就搞好了。

客户机器为linux桌面系统或者mac:
先在本地机器安装node环境。
git clone https://github.com/clowwindy/ShadowSPDY
cd ShadowSPDY
npm install
nano config.json
(内容为:
{
    "server":"your_vps_ip",
    "server_port":8688,
    "local_port":1085,
    "password":"你自设的密码",
    "timeout":600,
    "method":"aes-256-cfb",
    "connections": 1
} )
nohup ./bin/splocal > /dev/null &
这样客户端就设置好了。
然后,设置你的浏览器的socks5代理为127.0.0.1:1085,即可翻墙。

好像不兼容shadowsocks客户端。我这里测试是不兼容的。

项目地址:
https://github.com/clowwindy/ShadowSPDY 或
https://github.com/0-GoAgent-Backup-And-Shadowsocks-Backup/ShadowSPDY

此帖就是用此翻墙术发表的。
----------------
shadowSPDY 的性能比 shadowsocks 更好, 以及目前来说受干扰的情况更罕见
安装方式是一样一样的, npm install -g shadowspdy 就行了
配置文件和 shadowsocks 格式几乎一样
不过这货目前还只有 nodejs 的客户端, 手机是用不了的哦.
-----------

ShadowSPDY

Build Status
ShadowSPDY is a tunnel proxy, which builds on top of Shadowsocks and SPDY.

Usage

ShadowSPDY is currently beta. Future versions may NOT be compatible with this version.
This project is experimental and in its very early stage. DO NOT DEPLOY IT FOR PRODUCTION USAGE!
You can submit bugs and issues on the issue tracker.
For those who are willing to help developing or testing, here's the manual.
# install node.js v0.10 from http://nodejs.org/ first
git clone https://github.com/clowwindy/ShadowSPDY.git
cd ShadowSPDY/
npm install
vim config.json
bin/splocal  # or bin/spserver
# then point your browser proxy into "socks5 127.0.0.1:1081"

Protocol

ShadowSPDY simply adds an SPDY layer into Shadowsocks. Thus it provides benefits from SPDY, such as low latency, low resource consumption. On the other hands, all disadvantages, such as one single packet loss will slow down all active streams.
ShadowSPDY works best on VPS with > 200ms RTT, < 2% packet loss, according to Google's research on SPDY. Notice that when packet loss is high (e.g. >10%), ShadowSPDY will be significantly slower than Shadowsocks.
from 
 https://gitlab.com/Acidburn0zzz/ShadowSPDY