Git Product home page Git Product logo

socks5's Introduction

socks5

轻量的socks代理服务器,支持socks4,socks4a,socks5,代码简单易读,就像sock原始协议一样

Feature

使用

下载页面
根据平台选择下载文件,解压后直接执行二进制文件即可(linux平台需要加执行权限)

配置

解压后同目录下的ss5.json是配置文件,各项配置字段说明如下

 ListenPort 监听端口,默认是1080  
 UserName,Password 需要用户名密码鉴权时填写,默认为空
 UDPTimeout udp读超时时间,默认60s
 TCPTimeout tcp读超时时间,默认60s
 UDPAddr udp代理的地址
 LogLevel 日志等级(debug,info,warn,error)

示例

go get github.com/0990/socks5  

以下为一个简单示用

s := socks5.NewServer(socks5.ServerCfg{
	    ListenPort: 1080,
	    UserName:   "",
	    Password:   "",
	    UDPTimout:  60,
	    TCPTimeout: 60,
	    UDPAddr:"127.0.0.1:1080",
	    LogLevel:"error"
})
err := s.Run()
if err != nil {
	log.Fatalln(err)
}

TODO

  • 支持 BIND 命令

Thanks

txthinking/socks5

socks5's People

Contributors

0990 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.