Giter Site home page Giter Site logo

lightsword's Introduction

LightSword

Build Status

光刃——基于 Node.js 的 SOCKS5 代理。

光刃参考了 Shadowsocks 的协议,并用 Typescript 实现。光刃基于 Node.js 4.0+,因此需要首先安装 Node.js 4.0 以上版本,点击访问官方网址

Quick Start

首先,安装Node.js 4.0+,安装好 Node.js 之后,即可使用 Node.js 的包管理器npm安装 LightSword 。目前**并没有封杀 npmjs.org ,因此可以直接安装:

1.安装

[sudo] npm install lightsword -g

安装完成之后,即可使用客户端,服务器端,中转站端。

服务器端: lsserver, lightsword-server, lightsword

中转站端: lsbridge, lightsword-bridge

客户端: lslocal, lightsword-client

简单的说明下中转站的作用: 由于大家都懂的,访问境外IP时不时丢包非常严重,因此可以把中转站搭建在墙内的云提供商服务器上,作为墙内到墙外的中转,具有较好的效果。

2.运行

服务器:

lsserver -f

客户端:

lslocal -s server_addr -f

中转站:

lsbridge -s server_addr -f

以上配置均使用内置默认设置,详细参数请参见源码文件夹中的 README.md 文件。

经本猫实测,中转服务器对 Shadowsocks 有效。理论上支持任何形式的TCP流量中转。

配置你的浏览器及其它需要科学上网的软件使用光刃提供的 SOCKS5 代理。

默认监听地址: localhost

端口: 1080

License

GPLv2.0

lightsword's People

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.