hiddify-next icon indicating copy to clipboard operation
hiddify-next copied to clipboard

TUN mode not working on some windows devices

Open dfaa241b opened this issue 1 year ago • 11 comments

Search first

  • [X] I searched and no similar issues were found

What Happened?

TUN mode is not working on some windows devices. To get it working you have to manually add route to your server's IP address via default network adapter. route add XX.XX.XX.XX 192.168.1.1 MASK 255.255.255.255 METRIC 2 IF XX

Reproduce the Bug

TUN mode doesn't work on random devices

Expected Behavior

No response

Version

v0.12.1

Platform/OS

Windows

Additional Context

No response

Relevant log output

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • [ ] I'm willing to submit a PR (Thank you!)

dfaa241b avatar Dec 31 '23 08:12 dfaa241b

I am new here. And I think this repo currently is nearly perfect except no tun mode.

dbsxdbsx avatar Jan 08 '24 02:01 dbsxdbsx

I am new here. And I think this repo currently is nearly perfect except no tun mode.

VPN mode=tun mode

good-bay avatar Jan 08 '24 08:01 good-bay

I am new here. And I think this repo currently is nearly perfect except no tun mode.

VPN mode=tun mode

Thanks. Now I set it like this: image I guess it is the correct tun setting, right?

By the way, when looking into the code, it seems that the sing-box code is from libcore/bin/libcore.h, but I didn't find the file. And I also didn't find the c file and corresponding library. And I wonder how is the file /singbox_generated_bindings.dart generated.

dbsxdbsx avatar Jan 08 '24 09:01 dbsxdbsx

I am new here. And I think this repo currently is nearly perfect except no tun mode.

VPN mode=tun mode

Thanks. Now I set it like this: image I guess it is the correct tun setting, right?

By the way, when looking into the code, it seems that the sing-box code is from libcore/bin/libcore.h, but I didn't find the file. And I also didn't find the c file and corresponding library. And I wonder how is the file /singbox_generated_bindings.dart generated.

I only know that the VPN mode is TUN mode, but I don’t know the specific settings.

good-bay avatar Jan 08 '24 10:01 good-bay

I am new here. And I think this repo currently is nearly perfect except no tun mode.

VPN mode=tun mode

Thanks. Now I set it like this: image I guess it is the correct tun setting, right? By the way, when looking into the code, it seems that the sing-box code is from libcore/bin/libcore.h, but I didn't find the file. And I also didn't find the c file and corresponding library. And I wonder how is the file /singbox_generated_bindings.dart generated.

I only know that the VPN mode is TUN mode, but I don’t know the specific settings.

After testing, I think this setting is correct for TUN.

dbsxdbsx avatar Jan 08 '24 10:01 dbsxdbsx

TUN mode

I tried TUN mode but it doesn't work!

good-bay avatar Jan 08 '24 12:01 good-bay

TUN mode

I tried TUN mode but it doesn't work!

Weird, mine(version 0.13.6) worked on win10--- Oh, yes, you must restart the app to make the tun mode initilazed successful.

dbsxdbsx avatar Jan 11 '24 06:01 dbsxdbsx

TUN mode

I tried TUN mode but it doesn't work!

Weird, mine(version 0.13.6) worked on win10--- Oh, yes, you must restart the app to make the tun mode initilazed successful.

I am also running a Windows 10 system here, but I have adjusted all the parameters and cannot use TUN mode.

good-bay avatar Jan 11 '24 07:01 good-bay

TUN mode

I tried TUN mode but it doesn't work!

Try adding route to your proxy server via physical adapter with metric 1 while VPN/TUN is active, check for virtual TUN adapter called singbox in network control panel.

dfaa241b avatar Jan 11 '24 17:01 dfaa241b

我的物理网络适配器的IP:192.168.1.6,在虚拟网络适配器中如何添加路由? Uploading 虚拟网络.PNG…

good-bay avatar Jan 12 '24 04:01 good-bay

Yes TUN/VPN mode not work. Need add route

Onair-santa avatar Jan 26 '24 06:01 Onair-santa

This issue is fixed. Pls update your app

lymanjre avatar Jan 27 '24 12:01 lymanjre