Giter Site home page Giter Site logo

zfl9 / relay Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 1.0 97 KB

高性能、低资源开销的 relay/proxy 工具

License: GNU Affero General Public License v3.0

Zig 94.44% C 5.56%
linux relay socks4 socks5 ss-tproxy transparent-proxy trojan zig proxy iptables nftables trojan-gfw trojan-go

relay's Introduction

relay

高性能 relay(中继/转发)工具,类似 socat,但专注于 proxy 领域,通过组合不同的 in、out 协议,可实现:

  • ipt2socks:in:tproxy + out:socks4/5
  • tls-client:in:tproxy + out:tlsproxy
  • tls-server:in:tlsproxy + out:raw
  • trojan-tproxy:in:tproxy + out:trojan
  • trojan-client:in:socks5 + out:trojan
  • trojan-server:in:trojan + out:raw

积极开发中,优先实现 ipt2socks,并支持 socks4 传出,然后是 tlsproxy 协议、trojan-tproxy 客户端。

设计目标

  • Linux only
  • 高性能,尽可能零拷贝,减少系统调用
  • 低资源开销,即便是低端路由器也能流畅运行
  • 支持条件编译,避免对不需要的协议支付相关成本

relay's People

Contributors

zfl9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

wbaby

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.