netbird/client/cmd
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
..
debug_unix.go [client] Set up signal to generate debug bundles (#3683) 2025-04-16 11:06:22 +02:00
debug_windows.go [client] Set up signal to generate debug bundles (#3683) 2025-04-16 11:06:22 +02:00
debug.go [client] Add debug for duration option to netbird ui (#3772) 2025-05-01 23:25:27 +02:00
down.go [client] Destory WG interface on down timeout (#2435) 2024-09-02 19:19:14 +02:00
forwarding_rules.go [client, management] Add port forwarding (#3275) 2025-03-09 16:06:43 +01:00
login_test.go [client] Refactor/iface pkg (#2646) 2024-10-02 18:24:22 +02:00
login.go [client] Add FreeBSD desktop client support to OAuth flow (#3822) 2025-05-14 19:52:02 +03:00
networks.go [client, management] Add new network concept (#3047) 2024-12-20 11:30:28 +01:00
pprof.go [client] Add pprof build tag (#2964) 2024-12-01 19:22:52 +01:00
root_test.go [client] Refactor/iface pkg (#2646) 2024-10-02 18:24:22 +02:00
root.go [client] Feature/lazy connection (#3379) 2025-05-21 11:12:28 +02:00
service_controller.go [client] Fix macos privacy warning when checking static info (#3496) 2025-04-25 14:41:57 +02:00
service_installer.go Save daemon address on service install (#2328) 2024-07-26 16:33:20 +02:00
service.go [client] Fix race conditions (#2869) 2024-11-11 14:55:10 +01:00
ssh.go [client] Allow ssh server on freebsd (#3170) 2025-01-14 12:43:13 +01:00
state.go [client] Add state handling cmdline options (#2821) 2024-12-03 16:07:18 +01:00
status_test.go [client] Add netbird ui improvements (#3222) 2025-02-21 16:29:21 +01:00
status.go [client] Feature/lazy connection (#3379) 2025-05-21 11:12:28 +02:00
system.go [client] Add disable system flags (#3153) 2025-01-07 20:38:18 +01:00
testutil_test.go [management] support custom domains per account (#3726) 2025-04-23 19:36:53 +02:00
trace.go [client] Add experimental support for userspace routing (#3134) 2025-02-07 14:11:53 +01:00
up_daemon_test.go [client] Allow setup keys to be provided in a file (#2337) 2024-08-09 17:32:09 +02:00
up.go [client] Feature/lazy connection (#3379) 2025-05-21 11:12:28 +02:00
version.go Add version info command to signal server (#739) 2023-03-15 07:54:51 +01:00