Code Monkey home page Code Monkey logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
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)

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.