blob: 1dd99c4e41813765213d6ab860072afd82dfd33f [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
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
Alexander Afanasyev536228b2014-08-19 01:45:30 -070075 ; Note:
76 ; Ethernet face support is currently broken in OSX with boost 1.56
77 ;
78 ; ; The ether section contains settings of Ethernet faces and channels.
79 ; ether
80 ; {
81 ; ; Ethernet multicast settings
82 ; ; NFD creates one Ethernet multicast face per NIC
83 ; mcast yes ; set to 'no' to disable Ethernet multicast, default 'yes'
84 ; mcast_group 01:00:5E:00:17:AA ; Ethernet multicast group
85 ; }
Alexander Afanasyev20cc34e2014-05-07 01:28:34 -070086}
87
88authorizations
89{
90 authorize
91 {
92 certfile certs/localhost_daemons_nrd.ndncert
93 privileges
94 {
95 faces
96 fib
97 strategy-choice
98 }
99 }
100
101 authorize
102 {
103 certfile any
104 privileges
105 {
106 faces
107 strategy-choice
108 }
109 }
110}
111
112rib
113{
114 ; The following localhost_security allows anyone to register routing entries in local RIB
115 localhost_security
116 {
117 trust-anchor
118 {
119 type any
120 }
121 }
122
123 ; localhop_security should be enabled when NFD runs on a hub.
124 ; "/localhop/nfd/fib" command prefix will be disabled when localhop_security section is missing.
125 ; localhop_security
126 ; {
127 ; ; This section defines the trust model for NFD RIB Management. It consists of rules and
128 ; ; trust-anchors, which are briefly defined in this file. For more information refer to
129 ; ; manpage of ndn-validator.conf:
130 ; ;
131 ; ; man ndn-validator.conf
132 ; ;
133 ; ; A trust-anchor is a pre-trusted certificate. This can be any certificate that is the
134 ; ; root of certification chain (e.g., NDN testbed root certificate) or an existing
135 ; ; default system certificate `default.ndncert`.
136 ; ;
137 ; ; A rule defines conditions a valid packet MUST have. A packet must satisfy one of the
138 ; ; rules defined here. A rule can be broken into two parts: matching & checking. A packet
139 ; ; will be matched against rules from the first to the last until a matched rule is
140 ; ; encountered. The matched rule will be used to check the packet. If a packet does not
141 ; ; match any rule, it will be treated as invalid. The matching part of a rule consists
142 ; ; of `for` and `filter` sections. They collectively define which packets can be checked
143 ; ; with this rule. `for` defines packet type (data or interest) and `filter` defines
144 ; ; conditions on other properties of a packet. Right now, you can only define conditions
145 ; ; on packet name, and you can only specify ONLY ONE filter for packet name. The
146 ; ; checking part of a rule consists of `checker`, which defines the conditions that a
147 ; ; VALID packet MUST have. See comments in checker section for more details.
148 ;
149 ; rule
150 ; {
151 ; id "NRD Prefix Registration Command Rule"
152 ; for interest ; rule for Interests (to validate CommandInterests)
153 ; filter
154 ; {
155 ; type name ; condition on interest name (w/o signature)
156 ; regex ^[<localhop><localhost>]<nfd><rib>[<register><unregister>]<>{3}$
157 ; }
158 ; checker
159 ; {
160 ; type customized
161 ; sig-type rsa-sha256 ; interest must have a rsa-sha256 signature
162 ; key-locator
163 ; {
164 ; type name ; key locator must be the certificate name of the
165 ; ; signing key
166 ; regex ^[^<KEY>]*<KEY><>*<ksk-.*><ID-CERT>$
167 ; }
168 ; }
169 ; }
170 ; rule
171 ; {
172 ; id "NDN Testbed Hierarchy Rule"
173 ; for data ; rule for Data (to validate NDN certificates)
174 ; filter
175 ; {
176 ; type name ; condition on data name
177 ; regex ^[^<KEY>]*<KEY><>*<ksk-.*><ID-CERT><>$
178 ; }
179 ; checker
180 ; {
181 ; type hierarchical ; the certificate name of the signing key and
182 ; ; the data name must follow the hierarchical model
183 ; sig-type rsa-sha256 ; data must have a rsa-sha256 signature
184 ; }
185 ; }
186 ; trust-anchor
187 ; {
188 ; type file
189 ; file-name keys/default.ndncert ; the file name, by default this file should be placed in the
190 ; ; same folder as this config file.
191 ; }
192 ; ; trust-anchor ; Can be repeated multiple times to specify multiple trust anchors
193 ; ; {
194 ; ; type file
195 ; ; file-name keys/ndn-testbed.ndncert
196 ; ; }
197 ; }
198}