blob: d2fb3031bb0e63a5e15e62b5e60e0ec650a0fed3 [file] [log] [blame]
hilata6ee6e072014-04-20 17:10:18 -05001ndn-autoreg
2===========
3
4Usage
5-----
6
7::
8
9 nfd-autoreg --prefix=</autoreg/prefix> [--prefix=</another/prefix>] ...
10
11Description
12-----------
13
Niv Sardi5e8755c2016-12-13 14:11:53 -030014``autoreg-server`` 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
16the 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
22``-h`` or ``--help``
23 Produce help message.
24
25``-i`` or ``--prefix``
26 Prefix that should be automatically registered when a new remote face is created.
27 Can be repeated multiple to specify additional prefixes.
28
29``-c`` or ``--cost``
30 RIB cost to be assigned to auto-registered prefixes. if not specified, default cost
31 is set to 255.
32
33``-w`` or ``--whitelist``
34 Whitelisted network, e.g., 192.168.2.0/24 or ::1/128. Can be repeated multiple times
35 to specify multiple whitelisted networks.
36
37 Prefix(es) will be auto-registered only when remote IP address is within the specified
38 range(s), except blacklist ranges.
39
40 Default: 0.0.0.0/0 and ::/0
41
42``-b`` or ``--blacklist``
43 Blacklisted network, e.g., 192.168.2.32/30 or ::1/128. Can be repeated multiple times
44 to specify multiple blacklisted networks.
45
46 Prefix(es) will be auto-registered only when remote IP address in **NOT** within the
47 specified range(s), but is within the range define by the whitelist(s).
48
49 Default: none
50
51Examples
52--------
53
54Auto-register two prefixes for any newly created on-demand Face, except those that has
55source IP address in ``10.0.0.0/8`` network::
56
57 nfd-autoreg --prefix=/app1/video --prefix=/app2/pictures -b 10.0.0.0/8