Another &derpnet example - tunneling TCP traffic over derp relay:

  • similar to SSH tunneling, but just using DerpNet api
  • server connects to some TCP port on localhost and forwards all traffic from it to derpnet_proxy remote
  • client listens on local TCP port and forwards all traffic to derpnet_proxy remote
  • example is limited to only single connection to server, but same idea can be extended to support multiple connections
    https://github.com/mmozeiko/derpnet#derpnet_proxy
View full feed

Single header file library to provide encrypted communication between peers.

It uses Tailscale DERP relays for low bandwidth communications. This allows exchanging data between peers even when both of them are behind NAT.

Communications are end-to-end encrypted. Nobody, even relays, cannot read messages unless they have your PRIVATE key. You only need to share PUBLIC key to others - which other users will use to send messages to you.

Library is available on GitHub: https://github.com/mmozeiko/derpnet