cunΔ«cu(1)

πŸ“¦ version 0.12.0, in nixos 26.05, nixpkgs unstable

πŸ’… 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 for addresses. 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, and fatal. 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