gost icon indicating copy to clipboard operation
gost copied to clipboard

wintun的动态库应该放到什么位置

Open da1234cao opened this issue 9 months ago • 1 comments

问题描述

我尝试在windows下,使用gost的vpn功能。我阅读了gost文档-TUN/TAP设备。我下载了gost的代码,然后运行

git clone [email protected]:ginuerzh/gost.git
cd gost
go mod tidy
cd .\cmd\gost\

# 下面命令使用管理员权限执行
gost -L=tun://:0/SERVER_IP:8421?net=192.168.123.2/24

报错如下:

main.go:90: Failed to find the tap device in registry with specified ComponentId 'tap0901', TAP driver may be not installed
exit status 1

问题分析

我进入到代码里面。我注意到gost使用createTun来创建tun设备。createTun调用water-package来创建tun设备。

water-package的文档中,它有这样的描述。并没有提到使用wintun。

To use it with windows, you will need to install a tap driver, or OpenVPN client for windows.

疑问

下载wintun后,我该怎么做,以使用gost的vpn功能。

da1234cao avatar Sep 10 '23 11:09 da1234cao

wintun只在v3版本中可用。

ginuerzh avatar Sep 18 '23 13:09 ginuerzh