Giter VIP home page Giter VIP logo

shadowsocks-go's Introduction

shadowsocks-go

兼容原版 shadowsocks-go 并增加以下功能

在多服务器中,指定一个目的地址从特定的服务器访问 比如:

    有3台服务器 A、B、C
    A 用作穿墙
    B 用作访问内网资源
    C 用作视频浏览
    可以制定规则 访问 youku.com 时 从 C 服务器访问

原理是根据请求的地址在列表中作比较

配置文件举例:

{
	"local_port": 7070,
	"server_password": [
		["gfw.xxxx.com:7077", "password", "aes-128-cfb"],
		["127.0.0.1:7077", "password", "aes-128-cfb"],
		["video.xxxx.com:7077", "password", "aes-128-cfb"]
	],
	"server_route":[
		["gfw.txt",	"0",	"2"],
		["local.txt",	"1",	"0"],
		["video.txt",	"2",	"1"]
	]
}

server_route 中每一项有3个字段

第一个字段表示规则文件

第二个字段表示使用哪个服务器,按顺序从0开始

第三个字段指定优先级,数字越小优先级越高

规则文件中每个地址一行 例如 local.txt 的内容

192.168.2.100
nexus.sdp.com
192.168.3.100

shadowsocks-go's People

Contributors

cyfdecyf avatar clowwindy avatar withliyh avatar ayanamist avatar defia avatar genzj avatar ddatsh avatar thomasf avatar dujiulun avatar amyangfei avatar hugozhu avatar defp 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.