xjasonlyu / tun2socks

tun2socks - powered by gVisor TCP/IP stack
https://github.com/xjasonlyu/tun2socks/wiki
GNU General Public License v3.0
2.85k stars 405 forks source link

[Bug] Error loading wintun.dll DLL #210

Closed QGB closed 11 months ago

QGB commented 1 year ago

Verify steps

Version

v2.4.1 Latest

What OS are you seeing the problem on?

Windows

Description

Microsoft Windows [版本 10.0.18363.1316]

CLI or Config

No response

Logs

In [233]: !tun2socks-windows-amd64.exe -device tun://tun0 -proxy socks5://192.168.1.3:21080
time="2023-01-04T21:46:05+08:00" level=fatal msg="[ENGINE] failed to start: open tun: Error loading wintun.dll DLL: Unable to load library: The specified module could not be found."

In [234]:

How to Reproduce

No response

QGB commented 1 year ago

91

QGB commented 1 year ago

copy C:\Users\qgb\Downloads\Netch\bin\wintun.dll [Portable Executable 64]

In [234]: !tun2socks-windows-amd64.exe -device tun://tun0 -proxy socks5://192.168.1.3:21080
time="2023-01-04T21:54:17+08:00" level=fatal msg="[ENGINE] failed to start: open tun: runtime error: invalid memory address or nil pointer dereference"
rurirei commented 1 year ago

a related issue as help wanted.

tun.CreateTUN("wintun", 0)
Failed to create private namespace: Access is denied. (Code 0x00000005)
Failed to take device installation mutex: Access is denied. (Code 0x00000005)
Error creating interface: Access is denied.
xjasonlyu commented 1 year ago

Did you try to open it as Administrator?

rurirei commented 1 year ago

done, thanks.

Did you try to open it as Administrator?

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

QGB commented 1 year ago

sudo apt update;sudo apt install -y software-properties-common;sudo add-apt-repository ppa:deadsnakes/ppa;sudo apt update;sudo apt install -y python3.9

github-actions[bot] commented 12 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days