Giter Site home page Giter Site logo

UDP hole punching support in Bifrost about lnpbps HOT 7 OPEN

lnp-bp avatar lnp-bp commented on August 15, 2024 1
UDP hole punching support in Bifrost

from lnpbps.

Comments (7)

Kixunil avatar Kixunil commented on August 15, 2024 3

I know a bit about this topic, tried it a few years ago. I'm going to compare it to Tor:

  • UDP hole punching was specifically designed to bypass NAT and some stupid firewalls (inteligent firewalls could conceivably detect it), Tor hidden services were specifically designed for anonymity, so bypassing NAT/firewalls seems to be a coincidence rather than primary intention.
  • A node using UDP hole punching is not anonymous
  • Communication using UDP hole punching is not slowed down as much as Tor. I don't remember the specifics, but the UDP packet headers should be the only overhead.
  • UDP hole punching does not provide any encryption or authentication on its own, Tor does.

To say it differently, if both features were implemented with some scheme to encrypt UDP traffic, then the guidelines for node operators would say this:

  • Use UDP hole punching if you don't care about anonymity and need speed
  • Use Tor if you require anonymity and don't need speed
  • If you need both anonymity and speed, you're out of luck

from lnpbps.

Kixunil avatar Kixunil commented on August 15, 2024 2

According to https://www.whonix.org/wiki/Transporting_UDP_Tunnels_over_Tor UDP over Tor is not natively possible and even with VPN tricks it greatly degrades performance.

Correct, UDP hole punching is useful for people who don't need anonymity and need to bypass NAT/firewall.

FWIW these two are not related, they just happen to be used for bypassing NATs.

from lnpbps.

St333p avatar St333p commented on August 15, 2024

So if I understand correctly UDP hole punching would make sense in the context of a node (say raspberry) talking to a client (say android smartphone) while both are in a home network?!? In this case no anonymity required and speed is very well appreciated.

Then I can see it might make sense to have it implemented, although I agree with the general statement that I heard a few times during the call: "we use Tor if we can".

from lnpbps.

Kixunil avatar Kixunil commented on August 15, 2024

@St333p hole punching isn't needed at all if both devices are in the same network.

from lnpbps.

St333p avatar St333p commented on August 15, 2024

Never mind, you're right. Sorry for the dumb comment.

from lnpbps.

Kixunil avatar Kixunil commented on August 15, 2024

No problem. :)

from lnpbps.

dr-orlovsky avatar dr-orlovsky commented on August 15, 2024

@Kixunil am I correct that you can't use UDP with Tor (without some wired stuff)? If yes, in cases when you need UDP with NAT/firewall passing and do not need anonymity for your IP, you will benefit from UDP hole punching

from lnpbps.

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.