Giter Club home page Giter Club logo

lightsocks's Introduction

lightsocks

We walk in the dark, to serve the light.

Current version: 1.1

shadowsocks is a lightweight tunnel proxy which can help you get through firewalls

lightsocks is a shadowsocks client serving as a transparent proxy. Once set up, you can visit localhost:local_port as if you are visiting target_server:target_port.

usage

First, set up shadowsocks server on your VPS.

Clone lightsocks on your client machine. Don't forget to install submodules.

git clone --recurse-submodules https://github.com/clowwindy/lightsocks.git

Then edit config.json, change the following values:

server          your shadowsocks server ip or hostname
server_port     your shadowsocks server port
password        your shadowsocks password
method          encryption method, "bf-cfb", "aes-256-cfb", "des-cfb", "rc4", etc. Default is table
local_port      local port
target_server   the server you want to visit, for example, github.com
target_port     the server port you want to visit, for example, 22

Run python lightsocks.py on your client machine.

visit localhost:local_port as if you are visiting target_server:target_port.

FAQ

Q: How to setup git ssh with Github?

A: Edit config.json, set target_server to github.com, set target_port to 22. Run python lightsocks.py

Edit ~/.ssh/config, add the following:

host github.com
port 1082
hostname 127.0.0.1

Replace 1082 with your local_port if your local_port is not 1082. Then you can git clone [email protected]:myname/myrepo.git

Q: What about git:// protocol?

A: Similar to the above. But you'll set both target_port and local_port to 9418. Then add '127.0.0.1 github.com' in your /etc/hosts file. Then you can git clone git://github.com/clowwindy/shadowsocks.git

lightsocks's People

Contributors

clowwindy avatar

Watchers

James Cloos avatar  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.