-
Notifications
You must be signed in to change notification settings - Fork 436
Improved version of the tun2socks #154
Comments
@kayrus your version of tun2socks works great on windows 10, but your code doesn't set the DNS server on the tun interface making the tunDns parameter useless. Could you fix it :-) |
I haven't tried the DNS feature yet even in *nix OS. I'm using SSH socks, which, I guess, doesn't support UDP. Can you suggest a Linux SOCKS5 server, which handles UDP? |
You are my HERO!!! |
try Xray |
@kayrus |
@steom yes, I know. I need more time to fix this. |
I brought back DNS support for windows. It may also work with linux/macos. Please test. |
the dns is configured now but after manually add the value: panic: runtime error: slice bounds out of range [:1500] with capacity 1300 goroutine 7 [running]: |
that is weird. in my case IP addresses are configured correctly.
which parameters did you use for the CLI? I suppose I forgot to set MTU size inside the |
Command line used: |
I Need the new binary |
please provide all arguments, including their values. Usually it is not necessary to specify the tunGw and tunAddr, because they are taken from defaults. |
@steom I'll make a new release soon. |
proxyserver 10.0.0.100:1080 -tunaddr 192.168.0.2 -tundns 1.1.1.1 -tungw 192.168.0.1 -tunmask 255.255.255.0 |
@steom I uploaded a dev binary into the latest release: https://github.com/kayrus/go-tun2socks/releases/download/v1.16.18/tun2socks-dev.exe |
just setting the GW won't route all your traffic through the SOCKS. You need to specify the target routes, by default they are empty. If this is confusing for you. You need to set For example, you established an SSH socks proxy with a remote server ( |
Now dont crush. Net adapter settings still blank, only dns Is populated |
they have to be blank. See my previous message. The routes are set only for particular destinations, which you specify as CLI arguments. |
The previous version doesn't set the DNS server and the gateway on the Windows tun interface Now ,this new version doesn't set anything on the Windows tun interface but the DNS server The tunaddr tunmask tungw options is useless dont set anything |
See a screenshot. These parameters are not useless. Gateway is set per route, specified as an argument. P.S. If you want to route DNS request via 1.1.1.1, you also need to add |
@steom you should refer to |
its possibile to have also a win32 binary? |
after browse the internet for a while...: panic: runtime error: slice bounds out of range [:1500] with capacity 1300 goroutine 7 [running]: solvable i think with -maxMTU 1500 but a user message instead of a crash would be better |
@steom I found an issues in underlying wintun driver. A workaround is to set the MTU in windows console:
you can do it once. |
using -maxMTU 1500 solve the problem, much more convenient |
@steom sometimes underlying layer doesn't allow to set MTU 1500, and this causes broken connections. That is why a new MTU option was added. I'll try to find a proper solution for wintun driver. |
@steom I made a release with fixed MTU. Please test https://github.com/kayrus/go-tun2socks/releases/tag/v1.16.19 |
the fix works fine |
I made a couple of improvements in my fork: https://github.com/kayrus/go-tun2socks
@eycorsican I'm not aware about the current project vision and a roadmap, therefore I'd like to get your opinion on whether it is feasible to merge my changes to your branch.
The text was updated successfully, but these errors were encountered: