1 # Netbird {#module-services-netbird}
3 ## Quickstart {#module-services-netbird-quickstart}
5 The absolute minimal configuration for the netbird daemon looks like this:
9 services.netbird.enable = true;
13 This will set up a netbird service listening on the port `51820` associated to the
16 It is strictly equivalent to setting:
20 services.netbird.tunnels.wt0.stateDir = "netbird";
24 The `enable` option is mainly kept for backward compatibility, as defining netbird
25 tunnels through the `tunnels` option is more expressive.
27 ## Multiple connections setup {#module-services-netbird-multiple-connections}
29 Using the `services.netbird.tunnels` option, it is also possible to define more than
30 one netbird service running at the same time.
32 The following configuration will start a netbird daemon using the interface `wt1` and
33 the port 51830. Its configuration file will then be located at `/var/lib/netbird-wt1/config.json`.
37 services.netbird.tunnels = {
45 To interact with it, you will need to specify the correct daemon address:
48 netbird --daemon-addr unix:///var/run/netbird-wt1/sock ...
51 The address will by default be `unix:///var/run/netbird-<name>`.
53 It is also possible to overwrite default options passed to the service, for
58 services.netbird.tunnels.wt1.environment = {
59 NB_DAEMON_ADDR = "unix:///var/run/toto.sock";
64 This will set the socket to interact with the netbird service to `/var/run/toto.sock`.