Code Monkey home page Code Monkey logo

shadowsocks-websocket-luvit's Introduction

shadowsocks-websocket-luvit

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

shadowsocks-websocket-luvit uses WebSocket instead of raw socket, so it can be deployed on heroku.

Notice that the protocol is INCOMPATIBLE with the origin shadowsocks.

Usage

$ heroku create --buildpack https://github.com/mrluanma/heroku-buildpack-luvit.git
Creating aqueous-harbor-3464... done, stack is cedar
BUILDPACK_URL=https://github.com/mrluanma/heroku-buildpack-luvit.git

Push the code to heroku.

$ git push heroku master
Initializing repository, done.
Counting objects: 21, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (16/16), done.
Writing objects: 100% (21/21), 13.07 KiB | 0 bytes/s, done.
Total 21 (delta 2), reused 0 (delta 0)

-----> Fetching custom git buildpack... done
-----> luvit app detected
-----> Fetching Luvit version 0.7.0
-----> Discovering process types
       Procfile declares types -> web

-----> Compressing... done, 1.6MB
-----> Launching... done, v5
       http://aqueous-harbor-3464.herokuapp.com/ deployed to Heroku

To [email protected]:aqueous-harbor-3464.git
 * [new branch]      master -> master

While in beta, WebSocket functionality must be enabled via the Heroku Labs:

$ heroku labs:enable websockets
Enabling websockets for aqueous-harbor-3464... done
WARNING: This feature is experimental and may change or be removed without notice.
For more information see: https://devcenter.heroku.com/articles/heroku-labs-websockets

Set a few configs:

$ heroku config:set METHOD=rc4 KEY=foobar
Setting config vars and restarting aqueous-harbor-3464... done, v7
KEY:    foobar
METHOD: rc4

Then run:

$ luvit local.lua -s aqueous-harbor-3464.herokuapp.com -l 1080 -m rc4 -k foobar
"shadowsocks-websocket-luvit v0.9.7"
{ server = "aqueous-harbor-3464.herokuapp.com", method = "rc4", local_port = "1080", password = "foobar" }
"server listening at port 0.0.0.0:1080"

Change proxy settings of your browser into:

SOCKS5 127.0.0.1:local_port

Troubleshooting

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

$ heroku logs -t --app aqueous-harbor-3464

shadowsocks-websocket-luvit's People

Contributors

mrluanma avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.