blob: 05f0316cf3500017d1825ccccdec8ac4d3230686 [file] [log] [blame]
Alexander Afanasyev469cbcd2014-05-08 01:25:11 -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
39; The face_system section defines what faces and channels are created.
40face_system
41{
42 ; The unix section contains settings of UNIX stream faces and channels.
43 unix
44 {
45 listen yes ; set to 'no' to disable UNIX stream listener, default 'yes'
46 path /var/run/nfd.sock ; UNIX stream listener path
47 }
48
49 ; The tcp section contains settings of TCP faces and channels.
50 tcp
51 {
52 listen yes ; set to 'no' to disable TCP listener, default 'yes'
53 port 6363 ; TCP listener port number
54 enable_v4 yes ; set to 'no' to disable IPv4 channels, default 'yes'
55 enable_v6 yes ; set to 'no' to disable IPv6 channels, default 'yes'
56 }
57
58 ; The udp section contains settings of UDP faces and channels.
59 ; UDP channel is always listening; delete udp section to disable UDP
60 udp
61 {
62 port 6363 ; UDP unicast port number
63 enable_v4 yes ; set to 'no' to disable IPv4 channels, default 'yes'
64 enable_v6 yes ; set to 'no' to disable IPv6 channels, default 'yes'
65 idle_timeout 600 ; idle time (seconds) before closing a UDP unicast face
66 keep_alive_interval 25; interval (seconds) between keep-alive refreshes
67
68 ; UDP multicast settings
69 ; NFD creates one UDP multicast face per NIC
70 mcast yes ; set to 'no' to disable UDP multicast, default 'yes'
71 mcast_port 56363 ; UDP multicast port number
72 mcast_group 224.0.23.170 ; UDP multicast group (IPv4 only)
73 }
74
75 ; The ether section contains settings of Ethernet faces and channels.
76 ether
77 {
78 ; Ethernet multicast settings
79 ; NFD creates one Ethernet multicast face per NIC
80 mcast yes ; set to 'no' to disable Ethernet multicast, default 'yes'
81 mcast_group 01:00:5E:00:17:AA ; Ethernet multicast group
82 }
83}
84
85authorizations
86{
87 authorize
88 {
89 certfile certs/localhost_daemons_nrd.ndncert
90 privileges
91 {
92 faces
93 fib
94 strategy-choice
95 }
96 }
97
98 authorize
99 {
100 certfile any
101 privileges
102 {
103 faces
104 strategy-choice
105 }
106 }
107}
108
109rib
110{
111 ; The following localhost_security allows anyone to register routing entries in local RIB
112 localhost_security
113 {
114 trust-anchor
115 {
116 type any
117 }
118 }
119
120 ; localhop_security should be enabled when NFD runs on a hub.
121 ; "/localhop/nfd/fib" command prefix will be disabled when localhop_security section is missing.
122 ; localhop_security
123 ; {
124 ; ; This section defines the trust model for NFD RIB Management. It consists of rules and
125 ; ; trust-anchors, which are briefly defined in this file. For more information refer to
126 ; ; manpage of ndn-validator.conf:
127 ; ;
128 ; ; man ndn-validator.conf
129 ; ;
130 ; ; A trust-anchor is a pre-trusted certificate. This can be any certificate that is the
131 ; ; root of certification chain (e.g., NDN testbed root certificate) or an existing
132 ; ; default system certificate `default.ndncert`.
133 ; ;
134 ; ; A rule defines conditions a valid packet MUST have. A packet must satisfy one of the
135 ; ; rules defined here. A rule can be broken into two parts: matching & checking. A packet
136 ; ; will be matched against rules from the first to the last until a matched rule is
137 ; ; encountered. The matched rule will be used to check the packet. If a packet does not
138 ; ; match any rule, it will be treated as invalid. The matching part of a rule consists
139 ; ; of `for` and `filter` sections. They collectively define which packets can be checked
140 ; ; with this rule. `for` defines packet type (data or interest) and `filter` defines
141 ; ; conditions on other properties of a packet. Right now, you can only define conditions
142 ; ; on packet name, and you can only specify ONLY ONE filter for packet name. The
143 ; ; checking part of a rule consists of `checker`, which defines the conditions that a
144 ; ; VALID packet MUST have. See comments in checker section for more details.
145 ;
146 ; rule
147 ; {
148 ; id "NRD Prefix Registration Command Rule"
149 ; for interest ; rule for Interests (to validate CommandInterests)
150 ; filter
151 ; {
152 ; type name ; condition on interest name (w/o signature)
153 ; regex ^[<localhop><localhost>]<nfd><rib>[<register><unregister>]<>{3}$
154 ; }
155 ; checker
156 ; {
157 ; type customized
158 ; sig-type rsa-sha256 ; interest must have a rsa-sha256 signature
159 ; key-locator
160 ; {
161 ; type name ; key locator must be the certificate name of the
162 ; ; signing key
163 ; regex ^[^<KEY>]*<KEY><>*<ksk-.*><ID-CERT>$
164 ; }
165 ; }
166 ; }
167 ; rule
168 ; {
169 ; id "NDN Testbed Hierarchy Rule"
170 ; for data ; rule for Data (to validate NDN certificates)
171 ; filter
172 ; {
173 ; type name ; condition on data name
174 ; regex ^[^<KEY>]*<KEY><>*<ksk-.*><ID-CERT><>$
175 ; }
176 ; checker
177 ; {
178 ; type hierarchical ; the certificate name of the signing key and
179 ; ; the data name must follow the hierarchical model
180 ; sig-type rsa-sha256 ; data must have a rsa-sha256 signature
181 ; }
182 ; }
183 ; trust-anchor
184 ; {
185 ; type file
186 ; file-name keys/default.ndncert ; the file name, by default this file should be placed in the
187 ; ; same folder as this config file.
188 ; }
189 ; ; trust-anchor ; Can be repeated multiple times to specify multiple trust anchors
190 ; ; {
191 ; ; type file
192 ; ; file-name keys/ndn-testbed.ndncert
193 ; ; }
194 ; }
195}