bjdgyc / anylink

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

link_tun.go:20: [Fatal] open tun err: no such device #301

Closed onlypeng closed 3 months ago

onlypeng commented 4 months ago

使用的anylink版本 ?

v0.11.2

./anylink tool -v
管理后台也可以查看
AnyLink v0.11.2 build on go1.20.14 [linux, amd64] date:2024-02-23T16:53:31+08:00 commit_id(0ff6dbcd78f1f65b3b8b8c5e1ee75bd48360a223)

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

如: centos 7.9

cat /etc/issue
cat /etc/redhat-release
Debian GNU/Linux

使用linux 内核版本?

uname -a
Linux docker 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux

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

输出日志信息: [xorm] [warn] 2024/03/13 08:19:43.795471 Table access_audit column protocol db type is INT(10) UNSIGNED, struct type is INT UNSIGNED [xorm] [warn] 2024/03/13 08:19:43.795502 Table access_audit column src_port db type is INT(10) UNSIGNED, struct type is INT UNSIGNED [xorm] [warn] 2024/03/13 08:19:43.795647 Table access_audit column dst_port db type is INT(10) UNSIGNED, struct type is INT UNSIGNED [xorm] [warn] 2024/03/13 08:19:43.795746 Table access_audit column access_proto db type is INT(10) UNSIGNED, struct type is INT UNSIGNED 2024/03/13 08:20:42 link_tun.go:20: [Fatal] open tun err: no such device

补充信息: 使用PVE安装的debian虚拟机 ,配置如下: agent: 1 boot: order=sata0 cores: 4 cpu: host hostpci0: 0000:00:02.0,mdev=i915-GVTg_V5_4,pcie=1 machine: q35 memory: 12288 meta: creation-qemu=8.1.5,ctime=1709631119 name: Docker net0: virtio=BC:24:11:9E:98:55,bridge=vmbr0,firewall=1 numa: 0 onboot: 1 ostype: l26 sata0: data:1004/vm-1004-disk-0.qcow2,size=20G scsihw: virtio-scsi-single smbios1: uuid=e968a8fd-4052-4a9a-98a0-b3c28cf17eff sockets: 1 vmgenid: 2c22fdff-da7f-4bc9-b4c3-bf039d5d6042

bjdgyc commented 4 months ago

Debian 具体版本是啥

试试 modprobe tun

onlypeng commented 4 months ago

Debian 具体版本为12.1.0最小化安装,也就是不安装桌面 执行 modprobe tun命令后经lsmod | grep tun查询: tun 61440 0 正常运行 amylink启动成功,非常感谢