netbird/client/iface
Zoltan Papp daa8380df9
[client] Feature/lazy connection (#3379)
With the lazy connection feature, the peer will connect to target peers on-demand. The trigger can be any IP traffic.

This feature can be enabled with the NB_ENABLE_EXPERIMENTAL_LAZY_CONN environment variable.

When the engine receives a network map, it binds a free UDP port for every remote peer, and the system configures WireGuard endpoints for these ports. When traffic appears on a UDP socket, the system removes this listener and starts the peer connection procedure immediately.

Key changes
Fix slow netbird status -d command
Move from engine.go file to conn_mgr.go the peer connection related code
Refactor the iface interface usage and moved interface file next to the engine code
Add new command line flag and UI option to enable feature
The peer.Conn struct is reusable after it has been closed.
Change connection states
Connection states
Idle: The peer is not attempting to establish a connection. This typically means it's in a lazy state or the remote peer is expired.

Connecting: The peer is actively trying to establish a connection. This occurs when the peer has entered an active state and is continuously attempting to reach the remote peer.

Connected: A successful peer-to-peer connection has been established and communication is active.
2025-05-21 11:12:28 +02:00
..
bind [client] Remove logrus writer assignment in pion logging (#3684) 2025-04-15 18:15:52 +03:00
configurer [client] Feature/lazy connection (#3379) 2025-05-21 11:12:28 +02:00
device [client] Feature/lazy connection (#3379) 2025-05-21 11:12:28 +02:00
freebsd [client] Fix freebsd default routes (#3230) 2025-01-23 16:57:11 +01:00
mocks [client,management] add netflow support to client and update management (#3414) 2025-03-20 17:05:48 +01:00
netstack [client Fix env var typo (#3415) 2025-03-03 17:22:51 +01:00
wgaddr [client] Ignore candidates that are part of the the wireguard subnet (#3472) 2025-03-10 13:59:21 +01:00
wgproxy [client] Fix TURN-Relay switch (#3456) 2025-03-07 12:00:25 +01:00
device_android.go [client] Ignore candidates that are part of the the wireguard subnet (#3472) 2025-03-10 13:59:21 +01:00
device.go [client] Ignore candidates that are part of the the wireguard subnet (#3472) 2025-03-10 13:59:21 +01:00
iface_create_android.go [client] Eliminate UDP proxy in user-space mode (#2712) 2024-10-22 20:53:14 +02:00
iface_create_darwin.go [client] Eliminate UDP proxy in user-space mode (#2712) 2024-10-22 20:53:14 +02:00
iface_create.go [client] Eliminate UDP proxy in user-space mode (#2712) 2024-10-22 20:53:14 +02:00
iface_destroy_bsd.go [client] Refactor/iface pkg (#2646) 2024-10-02 18:24:22 +02:00
iface_destroy_linux.go [client] Refactor/iface pkg (#2646) 2024-10-02 18:24:22 +02:00
iface_destroy_mobile.go [client] Refactor/iface pkg (#2646) 2024-10-02 18:24:22 +02:00
iface_destroy_windows.go [client] Refactor/iface pkg (#2646) 2024-10-02 18:24:22 +02:00
iface_guid_windows.go [client] Eliminate UDP proxy in user-space mode (#2712) 2024-10-22 20:53:14 +02:00
iface_new_android.go [client] Ignore candidates that are part of the the wireguard subnet (#3472) 2025-03-10 13:59:21 +01:00
iface_new_darwin.go [client] Ignore candidates that are part of the the wireguard subnet (#3472) 2025-03-10 13:59:21 +01:00
iface_new_ios.go [client] Ignore candidates that are part of the the wireguard subnet (#3472) 2025-03-10 13:59:21 +01:00
iface_new_unix.go [client] Ignore candidates that are part of the the wireguard subnet (#3472) 2025-03-10 13:59:21 +01:00
iface_new_windows.go [client] Ignore candidates that are part of the the wireguard subnet (#3472) 2025-03-10 13:59:21 +01:00
iface_test.go [client] Replace string to netip.Prefix (#3362) 2025-02-24 15:51:43 +01:00
iface.go [client] Feature/lazy connection (#3379) 2025-05-21 11:12:28 +02:00