1 Star 6 Fork 0

sAGiTTaR / thru

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Thru

QUIC加密通道,支持TCP/UDP。

安装

cargo install thru

示例

TCP走QUIC通道

服务端

QUIC转TCP

thru -t quic://0.0.0.0:4242==tcp://tcpbin.com:4242 --cert certchain.pem --key key.pem

客户端

TCP转QUIC

thru -t tcp://127.0.0.1:4242==quic://example.com:4242 --peer-cert root.pem

测试echo服务

nc 127.0.0.1 4242

TLS证书

由于QUIC使用了TLS加密,所以需要配置TLS证书。

服务端配置对应域名的证书及私钥。

对于自签名证书,客户端需要配置对应的根证书(--peer-cert)。如果已在系统中安装该证书,则不需要这个参数。

github

https://github.com/plestoon/thru

MIT License Copyright (c) 2024 Don Han Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

QUIC加密通道,支持TCP/UDP 展开 收起
Rust
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Rust
1
https://gitee.com/sagittar/thru.git
git@gitee.com:sagittar/thru.git
sagittar
thru
thru
main

搜索帮助