cunΔ«cu(1)
π cunΔ«cu(1) β the addresses page, bestie edition
Okay so this is the manual page for cunΔ«cu, and specifically it's all about the addresses subcommand. Grab a snack, we're deriving IPs from public keys and it's actually kind of iconic. π¦
β¨ NAME β¨
cunicu-addresses β derive IPv4 and IPv6 addresses from a WireGuard X25519 public key. That's the whole gig. She computes, she delivers. π
πΈ SYNOPSIS πΈ
cunicu addresses [flags]
π DESCRIPTION π
So the cunΔ«cu auto-configuration feature literally just derives and assigns IPv4 and IPv6 addresses based on the public key of the WireGuard interface. No cap. Your key is the whole personality, and the addresses are its outfit. π
This subcommand takes a WireGuard public key on standard input and prints out the calculated IP addresses on standard output. Feed her a key, she hands you addresses. That's it. That's the vibe. β¨
π₯ OPTIONS π₯
-h,--help[=false]β help foraddresses. Your little "what does this do again" button. π«Ά-m,--mask[=false]β print the CIDR mask. Turn this on when you want the slash-y part too. π
π OPTIONS INHERITED FROM PARENT COMMANDS π
These bad boys come from the parent command, so they're not even hers originally β but she's slaying with them anyway.
-q,--color="auto"β enable colorization of output, one of:auto,always,never. Default is"auto". Let her decide whether the rainbow is welcome, or force it either way. π-l,--log-file=[]β path of a file to write logs to. Default is the empty list[], i.e. nowhere yet. π-d,--log-level=[]β log level filter rule, one of:debug,info,warn,error,dpanic,panic, andfatal. Default is"info". Choose your chaos level responsibly. π
β EXAMPLE β
Here's the moment you've been waiting for β pipe a key straight in:
$ wg genkey | wg pubkey | cunicu addresses
fc2f:9a4d:777f:7a97:8197:4a5d:1d1b:ed79
10.237.119.127
Look at that. An IPv6 and an IPv4, served fresh off the pipeline. Ate and left no crumbs. π₯
π SEE ALSO π
cunicu(1)β the parent command, the main character. Go say hi. π
Heads up bestie: everything above is exactly what the page says, so don't go reading extra behaviour into it β if it's not written here, it's not documented here, fr fr. π
And that's a wrap! This page is from cunΔ«cu, source-able at https://github.com/cunicu/cunicu, and the date on it says Jan 1980 (iconic vintage, honestly). Mwah, go derive some addresses. ππ¦β¨
π¦ where this page comes from
- nixos 26.05: cunicu 0.12.0
- nixpkgs unstable: cunicu 0.12.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms