Giter VIP home page Giter VIP logo

Comments (7)

Un1Gfn avatar Un1Gfn commented on August 17, 2024 1

shadowsocks/badvpn fork supports UDP directly

Checkout --enable-udprelay in tun2socks.c

It seems that direct UDP support is now possible w/ --socks5-udp parameter

You should build the current git version instead of 1.999.130, which is from 2015

from badvpn.

ambrop72 avatar ambrop72 commented on August 17, 2024

Hi,
Tun2socks can support UDP through an udpgw daemon running on a remote host (on the remote side of the SOCKS). Please see details here, https://code.google.com/archive/p/badvpn/wikis/tun2socks.wiki
Currently tun2socks does not support UDP directly through SOCKS (the UDP feature of SOCKS). But note that the utility of such a feature depends on the SOCKS server anyway (e.g. Tor's doesn't support it).

from badvpn.

ambrop72 avatar ambrop72 commented on August 17, 2024

Also I should emphasize that tun2socks was not intended for bypassing firewalls or censoring systems, and I have no plans to add any features specifically for that. It is just a way to transparently forward traffic through a SOCKS server, not much more.

from badvpn.

TommyJerryMairo avatar TommyJerryMairo commented on August 17, 2024

Ok, tks.

from badvpn.

chitujsq avatar chitujsq commented on August 17, 2024

@ambrop72
"Currently tun2socks does not support UDP directly through SOCKS (the UDP feature of SOCKS). But note that the utility of such a feature depends on the SOCKS server anyway"

if I use dante(support UDP) as the socks server, did I need udpgw daemon running on the same server? can you tell me the flow of forward udp by useing udpgw, I guess as follow :
tun--->tun2socks---->UdpGwClient---->SocksUdpGwClient-- ->socks_client--->socks_server--->udpgw ?

from badvpn.

ambrop72 avatar ambrop72 commented on August 17, 2024

The udpgw mechanism works such that tun2socks establishes a TCP connection to udpgw, through the SOCKS server. Udpgw sends and receives UDP packets using normal OS network access.

This is how it works, but I can't say what is the right solution for you. It may not be useful for your case in the first place (if you have no reasonable place to deploy udpgw).

from badvpn.

edsburke avatar edsburke commented on August 17, 2024

shadowsocks/badvpn fork supports UDP directly

Checkout --enable-udprelay in tun2socks.c

It seems that direct UDP support is now possible w/ --socks5-udp parameter

You should build the current git version instead of 1.999.130, which is from 2015

Can anyone explain the --socks5-udp is official feature to let tun2socks to proxify UDP traffic? Thanks.

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.