netbird/client/internal/proxy
Misha Bragin 2eeed55c18
Bind implementation (#779)
This PR adds supports for the WireGuard userspace implementation
using Bind interface from wireguard-go. 
The newly introduced ICEBind struct implements Bind with UDPMux-based
structs from pion/ice to handle hole punching using ICE.
The core implementation was taken from StdBind of wireguard-go.

The result is a single WireGuard port that is used for host and server reflexive candidates. 
Relay candidates are still handled separately and will be integrated in the following PRs.

ICEBind checks the incoming packets for being STUN or WireGuard ones
and routes them to UDPMux (to handle hole punching) or to WireGuard  respectively.
2023-04-13 17:00:01 +02:00
..
direct.go Bind implementation (#779) 2023-04-13 17:00:01 +02:00
dummy.go Support no-proxy mode connection mode (#245) 2022-03-01 14:07:33 +01:00
noproxy.go Bind implementation (#779) 2023-04-13 17:00:01 +02:00
proxy.go Bind implementation (#779) 2023-04-13 17:00:01 +02:00
wireguard.go Bind implementation (#779) 2023-04-13 17:00:01 +02:00