corplink-rs icon indicating copy to clipboard operation
corplink-rs copied to clipboard

使用 rust 实现的飞连客户端

Results 13 corplink-rs issues
Sort by recently updated
recently updated
newest added

对于`allowed ip`中部分缺失子网掩码的ip,末尾添加`/32`以修正格式

报错日志: 添加日志发现,ConnectVPN接口返回的route中,包含了一个没有子网掩码的地址

#1 中 @ttys3 反馈道,飞连在 v2.0.10 版本开始使用 tcp 连接 wireguard ,通过查看 log 可以发现新增了 `tunc_linux.go` ,之前使用的是 [tun_linux.go](https://github.com/WireGuard/wireguard-go/blob/6a08d81f6bc465a2276c61093d96e567d00beb24/tun/tun_linux.go) 从网络连接和抓包结果也可以确认,新版本只有 tcp 连接了

enhancement

## 问题描述 上周下载编译运行`corplink-rs`能够正常使用。一周后,办公电脑连接办公网络1~2分钟后(个人网络也是),连接被断开。 `export RUST_BACKTRACE=full`没有观察到异常trace: ``` export RUST_BACKTRACE=full; ./corplink-rs-debug config.json [2024-06-24T03:50:31Z INFO corplink_rs] running [email protected] [2024-06-24T03:50:31Z INFO corplink_rs] running [email protected] [2024-06-24T03:50:31Z INFO corplink_rs::client] cookie file is: utun9_cookies.json [2024-06-24T03:50:31Z INFO corplink_rs]...

背景:这个客户端是我自己编译的客户端,版本是当前最新的版本4.3,服务器操作系统是ubuntu 22.04。这个客户端已经成功运行了一段时间。 现象:最近发现这个客户端无论如何也无法保持运行了,下面是报错日志: [2024-06-25T03:11:06Z INFO  corplink_rs::client] try to get wg conf from remote [2024-06-25T03:11:06Z INFO  corplink_rs::client] 2fa code generated: 249427, 24 seconds left [2024-06-25T03:11:07Z INFO  corplink_rs] start wg-corplink for corplink...

观察到 5.0 版本在连接 tcp vpn 时,会出现占满某个 cpu 线程的情况。可能跟 tcp 连接相关,使用 pprof 可能能定位出来,暂时没时间处理,先记录

使用源码在debian10 内核5.4.143.bsk.8的机器上编译。 配置文件如下 ``` { "company_name": "xxx", "username": "178xxx", "password": "******", "platform": "feilian", "device_name": "Debian", "interface_name": "utun10" } ``` ### master源码编译完成之后,登录出现以下问题 ![Image](https://github.com/user-attachments/assets/695b2a7c-9248-4cf4-b3e9-6ee075a4c175) ### 4.4tag分支编译进行登录遇到下面问题 ![Image](https://github.com/user-attachments/assets/de859cfc-bf12-44db-9c4e-bd8d9303878a) 求组需要怎样才能在机器上正确连接VPN

TODOs: - [ ] *(windows)* compile & test on windows. - [ ] *(linux)* call `nmcli` to set up DNS with NetworkManager users. - [ ] *(docs)* update README.md

In the API `/vpn/conn`, the server will return some route config `vpn_route_full` and `vpn_route_split`. It is used to apply Full or Split mode to let some traffic bybass the VPN....

thread 'main' panicked at src/main.rs:109:29: called `Result::unwrap()` on an `Err` value: ReqwestError(reqwest::Error { kind: Decode, source: Error("missing field `token`", line: 1, column: 782) }) macos上运行报以上错误,配置文件里code字段目前是null,其他主要字段都有值。