bjdgyc / anylink

AnyLink是一个企业级远程办公 ssl vpn 软件,可以支持多人同时在线使用。基于 openconnect 协议开发,并且借鉴了 ocserv 的开发思路,可以完全兼容 AnyConnect 客户端。
GNU Affero General Public License v3.0
1.56k stars 375 forks source link

客户端连接时,提示未能下载 AnyConnect 配置文件。请重试。 #263

Closed podradio closed 11 months ago

podradio commented 11 months ago

使用的anylink版本 ?

docker 0.94 镜像 AnyLink v0.9.4 build on go1.19.12 [linux, amd64] commit_id()

./anylink tool -v
管理后台也可以查看

使用操作系统的类型和版本?

如: centos 7.9

cat /etc/issue
cat /etc/redhat-release

docker

使用linux 内核版本?

uname -a

群晖docker

具体遇到的问题,可上传截图

客户端链接时,提示未能下载 AnyConnect 配置文件。请重试。 IMG_7431 客户端版本: IMG_7434 看后台有成功登入日志,但很快就主动断开了链接

image
bjdgyc commented 11 months ago

你是不是修改 profile.xml 这个文件了

podradio commented 11 months ago

感谢您的回复,我用的最新的镜像(0.94)在 docker 里启动的时候报错:“panic: open ./conf/profile.xml: no such file or directory” 于是从 github 的项目里复制了项目里的profile.xml文件到了 ./conf 里,是否跟这个有关

bjdgyc commented 11 months ago

有关系,你是镜像里面没有,还是自己做了volume没复制进去

podradio commented 11 months ago

😭,我自己映射了一个 conf 配置的文件夹,然后把从 github 下载的profile.xml文件放了进去,然后启动成功了。 经过测试,是我的问题,重新建了一个容器,从 github 下载的profile.xml文件放在映射的文件夹中,这次成功过了 https://github.com/bjdgyc/anylink/blob/main/server/conf/profile.xml 使用的这个profile.xml,如有人遇到同样问题,可以试试。 最新的镜像如果没有profile.xml 会启动报错,我看的教程里没有提到放这个文件,如有人遇到可以试试我这个方法