NFD-AUTOREG(1)

πŸ“¦
version 24.07 Β· 2 versions
, in nixos 26.05

πŸ‘‘ NFD-AUTOREG(1) β€” nfd-autoreg πŸ’…

okay so before we even start: this page lives in the Named Data Networking Forwarding Daemon (NFD) manual, and it's about nfd-autoreg, the automatic prefix registration daemon. she's lowkey the most helpful little background app you'll ever meet, fr fr. πŸ¦‹


✨ NAME ✨

nfd-autoreg β€” NFD automatic prefix registration daemon

like… she registers prefixes for you. automatically. main character energy honestly. πŸŽ€


🌸 SYNOPSIS 🌸

nfd-autoreg [-i|--prefix prefix]... [-a|--all-faces-prefix prefix]...
  [-b|--blacklist network]... [-w|--whitelist network]... [-c|--cost cost]
nfd-autoreg -h|--help
nfd-autoreg -V|--version

(and yes bestie, -a/--all-faces-prefix is in the synopsis up there β€” the OPTIONS section below just doesn't describe it, so I'm not gonna make stuff up about it πŸ™ˆ iykyk)


πŸ’– DESCRIPTION πŸ’–

nfd-autoreg is a daemon application that automatically registers the prefix(es) you specify when new on-demand faces get created. translation: when a new UDP face pops into existence as the result of an incoming packet, or when a new TCP face shows up as the result of an incoming connection β€” that's when she does her thing. no cap, she's just sitting there waiting to be useful. ⭐


πŸŽ€ OPTIONS πŸŽ€

  • -i <prefix>, --prefix <prefix> β€” the prefix that should get automatically registered when a new remote face is created ✨. you can repeat this multiple times to specify additional prefixes β€” stack 'em up, she can handle it.
  • -b <network>, --blacklist <network> β€” a blacklisted network, e.g. 192.168.2.32/30 or ::1/128 🚫. can be repeated multiple times to specify multiple blacklisted networks. the prefixes will be auto-registered only when the remote IP address is NOT inside the specified range(s), but IS inside the range defined by the whitelist(s), if any. default: none.
  • -w <network>, --whitelist <network> β€” a whitelisted network, e.g. 192.168.2.0/24 or ::1/128 βœ…. can be repeated multiple times to specify multiple whitelisted networks. the prefixes will be auto-registered only when the remote IP address is inside the specified range(s), excluding any blacklisted range(s). default: 0.0.0.0/0 and ::/0.
  • -c <cost>, --cost <cost> β€” the RIB cost to assign to auto-registered prefixes. if you don't specify it, the cost is set to 255. that's the default, bestie, she said so πŸ’….
  • -h, --help β€” print the help message and exit. your girl is helpful like that 🫢.
  • -V, --version β€” show version information and exit. slay.

πŸ¦‹ EXIT STATUS πŸ¦‹

  • 0 β€” no error. we love a clean exit ✨
  • 1 β€” an unspecified error occurred 😭 (vague, ominous, iconic)
  • 2 β€” malformed command line, e.g. invalid, missing, or unknown argument πŸ’€ (check your flags, bestie)
  • 4 β€” insufficient privileges πŸ™ˆ (you need more power for this one)

🌈 EXAMPLES 🌈

nfd-autoreg -i /app1/video -i /app2/pictures -b 10.0.0.0/8

auto-register two prefixes β€” /app1/video and /app2/pictures β€” for any newly created on-demand faces, except the ones that have their remote IP address in the 10.0.0.0/8 network. obsessed. two prefixes, one blacklist, zero stress πŸ”₯


Copyright Β© 2014-2024 Named Data Networking Project.


and that's the whole page, bestie 🫢 version 24.07, dated 1980-01-01, straight out of the Named Data Networking Forwarding Daemon (NFD) manual set β€” go forth and auto-register responsibly πŸ’…πŸŽ€

πŸ“¦ where this page comes from