blob: 33e94bddf35c03b9472878ecdddc1a5cd39f9a5a [file] [log] [blame]
Davide Pesavento59769b12017-11-12 23:52:06 -05001nfd-autoreg
hilata6ee6e072014-04-20 17:10:18 -05002===========
3
4Usage
5-----
6
7::
8
9 nfd-autoreg --prefix=</autoreg/prefix> [--prefix=</another/prefix>] ...
10
11Description
12-----------
13
Davide Pesavento59769b12017-11-12 23:52:06 -050014``nfd-autoreg`` is a daemon application that automatically registers the specified
15prefix(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 -030016the result of an incoming packet or when a new TCP face is created as the result of an
17incoming connection).
hilata6ee6e072014-04-20 17:10:18 -050018
19Options
20-------
21
hilata6ee6e072014-04-20 17:10:18 -050022``-i`` or ``--prefix``
23 Prefix that should be automatically registered when a new remote face is created.
Davide Pesavento59769b12017-11-12 23:52:06 -050024 Can be repeated multiple times to specify additional prefixes.
hilata6ee6e072014-04-20 17:10:18 -050025
26``-c`` or ``--cost``
Davide Pesavento59769b12017-11-12 23:52:06 -050027 RIB cost to be assigned to auto-registered prefixes. If not specified, default cost
hilata6ee6e072014-04-20 17:10:18 -050028 is set to 255.
29
30``-w`` or ``--whitelist``
31 Whitelisted network, e.g., 192.168.2.0/24 or ::1/128. Can be repeated multiple times
32 to specify multiple whitelisted networks.
33
34 Prefix(es) will be auto-registered only when remote IP address is within the specified
35 range(s), except blacklist ranges.
36
37 Default: 0.0.0.0/0 and ::/0
38
39``-b`` or ``--blacklist``
40 Blacklisted network, e.g., 192.168.2.32/30 or ::1/128. Can be repeated multiple times
41 to specify multiple blacklisted networks.
42
43 Prefix(es) will be auto-registered only when remote IP address in **NOT** within the
44 specified range(s), but is within the range define by the whitelist(s).
45
46 Default: none
47
Davide Pesavento59769b12017-11-12 23:52:06 -050048``-h`` or ``--help``
49 Print help message and exit.
50
51``-V`` or ``--version``
52 Show version information and exit.
53
54Exit status
55-----------
56
570: No error.
58
591: An unspecified error occurred.
60
612: Malformed command line, e.g., invalid, missing, or unknown argument.
62
634: Insufficient privileges.
64
hilata6ee6e072014-04-20 17:10:18 -050065Examples
66--------
67
Davide Pesavento59769b12017-11-12 23:52:06 -050068Auto-register two prefixes for any newly created on-demand face, except those that has
hilata6ee6e072014-04-20 17:10:18 -050069source IP address in ``10.0.0.0/8`` network::
70
71 nfd-autoreg --prefix=/app1/video --prefix=/app2/pictures -b 10.0.0.0/8