GithubHelp home page GithubHelp logo

Comments (8)

xjasonlyu avatar xjasonlyu commented on June 2, 2024

Sorry for the wiki, I understand that it is not very detailed.

To use a localhost socks5 or any kinds of proxy servers, you need to enable the interface bound option for your proxy servers, e.g. v2ray server has a sendThrough option in its outbound settings, which can be used to bind to a specific interface to avoid the infinite loop issue. https://www.v2fly.org/config/outbounds.html#outboundobject

Hope it helps.

from tun2socks.

sgon00 avatar sgon00 commented on June 2, 2024

@xjasonlyu thank you very much for your reply. I just tried sendThrough and tried in many ways. It just doesn't work at all. I think I will only use v2ray proxy in another machine (actually in a VM with bridged nic). Localhost v2ray just causes too much troubles. Cheers.

from tun2socks.

shakibamoshiri avatar shakibamoshiri commented on June 2, 2024

@sgon00 I am facing some similar issues ... #345
what do you mean by this socks5 host can not be localhost. ...

Do you mean it cannot be e.g. 127.0.0.1:PORT ?

from tun2socks.

sgon00 avatar sgon00 commented on June 2, 2024

@shakibamoshiri yeah, it's better not be in the same host. Otherwise, you will need to workaround too many problems. It's better put in another host/computer. I am using a VM for this purpose.

from tun2socks.

shakibamoshiri avatar shakibamoshiri commented on June 2, 2024

Thinking that this app could be the reason for the errors I saw, I complied badvpn and saw the same result.
The issue is not this app, it was SSH socks5 port forwarding that could not forward UDP traffic.

The app (tun2socks) is reliable as I tested with iperf3 with TCP and fast , but in practice opening sites like YouTube which has mixed UDP / TCP requests cases errors

So shortly the issue for me and probably yours are likely UDP requests could not go to socks5 servers. I think I should find an SSH client tool that supports UDP.

from tun2socks.

xjasonlyu avatar xjasonlyu commented on June 2, 2024

Standard SSH protocol doesn't support UDP. Why not try some real proxy tools like gost?

from tun2socks.

shakibamoshiri avatar shakibamoshiri commented on June 2, 2024

I live in Iran -- the Hell of Internet users , has gotten much worse than China -- regardless of the protocol , that tool should support reverse tunnel , otherwise cannot operate well here .

Today tested wstunnel, which supports UDP and reverse tunnel , works fine, but it is slow comparing to openssh-client
This tool (tun2socks) is pretty useful and I think we should update the WiKi to add more realistic examples .

from tun2socks.

github-actions avatar github-actions commented on June 2, 2024

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

from tun2socks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.