Derive IPv4 and IPv6 addresses from a WireGuard X25519 public key
cunīcu auto-configuration feature derives and assigns IPv4 and IPv6 addresses based on the public key of the WireGuard interface. This sub-command accepts a WireGuard public key on the standard input and prints out the calculated IP addresses on the standard output.
cunicu addresses [flags]
$ wg genkey | wg pubkey | cunicu addresses
-h, --help help for addresses
-m, --mask Print CIDR mask
Options inherited from parent commands
-q, --color string Enable colorization of output (one of: auto, always, never) (default "auto")
-l, --log-file stringArray path of a file to write logs to
-d, --log-level stringArray log level filter rule (one of: debug, info, warn, error, dpanic, panic, and fatal) (default "info")
- cunicu - cunīcu is a user-space daemon managing WireGuard® interfaces to establish peer-to-peer connections in harsh network environments.