netclient

command module
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

README

Automated WireGuard® Management Client

This is the client for Netmaker networks. To learn more about Netmaker, see here.

Installation

https://docs.netmaker.io/docs/client-installation/netclient#installation

Usage

https://docs.netmaker.io/docs/client-installation/netclient#managing-netclient__joining-a-network

Join a network

With Token: netclient join -t <token>

With User (Basic Auth): netclient join -n <net name> -u <username> -s api.<netmaker domain>

With User (SSO): netclient join -n <net name> -s api.<netmaker domain>

Interface Exclusion

Netclient excludes certain interfaces from being advertised to peers. By default, the following patterns are excluded: docker, netmaker, flannel, cni, and bridge networks.

You can customize excluded interfaces using the NETCLIENT_EXCLUDE_INTERFACES environment variable:

NETCLIENT_EXCLUDE_INTERFACES=flannel,cni,calico,weave
  • Comma-separated list of interface name patterns (substring match)
  • Default (if not set): flannel,cni

Commands

Netmaker's netclient agent and CLI to manage wireguard networks

Join, leave, connect and disconnect from netmaker wireguard networks.

Usage:
  netclient [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  connect     connect to a netmaker network
  daemon      netclient daemon
  disconnect  disconnet from a network
  help        Help about any command
  install     install netclient binary and daemon
  join        join a network
  leave       leave a network
  list        display list of netmaker networks
  pull        get the latest node configuration
  uninstall   uninstall netclient
  version     Displays version information

Flags:
      --config string   use specified config file
  -h, --help            help for netclient
  -v, --verbosity int   set logging verbosity 0-4

Use "netclient [command] --help" for more information about a command.

When the Netmaker control plane enables TCP uplink:

  • Gateway (tcp_proxy_enabled): netclient listens with TLS for framed WireGuard uplinks (tcp_proxy_listen_port, default 443). Uses a local self-signed cert under the netclient config directory.
  • Assigned node (use_tcp_uplink): netclient dials the gateway’s tcp_proxy_endpoint from peer updates and carries WireGuard ciphertext over TCP/TLS instead of UDP to that gateway.

On Linux this forces userspace WireGuard so traffic can be diverted via conn.Bind. Windows TCP uplink Bind is not supported yet.

Disclaimer

WireGuard is a registered trademark of Jason A. Donenfeld.

License

Netclient's source code and all artifacts in this repository are freely available under the Apache 2.0 License, which can be found here: LICENSE.txt.

Documentation

Overview

Copyright © 2022 Netmaker Team <info@netmaker.io>

Directories

Path Synopsis
Package auth provides netclient auth logic with server
Package auth provides netclient auth logic with server
Package config provides functions for reading the config.
Package config provides functions for reading the config.
Package daemon provide functions to control execution of deamons
Package daemon provide functions to control execution of deamons
dns
internal
proxyuplink
Package proxyuplink adapts netclient to gravitl/proxy WSS uplink.
Package proxyuplink adapts netclient to gravitl/proxy WSS uplink.
Package local provide functions for setting routes
Package local provide functions for setting routes
Package ncutils contains utility functions
Package ncutils contains utility functions
Package posture collects stable MDM device identifiers and queries the server-side posture status endpoint.
Package posture collects stable MDM device identifiers and queries the server-side posture status endpoint.
Package wireguard manipulates wireguard interfaces
Package wireguard manipulates wireguard interfaces

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL