netbird/client/internal/routemanager
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
..
client.go Use the conn state of peer on proper way (#717) 2023-03-03 19:49:18 +01:00
common_linux_test.go Add routing peer support (#441) 2022-09-05 09:06:35 +02:00
firewall_linux.go Add incoming routing rules (#486) 2022-09-30 14:39:15 +05:00
firewall_nonlinux.go Update go version (#603) 2022-12-04 13:22:21 +01:00
firewall.go Add routing peer support (#441) 2022-09-05 09:06:35 +02:00
iptables_linux_test.go Add incoming routing rules (#486) 2022-09-30 14:39:15 +05:00
iptables_linux.go Add incoming routing rules (#486) 2022-09-30 14:39:15 +05:00
manager_android.go Mobile (#735) 2023-03-17 10:37:27 +01:00
manager_nonandroid.go Mobile (#735) 2023-03-17 10:37:27 +01:00
manager_test.go Bind implementation (#779) 2023-04-13 17:00:01 +02:00
manager.go Mobile (#735) 2023-03-17 10:37:27 +01:00
mock.go Add routing peer support (#441) 2022-09-05 09:06:35 +02:00
nftables_linux_test.go Add incoming routing rules (#486) 2022-09-30 14:39:15 +05:00
nftables_linux.go Add incoming routing rules (#486) 2022-09-30 14:39:15 +05:00
server.go Mobile prerefactor (#680) 2023-02-13 18:34:56 +01:00
systemops_linux.go Update go version (#603) 2022-12-04 13:22:21 +01:00
systemops_nonlinux.go Fix typo - "netforwad" -> "netforward" (#647) 2023-01-08 23:51:08 +01:00
systemops_test.go Bind implementation (#779) 2023-04-13 17:00:01 +02:00
systemops.go Return gateway address if not nil (#533) 2022-10-31 11:54:34 +01:00