RepositoryRust
CF

cfal/tobaru

Port forwarding utility written in Rust with IP and TLS SNI/ALPN-based forwarding rules, multiple targets per port, iptables support, and hot reloading.

294sao
22fork
10issue
1lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: tcp-proxy

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: port-forward

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: tls-tunnel

#1 Repository Của Tuần

🔥 tobaru — Công cụ port forwarding Rust với routing TLS SNI/ALPN cấp doanh nghiệp

Forward TLS traffic bằng SNI mà không cần解密. Forward TCP bằng IP. Route HTTP bằng path. Tất cả trong một file YAML.

tobaru là một công cụ port forwarding viết bằng Rust, giải quyết bài toán chuyển tiếp kết nối mạng với khả năng routing thông minh dựa trên địa chỉ IP, TLS SNI (hỗ trợ wildcard), ALPN protocol, và HTTP path. Công cụ hỗ trợ đồng thời hai chế độ xử lý TLS: passthrough (không giải mã, zero overhead, không cần private key) và terminate (giải mã để inspect nội dung), có thể trộn lẫn cả hai trên cùng một cổng. Được xây dựng trên Tokio async I/O, tobaru hướng đến hiệu suất cao với minimal allocations.

✨ Điểm nổi bật

  • Routing đa chiến lược: Chuyển tiếp kết nối dựa trên IP address, TLS SNI (kể cả wildcard), ALPN protocol, hoặc HTTP path
  • TLS Passthrough mode: Route TLS bằng SNI/ALPN mà không cần giải mã — không private key, không latency, bảo toàn mã hóa end-to-end
  • TLS Terminate mode: Giải mã TLS và route dựa trên SNI/ALPN hoặc nội dung HTTP, với cert/key tùy chỉnh
  • Mixed TLS modes trên cùng một port: Kết hợp passthrough cho API public và terminate cho admin panel nội bộ trên cùng một cổng 443
  • HTTP Proxy đầy đủ: Path-based routing, serve static files, custom responses với status code, header manipulation, WebSocket, keep-alive
  • Hot reloading: Thay đổi cấu hình tự động phát hiện và áp dụng mà không cần restart
  • iptables integration: Tự động cấu hình firewall rules cho IP allowlist
  • IP groups: Nhóm IP ranges có thể tái sử dụng, đặt tên dễ quản lý
  • Client & Server certificate pinning: Xác thực fingerprint SHA256 cho cả hai phía

💡 Vì sao đáng chú ý

tobaru giải quyết đúng nhu cầu thực tế của ai đó đang chạy reverse proxy hoặc gateway cần phân luồng traffic TLS dựa trên SNI mà không chịu chi phí giải mã. Chế độ passthrough cho phép route traffic đến backend khác nhau chỉ bằng cách đọc SNI hostname — không cần cert, không cần key, không ảnh hưởng đến end-to-end encryption. Điều này đặc biệt hữu ích khi cần phân biệt traffic của nhiều service khác nhau trên cùng một IP:port.

Khả năng trộn lẫn passthrough và terminate trên cùng một cổng giúp đơn giản hóa kiến trúc mạng: public API giữ nguyên mã hóa, trong khi admin panel có thể decrypt để audit hoặc route nội bộ. Kết hợp với hot reloading và iptables auto-config, tobaru giảm đáng kể vận hành thủ công cho infrastructure có nhiều backend và rule phức tạp.


#Rust #PortForwarding #TLS #SNI #LoadBalancing #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryGo
mmatczuk/go-http-tunnel

Fast and secure tunnels over HTTP/2

3.3k
Jul 2, 2026
RepositoryGo
davrodpin/mole

CLI application to create ssh tunnels focused on resiliency and user experience.

1.7k
May 13, 2024
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
190.2M
Jun 1, 2026
RepositoryRust
hcavarsan/kftray

kubectl port-forward manager and reverse tunnel (ngrok-like) for exposing local services publicly, with TLS termination, HTTP traffic inspection, UDP forwarding, multi-hop proxy routing through k8s clusters, stateful config via filesystem or git - GUI and TUI available

1.6k
Oct 21, 2026
RepositoryHTML
tobychui/zoraxy

A general purpose HTTP reverse proxy and forwarding tool. Now written in Go!

5.5k
Oct 26, 2026
RepositoryGo
txn2/kubefwd

Bulk port forwarding Kubernetes services for local development.

4.2k
Oct 24, 2026
RepositoryGo
ghostunnel/ghostunnel

A simple TLS proxy with mutual authentication for securing non-TLS services.

2.2k
Oct 20, 2026
RepositoryShell
cytopia/pwncat

pwncat - netcat on steroids with Firewall, IDS/IPS evasion, bind and reverse shell, self-injecting shell and port forwarding magic - and its fully scriptable with Python (PSE)

2.0k
Sep 23, 2022
RepositoryC#
FastTunnel/FastTunnel

expose a local server to the internet. 高性能跨平台的内网穿透解决方案 远程内网计算机 域名访问内网站点 反向代理内网服务 端口转发 http代理

1.7k
Sep 16, 2026