1.Fork my app:https://github.com/wojiaoluyuan/shadowsocks-herokuapp //克隆我的项目
- On your PC. //电脑端
$ git clone https://github.com/wojiaoluyuan/shadowsocks-herokuapp.git //克隆我的项目到本地
$ cd shadowsocks-herokuapp //进入我的项目
$ npm install // you should install nodejs first /你必须在电脑端 先安装node和npm
$ heroku login // you should install heroku_cli first /先装heroku_cli
$ heroku create yourappname //或者直接在heroku 的网页后台创建app
$ git init //创建仓库
$ heroku git:remote -a yourappname //远程连接到你的app
$ git add .
$ git commit -am "make it better"
$ git push heroku master
$ heroku config:set METHOD=rc4 KEY=foobar //设置加密算法和密码Supported Ciphers //支持以下几种加密方式
- rc4
- rc4-md5
- table
- bf-cfb
- des-cfb
- rc2-cfb
- idea-cfb
- seed-cfb
- cast5-cfb
- aes-128-cfb
- aes-192-cfb
- aes-256-cfb
- camellia-256-cfb
- camellia-192-cfb
- camellia-128-cfb
Done //安装完成,开始使用
- On your PC
$ cd shadowsocks-herokuapp
$ node local.js -s yorappname.herokuapp.com -l 1080 -m rc4 -k foobar -r 80
you should see:server listening at { address: '127.0.0.1', family: 'IPv4', port: 1080 }//如何没问题的话,你应该看到上面的信息。
4.Change proxy settings of your browser into:
SOCKS5 127.0.0.1:1080 //设置代理,firefox ,chrome都行,结合privoxy,实现全局。