Closed TheresaQWQ closed 2 years ago
使用openconnect,我也遇见了同样的问题,使用anyconnect也不行,会报错: error: VPN establishment capability for a remote user is disabled. A VPN connection will not be established.
请问在centos7上该如何连接vpn呢?
目前 profile.xml 是写死到代码里了,需要修改 https://github.com/bjdgyc/anylink/blob/4518959bf9ccef77552cf166fc73aebc857b13fd/server/handler/link_auth.go#L197 在
<WindowsVPNEstablishment>AllowRemoteUsers</WindowsVPNEstablishment>
下面添加
<LinuxVPNEstablishment>AllowRemoteUsers</LinuxVPNEstablishment>
然后自己编译
附件是我自己编译好的,解压替换原来的可执行文件试试 anylink.zip
使用以下命令编译的,或许可以避免 libc 依赖
go build -ldflags '-linkmode "external" -extldflags "-static"'
anylink.zip
已经修改profile文件
非常感谢各位,目前0.7.1版本,支持在centos7.5上,使用anyconnect和openconnect连接,0.5.1之前的版本,更改了数据库无法直接更换二进制文件,可以手动导出用户,并且保持用户名,pin码,OTP密钥一致即可
anylink使用的是v0.6.2
openconnect版本
openconnect日志