hilata | 6ee6e07 | 2014-04-20 17:10:18 -0500 | [diff] [blame] | 1 | ndn-autoreg |
| 2 | =========== |
| 3 | |
| 4 | Usage |
| 5 | ----- |
| 6 | |
| 7 | :: |
| 8 | |
| 9 | nfd-autoreg --prefix=</autoreg/prefix> [--prefix=</another/prefix>] ... |
| 10 | |
| 11 | Description |
| 12 | ----------- |
| 13 | |
Niv Sardi | 5e8755c | 2016-12-13 14:11:53 -0300 | [diff] [blame^] | 14 | ``autoreg-server`` is a daemon application that automatically registers the specified |
| 15 | prefix(es) when new on-demand Faces are created (i.e., when a new UDP face is created as |
| 16 | the result of an incoming packet or when a new TCP face is created as the result of an |
| 17 | incoming connection). |
hilata | 6ee6e07 | 2014-04-20 17:10:18 -0500 | [diff] [blame] | 18 | |
| 19 | Options |
| 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 | |
| 51 | Examples |
| 52 | -------- |
| 53 | |
| 54 | Auto-register two prefixes for any newly created on-demand Face, except those that has |
| 55 | source 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 |