blob: 3ce898aa5943520341e34a5a23598564546e65e1 [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 Pesavento9f6a7d92020-10-06 15:21:48 -04007**nfd-autoreg** --prefix=</autoreg/prefix> [--prefix=</another/prefix>]...
hilata6ee6e072014-04-20 17:10:18 -05008
9Description
10-----------
11
Davide Pesavento59769b12017-11-12 23:52:06 -050012``nfd-autoreg`` is a daemon application that automatically registers the specified
13prefix(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 -030014the result of an incoming packet or when a new TCP face is created as the result of an
15incoming connection).
hilata6ee6e072014-04-20 17:10:18 -050016
17Options
18-------
19
hilata6ee6e072014-04-20 17:10:18 -050020``-i`` or ``--prefix``
21 Prefix that should be automatically registered when a new remote face is created.
Davide Pesavento59769b12017-11-12 23:52:06 -050022 Can be repeated multiple times to specify additional prefixes.
hilata6ee6e072014-04-20 17:10:18 -050023
24``-c`` or ``--cost``
Davide Pesavento59769b12017-11-12 23:52:06 -050025 RIB cost to be assigned to auto-registered prefixes. If not specified, default cost
hilata6ee6e072014-04-20 17:10:18 -050026 is set to 255.
27
28``-w`` or ``--whitelist``
29 Whitelisted network, e.g., 192.168.2.0/24 or ::1/128. Can be repeated multiple times
30 to specify multiple whitelisted networks.
31
32 Prefix(es) will be auto-registered only when remote IP address is within the specified
33 range(s), except blacklist ranges.
34
35 Default: 0.0.0.0/0 and ::/0
36
37``-b`` or ``--blacklist``
38 Blacklisted network, e.g., 192.168.2.32/30 or ::1/128. Can be repeated multiple times
39 to specify multiple blacklisted networks.
40
41 Prefix(es) will be auto-registered only when remote IP address in **NOT** within the
42 specified range(s), but is within the range define by the whitelist(s).
43
44 Default: none
45
Davide Pesavento59769b12017-11-12 23:52:06 -050046``-h`` or ``--help``
47 Print help message and exit.
48
49``-V`` or ``--version``
50 Show version information and exit.
51
52Exit status
53-----------
54
550: No error.
56
571: An unspecified error occurred.
58
592: Malformed command line, e.g., invalid, missing, or unknown argument.
60
614: Insufficient privileges.
62
hilata6ee6e072014-04-20 17:10:18 -050063Examples
64--------
65
Davide Pesavento59769b12017-11-12 23:52:06 -050066Auto-register two prefixes for any newly created on-demand face, except those that has
hilata6ee6e072014-04-20 17:10:18 -050067source IP address in ``10.0.0.0/8`` network::
68
69 nfd-autoreg --prefix=/app1/video --prefix=/app2/pictures -b 10.0.0.0/8