Socket
Socket
Sign inDemoInstall

shadowsocks-over-websocket

Package Overview
Dependencies
82
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    shadowsocks-over-websocket

A fast tunnel proxy that helps you bypass firewalls


Version published
Weekly downloads
11
Maintainers
1
Created
Weekly downloads
 

Readme

Source

shadowsocks-over-websocket

基于 shadowsocks 协议的翻墙工具 , 可部署在 Heroku 平台上 , 实现免费科学上网

如何部署在 Heroku 平台上

1.准备工作

  • Heroku 注册
  • GitHub 注册

2.Fork 本项目 到个人账号下

1 进入 https://github.com/VincentChanX/shadowsocks-over-websocket 页面 ==> Fork


3.创建 Heroku 应用

2 登陆 Heroku 帐号,进入 Dashboard 页面 ==> Create New App ==> 输入 App Name ==> Create App


4.Heroku 帐号与 Github 帐号关联

3 进入 Deploy 页面 ==> 选择 Deployment Method 为 Github ==> Connect to GitHub


5.选择要关联的Github项目

4 选择GitHub帐号 ==> 查找shadowsocks-over-websocket ==> Connect


6.部署 master 分支

5


7.配置环境变量

6 Setting 页面 ==> Reveal Config Vars

需要配置 METHOD(加密方法),PASSWORD(密码,推荐使用aes-256-cfb),SERVER_ADDRESS(0.0.0.0) 三个环境变量,支持以下加密方法:

  • 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

启动客户端:

命令行启动:

  1. 安装 nodejsgit
  2. 执行 git clone https://github.com/VincentChanX/shadowsocks-over-websocket.git 命令
  3. 进到本项目目录,执行npm install 命令
  4. 执行 node local.js -s app名称.herokuapp.com -l 1080 -m 设置的加密算法 -k 设置的密码 -p 80 命令,启动成功

Chrome 浏览器配置

  1. 下载 Chrome 浏览器插件 SwitchyOmega

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

  3. 新建情景模式 local-proxy,配置 SwitchyOmega :代理协议:SOCKS5 代理服务器:127.0.0.1 代理端口:1080,如下图: 7

  4. 配置 auto switch 情景模式,添加规则列表网址: https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt 并更新情景模式,规则列表规则处的情景模式选中为上一步创建的 local-proxy ,配置如下图: 8

  5. 选中 auto switch 情景模式: 9

  6. 现在你就可以科学上网了

Keywords

FAQs

Last updated on 17 Apr 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc