Comments (6)
That depends. If you are able to run programs on the remote server, then yes;
see the "UDP forwarding" section on the wiki.
On the other hand, if you want the SOCKS5 UDP support to be used, no, it's not
possible. If you would like to request this feature, please open an issue for
SOCKS5 UDP support specifically. However first make sure this is really what
you want (for example, "ssh -D" SOCKS server doesn't support it so it would be
useless with ssh).
Original comment by [email protected]
on 11 Mar 2013 at 5:21
from badvpn.
I'm not sure if I understand you correctly with SOCKS5 UDP so let me explain my
situation a little more.
I use a custom socks server / tunnel program running on my local machine so I
would not be using SSH for my tunnel. This socks/tunnel does support DNS via
SOCKS.
On the remote side I use this DNS lookup information to store the actual
connection address rather than just the connection IP address.
For my needs I ideally want to be able to send the actual hostname into the
SOCKS connection so rather than having the DNS lookups done on the local
machine.
Would that be possible?
Original comment by [email protected]
on 11 Mar 2013 at 5:29
from badvpn.
I see that the SOCKS protocol allows connections by hostname (instead of IP
address), i.e. there is a single CONNECT command that makes the SOCKS server
resolve the hostname and connect to it, as a single operation.
However, it is not (even in theory) possible to exploit this from tun2socks,
because tun2socks works on the IP layer. When a connection it made, the IP
address must already have been resolved by the application that is connecting.
Even if tun2socks simulated a DNS server, it would be unable to use the above
mentioned SOCKS mechanism for this, because the SOCKS server doesn't return
resolved addresses (just checked rfc1928).
Original comment by [email protected]
on 11 Mar 2013 at 5:54
from badvpn.
So the options here are:
- If you are able to get access to a machine on the other side of the SOCKS,
run badvpn-udpgw there and tell tun2socks to use it.
- If your SOCKS server supports UDP, and you can reach a DNS server through
this, I may be able to implement SOCKS5 UDP support.
Original comment by [email protected]
on 11 Mar 2013 at 5:59
from badvpn.
Yes, I understand the issue now.
Thanks for considering this, I'll think about the best way forward from my end.
Original comment by [email protected]
on 11 Mar 2013 at 6:43
from badvpn.
Okay, nothing to be fixed here.
Original comment by [email protected]
on 11 Mar 2013 at 9:17
- Changed state: Invalid
from badvpn.
Related Issues (20)
- Need source IP passing to SOCKS HOT 15
- How to build tun2socks on Windows HOT 4
- How to build tun2socks on Windows HOT 1
- wont work on Windows Xp (faild to get ConnectEx) HOT 5
- Ignore certain ports? HOT 6
- calling net.ipv4.dhcp on tun device fails HOT 7
- cant write to file HOT 4
- [deleted issue]
- Feature request: UDP support
- Can not intilise tun2socks DeviceIoControl(TAP_IOCTL_GET_MTU) failed HOT 1
- tun2socks on Win7 doesn't work HOT 6
- Can not intilise tun2socks DeviceIoControl(TAP_IOCTL_GET_MTU) failed HOT 1
- How can i log the sites visited by badvpn HOT 1
- This is a little bit complicated. HOT 4
- No SOCKS authentication HOT 9
- Connects/routes perfectly but after 5 minutes connections revert to normal route? HOT 13
- Failed to parse arguments if <human_name_of_TUN_device> contains spaces HOT 2
- Where does the badvpn-udpgw process run at ? HOT 1
- tun2socks not picking up traffic straight after reboot HOT 19
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.