News for hackers. Stuff that matters.
Re:Show HN: connet – A P2P reverse proxy with NAT traversal by Ingon on Thursday January 02, 2025 @01:20PM (#42577078)
Thanks for taking a look!

Initially, I did think I'll be using wireguard. What stopped me at the time (as far as I remember) was that I couldn't just use the protocol part of the official golang library (e.g. https://git.zx2c4.com/wireguard-go/about/). Another thought I had at the time, was that I would had to use the user-space wireguard implementation, which everyone claimed was slow (I should have probably looked into how slow it is).

Another thought I had was to use the noise protocol (which wiregruard also uses) for security and building on top of that. Which meant I would have to implement most of what QUIC (and wireguard) does to make UDP a reliable protocol - retries, ordering, streams, etc. So, eventually, I just settled on using QUIC for the first version - later we can always add more ways for peers to connect to each other.

Re:Show HN: connet – A P2P reverse proxy with NAT traversal by quie on Thursday January 02, 2025 @06:45PM (#42580360)
wireguard does not do any retries, ordering or streams, see the whitepaper and the code which are marvels of engineering.
Re:Show HN: connet – A P2P reverse proxy with NAT traversal by Ingon on Thursday January 02, 2025 @06:52PM (#42580414)
thanks for correcting me, its been a while since I've looked at the whitepaper