Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加问题信息 #282

Merged
merged 1 commit into from
Dec 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 30 additions & 9 deletions doc/question.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,55 @@
## 常见问题

### anyconnect 客户端问题

> 客户端请使用群共享文件的版本,其他版本没有测试过,不保证使用正常
>
>
> 添加QQ群: 567510628
### OTP 动态码

> 请使用手机安装 freeotp ,然后扫描otp二维码,生成的数字即是动态码
### 远程桌面连接

> 本软件已经支持远程桌面里面连接anyconnect。
### 私有证书问题

> anylink 默认不支持私有证书
>
>
> 其他使用私有证书的问题,请自行解决
### dpd timeout 设置问题
### 客户端连接名称

> 客户端连接名称需要修改 [profile.xml](../server/conf/profile.xml) 文件
```xml

<HostEntry>
<HostName>VPN</HostName>
<HostAddress>localhost</HostAddress>
</HostEntry>
```

### dpd timeout 设置问题

```yaml
#客户端失效检测时间(秒) dpd > keepalive
cstp_keepalive = 6
cstp_dpd = 10
mobile_keepalive = 15
mobile_dpd = 20
cstp_keepalive = 4
cstp_dpd = 9
mobile_keepalive = 7
mobile_dpd = 15
```

> 以上dpd参数为客户端的超时检测时间, 如一段时间内,没有数据传输,防火墙会主动关闭连接
>
>
> 如经常出现 timeout 的错误信息,应根据当前防火墙的设置,适当减小dpd数值
### 反向代理问题

> anylink 仅支持四层反向代理,不支持七层反向代理
>
>
> 如Nginx请使用 stream模块
```conf
Expand Down Expand Up @@ -75,6 +94,7 @@ stream {
```

### 性能问题

```
内网环境测试数据
虚拟服务器: centos7 4C8G
Expand All @@ -83,6 +103,7 @@ anylink: tun模式 tcp传输
客户端网卡下载速度:270Mb/s
服务端网卡上传速度:280Mb/s
```

> 客户端tls加密协议、隧道header头都会占用一定带宽

2 changes: 1 addition & 1 deletion server/base/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var configs = []config{
{Typ: cfgInt, Name: "max_client", Usage: "最大用户连接", ValInt: 200},
{Typ: cfgInt, Name: "max_user_client", Usage: "最大单用户连接", ValInt: 3},
{Typ: cfgInt, Name: "cstp_keepalive", Usage: "keepalive时间(秒)", ValInt: 4},
{Typ: cfgInt, Name: "cstp_dpd", Usage: "死链接检测时间(秒)", ValInt: 10},
{Typ: cfgInt, Name: "cstp_dpd", Usage: "死链接检测时间(秒)", ValInt: 9},
{Typ: cfgInt, Name: "mobile_keepalive", Usage: "移动端keepalive接检测时间(秒)", ValInt: 7},
{Typ: cfgInt, Name: "mobile_dpd", Usage: "移动端死链接检测时间(秒)", ValInt: 15},
{Typ: cfgInt, Name: "mtu", Usage: "最大传输单元MTU", ValInt: 1460},
Expand Down
Loading