blob: 58390d67827eaa2b52f877f3abd54c6225a2247d [file] [log] [blame]
Davide Pesavento59769b12017-11-12 23:52:06 -05001nfd-autoreg
hilata6ee6e072014-04-20 17:10:18 -05002===========
3
Davide Pesavento9f6a7d92020-10-06 15:21:48 -04004Synopsis
5--------
hilata6ee6e072014-04-20 17:10:18 -05006
Davide Pesavento543b1522024-06-25 17:00:32 -04007| **nfd-autoreg** [**-i**\|\ **\--prefix** *prefix*]... [**-a**\|\ **\--all-faces-prefix** *prefix*]...
8| [**-b**\|\ **\--blacklist** *network*]... [**-w**\|\ **\--whitelist** *network*]... \
9 [**-c**\|\ **\--cost** *cost*]
10| **nfd-autoreg** **-h**\|\ **\--help**
11| **nfd-autoreg** **-V**\|\ **\--version**
hilata6ee6e072014-04-20 17:10:18 -050012
13Description
14-----------
15
Davide Pesavento543b1522024-06-25 17:00:32 -040016:program:`nfd-autoreg` is a daemon application that automatically registers the specified
Davide Pesavento59769b12017-11-12 23:52:06 -050017prefix(es) when new on-demand faces are created (i.e., when a new UDP face is created as
Niv Sardi5e8755c2016-12-13 14:11:53 -030018the result of an incoming packet or when a new TCP face is created as the result of an
19incoming connection).
hilata6ee6e072014-04-20 17:10:18 -050020
21Options
22-------
23
Davide Pesavento543b1522024-06-25 17:00:32 -040024.. option:: -i <prefix>, --prefix <prefix>
hilata6ee6e072014-04-20 17:10:18 -050025
Davide Pesavento543b1522024-06-25 17:00:32 -040026 Prefix that should be automatically registered when a new remote face is created.
27 Can be repeated multiple times to specify additional prefixes.
hilata6ee6e072014-04-20 17:10:18 -050028
Davide Pesavento543b1522024-06-25 17:00:32 -040029.. option:: -b <network>, --blacklist <network>
hilata6ee6e072014-04-20 17:10:18 -050030
Davide Pesavento543b1522024-06-25 17:00:32 -040031 Blacklisted network, e.g., 192.168.2.32/30 or ::1/128. Can be repeated multiple times
32 to specify multiple blacklisted networks.
hilata6ee6e072014-04-20 17:10:18 -050033
Davide Pesavento543b1522024-06-25 17:00:32 -040034 The prefixes will be auto-registered only when the remote IP address is NOT inside the
35 specified range(s), but is inside the range defined by the whitelist(s), if any.
hilata6ee6e072014-04-20 17:10:18 -050036
Davide Pesavento543b1522024-06-25 17:00:32 -040037 Default: none.
hilata6ee6e072014-04-20 17:10:18 -050038
Davide Pesavento543b1522024-06-25 17:00:32 -040039.. option:: -w <network>, --whitelist <network>
hilata6ee6e072014-04-20 17:10:18 -050040
Davide Pesavento543b1522024-06-25 17:00:32 -040041 Whitelisted network, e.g., 192.168.2.0/24 or ::1/128. Can be repeated multiple times
42 to specify multiple whitelisted networks.
hilata6ee6e072014-04-20 17:10:18 -050043
Davide Pesavento543b1522024-06-25 17:00:32 -040044 The prefixes will be auto-registered only when the remote IP address is inside the
45 specified range(s), excluding any blacklisted range(s).
Davide Pesavento59769b12017-11-12 23:52:06 -050046
Davide Pesavento543b1522024-06-25 17:00:32 -040047 Default: 0.0.0.0/0 and ::/0.
Davide Pesavento59769b12017-11-12 23:52:06 -050048
Davide Pesavento543b1522024-06-25 17:00:32 -040049.. option:: -c <cost>, --cost <cost>
50
51 RIB cost to assign to auto-registered prefixes. If not specified, the cost is set to 255.
52
53.. option:: -h, --help
54
55 Print help message and exit.
56
57.. option:: -V, --version
58
59 Show version information and exit.
60
61Exit Status
Davide Pesavento59769b12017-11-12 23:52:06 -050062-----------
63
Davide Pesavento543b1522024-06-25 17:00:32 -0400640
65 No error.
Davide Pesavento59769b12017-11-12 23:52:06 -050066
Davide Pesavento543b1522024-06-25 17:00:32 -0400671
68 An unspecified error occurred.
Davide Pesavento59769b12017-11-12 23:52:06 -050069
Davide Pesavento543b1522024-06-25 17:00:32 -0400702
71 Malformed command line, e.g., invalid, missing, or unknown argument.
Davide Pesavento59769b12017-11-12 23:52:06 -050072
Davide Pesavento543b1522024-06-25 17:00:32 -0400734
74 Insufficient privileges.
Davide Pesavento59769b12017-11-12 23:52:06 -050075
hilata6ee6e072014-04-20 17:10:18 -050076Examples
77--------
78
Davide Pesavento543b1522024-06-25 17:00:32 -040079``nfd-autoreg -i /app1/video -i /app2/pictures -b 10.0.0.0/8``
80 Auto-register two prefixes for any newly created on-demand faces, except those that
81 have their remote IP address in the 10.0.0.0/8 network.