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 許可證獲得許可。