ombrac
v0.2.2
Ombrac是一种基于 Rust 的高性能 TCP 隧道解决方案,专为客户端和服务器之间的安全通信而设计。
Ombrac 分为三个主要板条箱
ombrac
:实现隧道协议的核心库ombrac-client
:Ombrac 客户端实现ombrac-server
:Ombrac 服务器实现ombrac-macros
: Ombrac 宏实现ombrac-transport
:Ombrac 传输实现从版本页面下载最新版本。
cargo build --bin ombrac-client --bin ombrac-server --features binary
注意:在 Linux 系统上, aws-lc-rs
将用于加密操作。这些系统上可能需要安装 AC 编译器和 CMake。
ombrac-server --listen " [::]:443 " --tls-cert " ./cert.pem " --tls-key " ./key.pem "
启动 Ombrac 服务器侦听端口 443,使用提供的 TLS 证书和密钥进行加密通信。
ombrac-client --socks " 127.0.0.1:1080 " --server-address " example.com:443 "
将在 127.0.0.1:1080 上设置 SOCKS5 服务器,将流量转发到 example.com:443。
使用自签名证书时,客户端需要显式配置--server-name
参数和--tls-cert
路径。
Usage: ombrac-server [OPTIONS] --listen < ADDR > --tls-cert < FILE > --tls-key < FILE >
Options:
-h, --help Print help
-V, --version Print version
Transport QUIC:
--listen < ADDR >
Transport server listening address
--tls-cert < FILE >
Path to the TLS certificate file for secure connections
--tls-key < FILE >
Path to the TLS private key file for secure connections
--congestion-initial-window < NUM >
Initial congestion window in bytes
--max-idle-timeout < TIME >
Connection idle timeout in millisecond
--max-keep-alive-period < TIME >
Connection keep alive period in millisecond
--max-open-bidirectional-streams < NUM >
Connection max open bidirectional streams
Logging:
--tracing-level < TRACE > Logging level e.g., INFO, WARN, ERROR [default: WARN]
Usage: ombrac-client [OPTIONS] --server-address < ADDR >
Options:
-h, --help Print help
-V, --version Print version
Endpoint SOCKS:
--socks < ADDR > Listening address for the SOCKS server [default: 127.0.0.1:1080]
Transport QUIC:
--bind < ADDR >
Bind address
--server-name < STR >
Name of the server to connect
--server-address < ADDR >
Address of the server to connect
--tls-cert < FILE >
Path to the TLS certificate file for secure connections
--congestion-initial-window < NUM >
Initial congestion window in bytes
--max-idle-timeout < TIME >
Connection idle timeout in millisecond
--max-keep-alive-period < TIME >
Connection keep alive period in millisecond
--max-open-bidirectional-streams < NUM >
Connection max open bidirectional streams
Logging:
--tracing-level < TRACE > Logging level e.g., INFO, WARN, ERROR [default: WARN]
欢迎贡献!请随意分叉存储库、提交问题或发送拉取请求以帮助改进 Ombrac。
该项目根据 Apache-2.0 许可证获得许可。