Comments (2)
Hey.
I don't know what you're talking about, the truth is almost the opposite.
The udpgw daemon listens on TCP, not UDP. And the UdpGwClient communicates
with the daemon through an abstract stream. When UdpGwClient is used from
tun2socks (the only place it's used), it's used via SocksUdpGwClient, which
will connect to the udpgw daemon through the same SOCKS server that
tun2socks forwards TCP connections through (and this is still a SOCKS CONNECT command, i.e. TCP!).
If you only want to tunnel UDP through TCP, and don't want to set up a
dummy SOCKS server, you can implement a class akin to SocksUdpGwClient, but
which would establish TCP connections directly, not through SOCKS.
from badvpn.
Oh interesting, thank you! I am trying to force all of my traffic over USB (TCP) via libusbmuxd.h, for my iPhone tethering project.
The current design is like this:
- Run a SOCKS server on the iPhone on port 8123
- Run TetherMac on local computer to listen for TCP connections on port 8000, pretending to be a SOCKS server
- Use libusbmuxd to tunnel SOCKS connections directed towards mac:8000 to iphone:8123 instead.
So far applications that fully support SOCKS can be pointed at mac:8000 as long as they also rely on the SOCKS proxy for DNS lookups. However this clearly doesn't work for applications that don't speak SOCKS, so I have been trying to figure out how to use tun2socks to tunnel all my traffic through this TCP-only SOCKS connection.
I am still having trouble getting tun2socks to work on OS X, even disregarding UDP support. I'll open a separate issue about that, but I am using this fork with utun OS X fixes by @linusyang
from badvpn.
Related Issues (20)
- confused me:why use an empty job for sync in listener_accept_func HOT 4
- socks5 udp doesn't work with IPv6 HOT 1
- why not using boost::asio
- 请问tun2socks透明代理udp该怎么做? HOT 2
- Forks
- Any limitations on Raspberry Pi? HOT 5
- Linux Router
- move_first_timers crash HOT 1
- BadVPN not Working Properly
- ERROR(udpgw): BConnection_Init failed HOT 8
- BADVPN ERROR
- out of UDP buffer
- Virtual netword adapter tap 9 via tun2socks. Need instruction HOT 4
- tun2socks и proxy ipv6
- Assertion failed in BReactor_badvpn.c
- How does the UdpGw daemon work? HOT 2
- tun2socks not support half-closing
- tun2socks on freebsd
- nss/ssl.h not found HOT 1
- 能否在Wiki中写一下tun2socks组件转发的UDP包结构? HOT 1
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 badvpn.