Skip to content
This repository has been archived by the owner on Aug 22, 2021. It is now read-only.

Virtual netword adapter tap 9 via tun2socks. Need instruction #117

Open
greyzak opened this issue Jan 26, 2021 · 4 comments
Open

Virtual netword adapter tap 9 via tun2socks. Need instruction #117

greyzak opened this issue Jan 26, 2021 · 4 comments

Comments

@greyzak
Copy link

greyzak commented Jan 26, 2021

Hello. I need to make a wi-fi hot spot connection on the laptop, and then connect android or iPhone to wi-fi hot spot. I want all traffic on that devices to go through socks5 proxy. So i try to make virtual adapter tap 9 and use instruction which i found in web:

$ t2s --tundev "tap0901:taplan:10.0.0.1:10.0.0.0:255.255.255.0" --netif-ipaddr 10.0.02 --netif-netmask 255.255.255.0 --socks-server-addr 127.0.0.1:3185

but in cmd i see
NOTICE(tun2socks): initializing BadVPN tun2socks 1.999.128
ERROR(tun2socks): netif ipaddr: BIPAddr_Resolve failed
ERROR(tun2socks): Failed to process arguments
NOTICE(tun2socks): exiting

I found you comment for this:
Tun2socks currently doesn't work with the TAP-Windows NDIS6 driver. To make it work it is necessary to install the older NDIS5 driver.
Remember that I'm not stopping anyone from fixing tun2socks to work with the new driver :)

But i couldn't find NDIS5 driver for Win10. So how can solve that case? Is there new version of tun2socks? Or you know other way to solve it and can give advice? May be is there any instruction? Thanks.

@ambrop72
Copy link
Owner

10.0.02 -> 10.0.0.2

@greyzak
Copy link
Author

greyzak commented Jan 28, 2021

I'm sorry. What does it mean?

@4-FLOSS-Free-Libre-Open-Source-Software

@greyzak
Copy link
Author

greyzak commented Jan 28, 2021

Thanks. I fixed dot mistake.
Now i tried:

C:\Windows\system32>t2s --tundev "tap0901:taplan:10.0.0.1:10.0.0.0:255.255.255.0" --netif-ipaddr 10.0.0.2 --netif-netmask 255.255.255.0 --socks-server-addr 127.0.0.1:8123
NOTICE(tun2socks): initializing BadVPN tun2socks 1.999.128
INFO(BTap): Looking for TAP-Win32 with component ID tap0901, name taplan
ERROR(BTap): Could not find device
ERROR(tun2socks): BTap_Init failed
NOTICE(tun2socks): exiting

I found the full id of that hardware: root\tap0901
So i tried:

C:\Windows\system32>t2s --tundev "root\tap0901:taplan:10.0.0.1:10.0.0.0:255.255.255.0" --netif-ipaddr 10.0.0.2 --netif-netmask 255.255.255.0 --socks-server-addr 127.0.0.1:8123
NOTICE(tun2socks): initializing BadVPN tun2socks 1.999.128
INFO(BTap): Looking for TAP-Win32 with component ID root\tap0901, name taplan
INFO(BTap): Opening device \.\Global{376A4231-754C-48EC-8FA8-06976E2BD734}.tap
ERROR(BTap): CreateFile failed
ERROR(tun2socks): BTap_Init failed
NOTICE(tun2socks): exiting

Have any idea? Need help. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants