Comments (8)
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.
@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.
@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.
@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.
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.
Standard SSH protocol doesn't support UDP. Why not try some real proxy tools like gost?
from tun2socks.
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.
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)
- 如何实现路由规则的匹配?
- [Feature] Install tun2socks as a Windows service HOT 1
- telnet connection issue HOT 1
- [Feature] 安卓开发中调用 tun2socks 的问题
- [Document] TUN interface needs DNS server configuration on Windows HOT 4
- [Bug] cannot ssh to remote server HOT 3
- [Bug] -tcp-sndBuf does not appear to change the send buffer size on Linux HOT 2
- [Bug] param -tun-post-up not work HOT 5
- [Bug] WARN[0004] [UDP] dial 8.8.8.8:53: client handshake: EOF HOT 9
- [Bug] The tun2socks always to use a new port to connect to tcp server HOT 1
- [Bug] Warning "status 7" was reported when access DNS server occasionally(DNS traffic was set to send via physical interface in route table) HOT 1
- [Feature] Does the wireguard-go package not provide an API for sending layer 3 packets? I've been looking for a long time and haven't seen it.
- [Bug] error compile HOT 3
- \core\device\iobased\endpoint.go:78 Read latency is high HOT 2
- [Bug] can not proxy telegram or line apps text data.
- [Feature] missing "--tun-post-down" option
- [Feature] 关于windows 系统下的benchmarks
- [Feature] Add username/password support in `-proxy` parameter HOT 2
- [Bug] ICMP packets escapes proxy HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tun2socks.