xjasonlyu / tun2socks

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

windows 下怎么用呀? #46

Closed f4nff closed 3 years ago

f4nff commented 3 years ago

.\tun2socks-windows-amd64.exe -device tun://tun0 -proxy socks5://uuu:pass@u.3g.xyz:9911 ipv6

netsh interface ipv6 add address "tun0" 2001:608:8001::1
netsh interface ipv6 add route ::/0 interface="tun0" 2001:608:8002::1 metric=3 store=active

ipv4

netsh interface ip set address "tun0" static 10.10.10.2 255.255.255.0
route add 0.0.0.0 mask 0.0.0.0 10.10.10.2 if 7 metric 1
netsh interface ip set dns "tun0" static 8.8.8.8
xjasonlyu commented 3 years ago

下載wintun.dll放在tun2socks 路徑下

xjasonlyu commented 3 years ago

可能是chrome默认/倾向于走ipv4?

xjasonlyu commented 3 years ago

tun2socks不处理只转发dns,dns是由系统决定的

xjasonlyu commented 3 years ago

你有没有tun2socks的日志。

xjasonlyu commented 3 years ago

这个问题单独开一个issue吧。

xjasonlyu commented 3 years ago

重新開個issue,一個問題一個issue。