Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zfl9/relay
高性能、低资源开销的 relay/proxy 工具
https://github.com/zfl9/relay
iptables linux nftables proxy relay socks4 socks5 ss-tproxy transparent-proxy trojan trojan-gfw trojan-go zig
Last synced: 11 days ago
JSON representation
高性能、低资源开销的 relay/proxy 工具
- Host: GitHub
- URL: https://github.com/zfl9/relay
- Owner: zfl9
- License: agpl-3.0
- Created: 2024-05-12T14:20:49.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-05-27T04:03:47.000Z (6 months ago)
- Last Synced: 2024-11-02T07:42:06.371Z (18 days ago)
- Topics: iptables, linux, nftables, proxy, relay, socks4, socks5, ss-tproxy, transparent-proxy, trojan, trojan-gfw, trojan-go, zig
- Language: Zig
- Homepage:
- Size: 94.7 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
- 高性能,尽可能零拷贝,减少系统调用
- 低资源开销,即便是低端路由器也能流畅运行
- 支持条件编译,避免对不需要的协议支付相关成本