blob: ecc8e3c7262ab6ae50453d492932fba7490f1b4c [file] [log] [blame]
Alexander Afanasyev20cc34e2014-05-07 01:28:34 -07001; The general section contains settings of nfd process.
2; general
3; {
4; }
5
6log
7{
8 ; default_level specifies the logging level for modules
9 ; that are not explicitly named. All debugging levels
10 ; listed above the selected value are enabled.
11 ;
12 ; Valid values:
13 ;
14 ; NONE ; no messages
15 ; ERROR ; error messages
16 ; WARN ; warning messages
17 ; INFO ; informational messages (default)
18 ; DEBUG ; debugging messages
19 ; TRACE ; trace messages (most verbose)
20 ; ALL ; all messages
21
22 default_level INFO
23
24 ; You may override default_level by assigning a logging level
25 ; to the desired module name. Module names can be found in two ways:
26 ;
27 ; Run:
28 ; nfd --modules
29 ; nrd --modules
30 ;
31 ; Or look for NFD_LOG_INIT(<module name>) statements in .cpp files
32 ;
33 ; Example module-level settings:
34 ;
35 ; FibManager DEBUG
36 ; Forwarder INFO
37}
38
Alexander Afanasyevf9312c32014-12-18 14:23:41 -080039; The tables section configures the CS, PIT, FIB, Strategy Choice, and Measurements
40tables
41{
42
43 ; ContentStore size limit in number of packets
44 ; default is 65536, about 500MB with 8KB packet size
45 cs_max_packets 65536
46
47 ; Set the forwarding strategy for the specified prefixes:
48 ; <prefix> <strategy>
49 strategy_choice
50 {
51 / /localhost/nfd/strategy/best-route
52 /localhost /localhost/nfd/strategy/broadcast
53 /localhost/nfd /localhost/nfd/strategy/best-route
54 /ndn/broadcast /localhost/nfd/strategy/broadcast
55 }
56}
57
Alexander Afanasyev20cc34e2014-05-07 01:28:34 -070058; The face_system section defines what faces and channels are created.
59face_system
60{
61 ; The unix section contains settings of UNIX stream faces and channels.
62 unix
63 {
Alexander Afanasyev20cc34e2014-05-07 01:28:34 -070064 path /var/run/nfd.sock ; UNIX stream listener path
65 }
66
67 ; The tcp section contains settings of TCP faces and channels.
68 tcp
69 {
70 listen yes ; set to 'no' to disable TCP listener, default 'yes'
71 port 6363 ; TCP listener port number
72 enable_v4 yes ; set to 'no' to disable IPv4 channels, default 'yes'
73 enable_v6 yes ; set to 'no' to disable IPv6 channels, default 'yes'
74 }
75
76 ; The udp section contains settings of UDP faces and channels.
77 ; UDP channel is always listening; delete udp section to disable UDP
78 udp
79 {
80 port 6363 ; UDP unicast port number
81 enable_v4 yes ; set to 'no' to disable IPv4 channels, default 'yes'
82 enable_v6 yes ; set to 'no' to disable IPv6 channels, default 'yes'
83 idle_timeout 600 ; idle time (seconds) before closing a UDP unicast face
84 keep_alive_interval 25; interval (seconds) between keep-alive refreshes
85
86 ; UDP multicast settings
87 ; NFD creates one UDP multicast face per NIC
88 mcast yes ; set to 'no' to disable UDP multicast, default 'yes'
89 mcast_port 56363 ; UDP multicast port number
90 mcast_group 224.0.23.170 ; UDP multicast group (IPv4 only)
91 }
92
Alexander Afanasyev536228b2014-08-19 01:45:30 -070093 ; Note:
94 ; Ethernet face support is currently broken in OSX with boost 1.56
95 ;
96 ; ; The ether section contains settings of Ethernet faces and channels.
97 ; ether
98 ; {
99 ; ; Ethernet multicast settings
100 ; ; NFD creates one Ethernet multicast face per NIC
101 ; mcast yes ; set to 'no' to disable Ethernet multicast, default 'yes'
102 ; mcast_group 01:00:5E:00:17:AA ; Ethernet multicast group
103 ; }
Alexander Afanasyev20cc34e2014-05-07 01:28:34 -0700104}
105
106authorizations
107{
108 authorize
109 {
110 certfile certs/localhost_daemons_nrd.ndncert
111 privileges
112 {
113 faces
114 fib
115 strategy-choice
116 }
117 }
118
119 authorize
120 {
121 certfile any
122 privileges
123 {
124 faces
125 strategy-choice
126 }
127 }
128}
129
130rib
131{
132 ; The following localhost_security allows anyone to register routing entries in local RIB
133 localhost_security
134 {
135 trust-anchor
136 {
137 type any
138 }
139 }
140
141 ; localhop_security should be enabled when NFD runs on a hub.
142 ; "/localhop/nfd/fib" command prefix will be disabled when localhop_security section is missing.
143 ; localhop_security
144 ; {
145 ; ; This section defines the trust model for NFD RIB Management. It consists of rules and
146 ; ; trust-anchors, which are briefly defined in this file. For more information refer to
147 ; ; manpage of ndn-validator.conf:
148 ; ;
149 ; ; man ndn-validator.conf
150 ; ;
151 ; ; A trust-anchor is a pre-trusted certificate. This can be any certificate that is the
152 ; ; root of certification chain (e.g., NDN testbed root certificate) or an existing
153 ; ; default system certificate `default.ndncert`.
154 ; ;
155 ; ; A rule defines conditions a valid packet MUST have. A packet must satisfy one of the
156 ; ; rules defined here. A rule can be broken into two parts: matching & checking. A packet
157 ; ; will be matched against rules from the first to the last until a matched rule is
158 ; ; encountered. The matched rule will be used to check the packet. If a packet does not
159 ; ; match any rule, it will be treated as invalid. The matching part of a rule consists
160 ; ; of `for` and `filter` sections. They collectively define which packets can be checked
161 ; ; with this rule. `for` defines packet type (data or interest) and `filter` defines
162 ; ; conditions on other properties of a packet. Right now, you can only define conditions
163 ; ; on packet name, and you can only specify ONLY ONE filter for packet name. The
164 ; ; checking part of a rule consists of `checker`, which defines the conditions that a
165 ; ; VALID packet MUST have. See comments in checker section for more details.
166 ;
167 ; rule
168 ; {
169 ; id "NRD Prefix Registration Command Rule"
170 ; for interest ; rule for Interests (to validate CommandInterests)
171 ; filter
172 ; {
173 ; type name ; condition on interest name (w/o signature)
174 ; regex ^[<localhop><localhost>]<nfd><rib>[<register><unregister>]<>{3}$
175 ; }
176 ; checker
177 ; {
178 ; type customized
179 ; sig-type rsa-sha256 ; interest must have a rsa-sha256 signature
180 ; key-locator
181 ; {
182 ; type name ; key locator must be the certificate name of the
183 ; ; signing key
184 ; regex ^[^<KEY>]*<KEY><>*<ksk-.*><ID-CERT>$
185 ; }
186 ; }
187 ; }
188 ; rule
189 ; {
190 ; id "NDN Testbed Hierarchy Rule"
191 ; for data ; rule for Data (to validate NDN certificates)
192 ; filter
193 ; {
194 ; type name ; condition on data name
195 ; regex ^[^<KEY>]*<KEY><>*<ksk-.*><ID-CERT><>$
196 ; }
197 ; checker
198 ; {
199 ; type hierarchical ; the certificate name of the signing key and
200 ; ; the data name must follow the hierarchical model
201 ; sig-type rsa-sha256 ; data must have a rsa-sha256 signature
202 ; }
203 ; }
204 ; trust-anchor
205 ; {
206 ; type file
207 ; file-name keys/default.ndncert ; the file name, by default this file should be placed in the
208 ; ; same folder as this config file.
209 ; }
210 ; ; trust-anchor ; Can be repeated multiple times to specify multiple trust anchors
211 ; ; {
212 ; ; type file
213 ; ; file-name keys/ndn-testbed.ndncert
214 ; ; }
215 ; }
Alexander Afanasyevf9312c32014-12-18 14:23:41 -0800216
217 remote_register
218 {
219 cost 15 ; forwarding cost of prefix registered on remote router
220 timeout 10000 ; timeout (in milliseconds) of remote prefix registration command
221 retry 0 ; maximum number of retries for each remote prefix registration command
222
223 refresh_interval 300 ; interval (in seconds) before refreshing the registration
224 ; This setting should be less than face_system.udp.idle_time,
225 ; so that the face is kept alive on the remote router.
226 }
Alexander Afanasyev20cc34e2014-05-07 01:28:34 -0700227}