Directories
ยถ
| Path | Synopsis |
|---|---|
|
cmd/signer
command
|
|
|
embed
Package embed provides a way to embed the NetBird client directly into Go programs without requiring a separate NetBird client installation.
|
Package embed provides a way to embed the NetBird client directly into Go programs without requiring a separate NetBird client installation. |
|
firewall/firewalld
Package firewalld integrates with the firewalld daemon so NetBird can place its wg interface into firewalld's "trusted" zone.
|
Package firewalld integrates with the firewalld daemon so NetBird can place its wg interface into firewalld's "trusted" zone. |
|
firewall/uspfilter/log
Package log provides a high-performance, non-blocking logger for userspace networking
|
Package log provides a high-performance, non-blocking logger for userspace networking |
|
iface/device
Package iface provides wireguard network interface creation and management
|
Package iface provides wireguard network interface creation and management |
|
iface/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
iface/udpmux
Package udpmux provides a custom implementation of a UDP multiplexer that allows multiple logical ICE connections to share a single underlying UDP socket.
|
Package udpmux provides a custom implementation of a UDP multiplexer that allows multiple logical ICE connections to share a single underlying UDP socket. |
|
internal/acl/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
internal/dns
Package dns implements the client-side DNS stack: listener/service on the peer's tunnel address, handler chain that routes questions by domain and priority, and upstream resolvers that forward what remains to configured nameservers.
|
Package dns implements the client-side DNS stack: listener/service on the peer's tunnel address, handler chain that routes questions by domain and priority, and upstream resolvers that forward what remains to configured nameservers. |
|
internal/dns/resutil
Package resutil provides shared DNS resolution utilities
|
Package resutil provides shared DNS resolution utilities |
|
internal/lazyconn
Package lazyconn provides mechanisms for managing lazy connections, which activate on demand to optimize resource usage and establish connections efficiently.
|
Package lazyconn provides mechanisms for managing lazy connections, which activate on demand to optimize resource usage and establish connections efficiently. |
|
internal/portforward/pcp
Package pcp implements the Port Control Protocol (RFC 6887).
|
Package pcp implements the Port Control Protocol (RFC 6887). |
|
internal/stdnet
Package stdnet is an extension of the pion's stdnet.
|
Package stdnet is an extension of the pion's stdnet. |
|
internal/syncstore
Package syncstore stores the latest Management sync response (which carries the network map) for debug bundle generation.
|
Package syncstore stores the latest Management sync response (which carries the network map) for debug bundle generation. |
|
internal/updater
Package updater provides automatic update management for the NetBird client.
|
Package updater provides automatic update management for the NetBird client. |
|
internal/updater/installer
Package installer provides functionality for managing NetBird application updates and installations across Windows, macOS.
|
Package installer provides functionality for managing NetBird application updates and installations across Windows, macOS. |
|
internal/updater/reposign
Package reposign implements a cryptographic signing and verification system for NetBird software update artifacts.
|
Package reposign implements a cryptographic signing and verification system for NetBird software update artifacts. |
|
mdm
Package mdm reads MDM-managed configuration from platform-native sources (plist on macOS, registry on Windows, UserDefaults on iOS, RestrictionsManager on Android).
|
Package mdm reads MDM-managed configuration from platform-native sources (plist on macOS, registry on Windows, UserDefaults on iOS, RestrictionsManager on Android). |
|
ssh/server
Package server implements port forwarding for the SSH server.
|
Package server implements port forwarding for the SSH server. |
|
ui
command
|
|
|
ui/notifier
Package notifier sends desktop notifications.
|
Package notifier sends desktop notifications. |
|
wasm/cmd
command
|
|
|
wasm/internal/capture
Package capture bridges the util/capture package to JavaScript via syscall/js.
|
Package capture bridges the util/capture package to JavaScript via syscall/js. |
|
Package dns implement dns types and standard methods and functions to parse and normalize dns records and configuration
|
Package dns implement dns types and standard methods and functions to parse and normalize dns records and configuration |
|
flow
|
|
|
idp
|
|
|
dex
Package dex provides an embedded Dex OIDC identity provider.
|
Package dex provides an embedded Dex OIDC identity provider. |
|
sdk
Package sdk provides an embeddable SDK for the Dex OIDC identity provider.
|
Package sdk provides an embeddable SDK for the Dex OIDC identity provider. |
|
cmd/token
Package tokencmd provides reusable cobra commands for managing proxy access tokens.
|
Package tokencmd provides reusable cobra commands for managing proxy access tokens. |
|
internals/controllers/network_map
Package network_map is a generated GoMock package.
|
Package network_map is a generated GoMock package. |
|
internals/modules/agentnetwork/catalog
Package catalog defines the static set of Agent Network providers recognized by the management server.
|
Package catalog defines the static set of Agent Network providers recognized by the management server. |
|
internals/modules/agentnetwork/handlers
Package handlers serves the Agent Network HTTP API.
|
Package handlers serves the Agent Network HTTP API. |
|
internals/modules/agentnetwork/labelgen
Package labelgen produces DNS-safe Agent Network subdomain labels.
|
Package labelgen produces DNS-safe Agent Network subdomain labels. |
|
internals/modules/peers
Package peers is a generated GoMock package.
|
Package peers is a generated GoMock package. |
|
internals/modules/reverseproxy/proxy
Package proxy is a generated GoMock package.
|
Package proxy is a generated GoMock package. |
|
internals/modules/reverseproxy/service
Package service is a generated GoMock package.
|
Package service is a generated GoMock package. |
|
server/account
Package account is a generated GoMock package.
|
Package account is a generated GoMock package. |
|
server/affectedpeers
Package affectedpeers computes which peers' network maps a change touches, so only those peers are refreshed instead of the whole account.
|
Package affectedpeers computes which peers' network maps a change touches, so only those peers are refreshed instead of the whole account. |
|
server/idp/migration
Package migration provides utility functions for migrating from the external IdP solution in pre v0.62.0 to the new embedded IdP manager (Dex based), which is the default in v0.62.0 and later.
|
Package migration provides utility functions for migrating from the external IdP solution in pre v0.62.0 to the new embedded IdP manager (Dex based), which is the default in v0.62.0 and later. |
|
server/metrics
Package metrics gather anonymous information about the usage of NetBird management
|
Package metrics gather anonymous information about the usage of NetBird management |
|
server/permissions
Package permissions is a generated GoMock package.
|
Package permissions is a generated GoMock package. |
|
server/settings
Package settings is a generated GoMock package.
|
Package settings is a generated GoMock package. |
|
server/store
Package store is a generated GoMock package.
|
Package store is a generated GoMock package. |
|
Package proxy runs a NetBird proxy server.
|
Package proxy runs a NetBird proxy server. |
|
auth
Package auth contains exported proxy auth values.
|
Package auth contains exported proxy auth values. |
|
cmd/proxy
command
|
|
|
internal/certwatch
Package certwatch watches TLS certificate files on disk and provides a hot-reloading GetCertificate callback for tls.Config.
|
Package certwatch watches TLS certificate files on disk and provides a hot-reloading GetCertificate callback for tls.Config. |
|
internal/crowdsec
Package crowdsec provides a CrowdSec stream bouncer that maintains a local decision cache for IP reputation checks.
|
Package crowdsec provides a CrowdSec stream bouncer that maintains a local decision cache for IP reputation checks. |
|
internal/debug
Package debug provides HTTP debug endpoints and CLI client for the proxy server.
|
Package debug provides HTTP debug endpoints and CLI client for the proxy server. |
|
internal/flock
Package flock provides best-effort advisory file locking using flock(2).
|
Package flock provides best-effort advisory file locking using flock(2). |
|
internal/geolocation
Package geolocation provides IP-to-country lookups using MaxMind GeoLite2 databases.
|
Package geolocation provides IP-to-country lookups using MaxMind GeoLite2 databases. |
|
internal/grpc
Package grpc provides gRPC utilities for the proxy client.
|
Package grpc provides gRPC utilities for the proxy client. |
|
internal/health
Package health provides health probes for the proxy server.
|
Package health provides health probes for the proxy server. |
|
internal/k8s
Package k8s provides a lightweight Kubernetes API client for coordination Leases.
|
Package k8s provides a lightweight Kubernetes API client for coordination Leases. |
|
internal/llm
Package llm provides the shared LLM request and response parsing library consumed by proxy middleware.
|
Package llm provides the shared LLM request and response parsing library consumed by proxy middleware. |
|
internal/llm/pricing
Package pricing implements the embedded-default + override pricing table shared by middleware that converts LLM token usage into a USD cost estimate.
|
Package pricing implements the embedded-default + override pricing table shared by middleware that converts LLM token usage into a USD cost estimate. |
|
internal/middleware
Package middleware defines the per-target middleware chain that runs inside the reverse proxy hot path.
|
Package middleware defines the per-target middleware chain that runs inside the reverse proxy hot path. |
|
internal/middleware/bodytap
Package bodytap owns the framework-side body capture used by the middleware chain.
|
Package bodytap owns the framework-side body capture used by the middleware chain. |
|
internal/middleware/builtin
Package builtin holds the package-level middleware registry that concrete middleware packages register themselves into via init().
|
Package builtin holds the package-level middleware registry that concrete middleware packages register themselves into via init(). |
|
internal/middleware/builtin/cost_meter
Package cost_meter implements the SlotOnResponse middleware that converts token-usage metadata emitted by llm_response_parser into a per-request USD cost estimate.
|
Package cost_meter implements the SlotOnResponse middleware that converts token-usage metadata emitted by llm_response_parser into a per-request USD cost estimate. |
|
internal/middleware/builtin/llm_guardrail
Package llm_guardrail implements the SlotOnRequest middleware that enforces the per-target LLM guardrail policy: a model allowlist check and an opt-in prompt-capture step that may run a PII redactor before emitting the prompt into the metadata bag.
|
Package llm_guardrail implements the SlotOnRequest middleware that enforces the per-target LLM guardrail policy: a model allowlist check and an opt-in prompt-capture step that may run a PII redactor before emitting the prompt into the metadata bag. |
|
internal/middleware/builtin/llm_identity_inject
Package llm_identity_inject implements the SlotOnRequest middleware that stamps the caller's NetBird identity onto upstream LLM-gateway requests.
|
Package llm_identity_inject implements the SlotOnRequest middleware that stamps the caller's NetBird identity onto upstream LLM-gateway requests. |
|
internal/middleware/builtin/llm_limit_check
Package llm_limit_check is the SlotOnRequest middleware that asks management which agent-network policy "pays" for the current LLM request.
|
Package llm_limit_check is the SlotOnRequest middleware that asks management which agent-network policy "pays" for the current LLM request. |
|
internal/middleware/builtin/llm_limit_record
Package llm_limit_record is the SlotOnResponse middleware that posts the served request's token + cost deltas back to management so the per-(user, group, window) consumption counters tick.
|
Package llm_limit_record is the SlotOnResponse middleware that posts the served request's token + cost deltas back to management so the per-(user, group, window) consumption counters tick. |
|
internal/middleware/builtin/llm_request_parser
Package llm_request_parser implements the SlotOnRequest middleware that detects the LLM provider from the request URL, parses the JSON request body for model and streaming flags, and extracts the user prompt text.
|
Package llm_request_parser implements the SlotOnRequest middleware that detects the LLM provider from the request URL, parses the JSON request body for model and streaming flags, and extracts the user prompt text. |
|
internal/middleware/builtin/llm_response_parser
Package llm_response_parser implements the SlotOnResponse middleware that decodes OpenAI- and Anthropic-shaped LLM responses (buffered or streaming) and emits token usage and completion metadata.
|
Package llm_response_parser implements the SlotOnResponse middleware that decodes OpenAI- and Anthropic-shaped LLM responses (buffered or streaming) and emits token usage and completion metadata. |
|
internal/middleware/builtin/llm_router
Package llm_router implements the SlotOnRequest middleware that routes a request to an upstream LLM provider based on the model name emitted upstream by llm_request_parser.
|
Package llm_router implements the SlotOnRequest middleware that routes a request to an upstream LLM provider based on the model name emitted upstream by llm_request_parser. |
|
internal/restrict
Package restrict provides connection-level access control based on IP CIDR ranges and geolocation (country codes).
|
Package restrict provides connection-level access control based on IP CIDR ranges and geolocation (country codes). |
|
internal/types
Package types defines common types used across the proxy package.
|
Package types defines common types used across the proxy package. |
|
Package main
|
Package main |
|
testec2
command
|
|
|
shared
|
|
|
management/http/api
Package api provides primitives to interact with the openapi HTTP API.
|
Package api provides primitives to interact with the openapi HTTP API. |
|
netiputil
Package netiputil provides compact binary encoding for IP prefixes used in the management proto wire format.
|
Package netiputil provides compact binary encoding for IP prefixes used in the management proto wire format. |
|
relay/auth
Package auth manages the authentication process with the relay server.
|
Package auth manages the authentication process with the relay server. |
|
relay/client
Package client contains the implementation of the Relay client.
|
Package client contains the implementation of the Relay client. |
|
relay/messages
Package messages provides the message types that are used to communicate between the relay and the client.
|
Package messages provides the message types that are used to communicate between the relay and the client. |
|
relay/messages/address
Deprecated: This package is deprecated and will be removed in a future release.
|
Deprecated: This package is deprecated and will be removed in a future release. |
|
relay/messages/auth
Deprecated: This package is deprecated and will be removed in a future release.
|
Deprecated: This package is deprecated and will be removed in a future release. |
|
relay/tls
Package tls provides utilities for configuring and managing Transport Layer Security (TLS) in server and client environments, with a focus on QUIC protocol support and testing configurations.
|
Package tls provides utilities for configuring and managing Transport Layer Security (TLS) in server and client environments, with a focus on QUIC protocol support and testing configurations. |
|
example
command
|
|
|
Package stun provides an embedded STUN server for NAT traversal discovery.
|
Package stun provides an embedded STUN server for NAT traversal discovery. |
|
tools
|
|
|
idp-migrate
command
Package main provides a standalone CLI tool to migrate user IDs from an external IdP format to the embedded Dex IdP format used by NetBird >= v0.62.0.
|
Package main provides a standalone CLI tool to migrate user IDs from an external IdP format to the embedded Dex IdP format used by NetBird >= v0.62.0. |
|
capture
Package capture provides userspace packet capture in pcap format.
|
Package capture provides userspace packet capture in pcap format. |
|
netrelay
Package netrelay provides a bidirectional byte-copy helper for TCP-like connections with correct half-close propagation.
|
Package netrelay provides a bidirectional byte-copy helper for TCP-like connections with correct half-close propagation. |
Click to show internal directories.
Click to hide internal directories.

