shadowsocks-heroku

by kenliu2008

GitHub Readme.md

====================================================== update 2017-10-17

Fork 于 shadowsocks-heroku 项目 of mrluanma

Fork 于 shadowsocks-heroku 项目 of onplus

shadowsocks-heroku

Heroku 是一个支持多种编程语言的云平台即服务,shadowsocks-heroku 则是可部署在 Heroku 平台的 ss 服务。 和 shadowsocks 不同的是 shadowsocks-heroku 使用的 WebSocket 代替原本的 sockets。

如果遇到问题

  1. 请先检查是否遵循步骤(再次阅读一遍教程)
  2. 请先自行通过Google/Github寻找答案
  3. 如果还没有解决,欢迎通过 issue 提问(贴日志和配置的时候注意隐藏密码&个人ip)

准备

1. 注册 Heroku 帐号

Heroku 提供免费账号,部分介绍如下:

注册地址:https://signup.heroku.com/ (注册和部署过程可能需要梯子#10#14

部署

  1. 点击 一键部署到heroku

    也可以选择另一个版本的服务端shadowsocks-websocket-python

  2. 设置 加密算法和app 密码

deploy

支持的加密算法类型如下https://github.com/mrluanma/shadowsocks-heroku#supported-ciphers

启动本地 Client

  1. 下载release https://github.com/onplus/shadowsocks-heroku/releases备份

  2. 修改config.json参数,运行ss-h.exe 或 start.vbs (或 win托盘工具taskbar.exe)

  3. 启动成功,命令行显示:server listening at { address: '127.0.0.1', family: 'IPv4', port: 1080 }

配置代理

  1. 下载:Chrome 浏览器 SwitchyOmega 插件(参考教程, 导入备份文件SSHeroku.Bak.zip

  2. 安装:打开浏览器的扩展程序页面 chrome://extensions,把 SwitchyOmega.crx 文件拖放到浏览器扩展程序页面安装

  3. 配置:添加SwitchyOmega代理服务器

    代理协议: SOCKS5
    代理服务器local_address:127.0.0.1 
    代理端口local_port: 1080 

可选:

  1. 使用无污染DNS https://www.zhihu.com/question/32229915
  2. cow/meow智能代理  https://github.com/cyfdecyf/cow#cow-climb-over-the-wall-proxy
    #rc配置文件
    listen = http://127.0.0.1:7777
    proxy = socks5://127.0.0.1:1080
  1. 网站导航 http://www.ipv6daohang.com/

送人玫瑰手留余香🌹(参考教程

======================================================

shadowsocks-heroku

shadowsocks-heroku is a lightweight tunnel proxy which can help you get through firewalls. It is a port of shadowsocks, but through a different protocol.

shadowsocks-heroku uses WebSocket instead of raw sockets, so it can be deployed on Heroku.

Notice that the protocol is INCOMPATIBLE with the origin shadowsocks.

Heroku

Usage

$ heroku create
Creating still-tor-8707... done, stack is cedar-14
http://still-tor-8707.herokuapp.com/ | git@heroku.com:still-tor-8707.git

Push the code to Heroku.

$ git push heroku master
…
-----> Compressing... done, 5.1MB
-----> Launching... done, v3
       http://still-tor-8707.herokuapp.com/ deployed to Heroku

To git@heroku.com:still-tor-8707.git
 * [new branch]      master -> master

Set a few configs:

$ heroku config:set METHOD=rc4 KEY=foobar
Setting config vars and restarting still-tor-8707... done, v11
KEY:    foobar
METHOD: rc4

Install project dependencies with npm install:

$ npm install
…

Then run:

$ node local.js -s still-tor-8707.herokuapp.com -l 1080 -m rc4 -k foobar -r 80
server listening at { address: '127.0.0.1', family: 'IPv4', port: 1080 }

Change proxy settings of your browser into:

SOCKS5 127.0.0.1:1080

Troubleshooting

If there is something wrong, you can check the logs by:

$ heroku logs -t --app still-tor-8707

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