blob: 1eb56de0b428f995c06d431e10476afefa34e2c7 [file] [log] [blame]
ashu01b62f72015-03-12 15:16:11 -05001; the general section contains all the general settings for router
2
3$GENERAL_SECTION
4
5; the neighbors section contains the configuration for router's neighbors and hello's behavior
6
7$NEIGHBORS_SECTION
8
9; the hyperbolic section contains the configuration settings of enabling a router to calculate
10; routing table using [hyperbolic routing table calculation](http://arxiv.org/abs/0805.1266) method
11
12$HYPERBOLIC_SECTION
13
14
15; the fib section is used to configure fib entry's type to ndn FIB updated by NLSR
16
17$FIB_SECTION
18
19; the advertising section contains the configuration settings of the name prefixes
20; hosted by this router
21
22$ADVERTISING_SECTION
23
24security
25{
26 validator
27 {
28 rule
29 {
30 id "NSLR Hello Rule"
31 for data
32 filter
33 {
34 type name
35 regex ^[^<NLSR><INFO>]*<NLSR><INFO><><>$
36 }
37 checker
38 {
39 type customized
40 sig-type rsa-sha256
41 key-locator
42 {
43 type name
44 hyper-relation
45 {
46 k-regex ^([^<KEY><NLSR>]*)<NLSR><KEY><ksk-.*><ID-CERT>$
47 k-expand \\1
48 h-relation equal
49 p-regex ^([^<NLSR><INFO>]*)<NLSR><INFO><><>$
50 p-expand \\1
51 }
52 }
53 }
54 }
55
56 rule
57 {
58 id "NSLR LSA Rule"
59 for data
60 filter
61 {
62 type name
63 regex ^[^<NLSR><LSA>]*<NLSR><LSA>
64 }
65 checker
66 {
67 type customized
68 sig-type rsa-sha256
69 key-locator
70 {
71 type name
72 hyper-relation
73 {
74 k-regex ^([^<KEY><NLSR>]*)<NLSR><KEY><ksk-.*><ID-CERT>$
75 k-expand \\1
76 h-relation equal
77 p-regex ^([^<NLSR><LSA>]*)<NLSR><LSA>(<>*)<><><>$
78 p-expand \\1\\2
79 }
80 }
81 }
82 }
83
84 rule
85 {
86 id "NSLR Hierarchy Exception Rule"
87 for data
88 filter
89 {
90 type name
91 regex ^[^<KEY><%C1.Router>]*<%C1.Router>[^<KEY><NLSR>]*<KEY><ksk-.*><ID-CERT><>$
92 }
93 checker
94 {
95 type customized
96 sig-type rsa-sha256
97 key-locator
98 {
99 type name
100 hyper-relation
101 {
102 k-regex ^([^<KEY><%C1.Operator>]*)<%C1.Operator>[^<KEY>]*<KEY><ksk-.*><ID-CERT>$
103 k-expand \\1
104 h-relation equal
105 p-regex ^([^<KEY><%C1.Router>]*)<%C1.Router>[^<KEY>]*<KEY><ksk-.*><ID-CERT><>$
106 p-expand \\1
107 }
108 }
109 }
110 }
111
112 rule
113 {
114 id "NSLR Hierarchical Rule"
115 for data
116 filter
117 {
118 type name
119 regex ^[^<KEY>]*<KEY><ksk-.*><ID-CERT><>$
120 }
121 checker
122 {
123 type hierarchical
124 sig-type rsa-sha256
125 }
126 }
127
128 trust-anchor
129 {
130 type any
131 file-name "root.cert"
132 }
133 }
Vince Lehmanc264d442015-05-01 14:41:50 -0500134
135 prefix-update-validator
136 {
137 rule
138 {
139 id "NLSR ControlCommand Rule"
140 for interest
141 filter
142 {
143 type name
144 regex ^<localhost><nlsr><prefix-update>[<advertise><withdraw>]<>$
145 }
146 checker
147 {
148 type customized
149 sig-type rsa-sha256
150 key-locator
151 {
152 type name
153 regex ^([^<KEY><%C1.Operator>]*)<%C1.Operator>[^<KEY>]*<KEY><ksk-.*><ID-CERT>$
154 }
155 }
156 }
157
158 rule
159 {
160 id "NLSR Hierarchy Rule"
161 for data
162 filter
163 {
164 type name
165 regex ^[^<KEY>]*<KEY><ksk-.*><ID-CERT><>$
166 }
167 checker
168 {
169 type hierarchical
170 sig-type rsa-sha256
171 }
172 }
173
174 trust-anchor
175 {
176 type any
177 file-name "site.cert"
178 }
179 }
180
ashu01b62f72015-03-12 15:16:11 -0500181 ; cert-to-publish "root.cert" ; optional, a file containing the root certificate
182 ; Only the router that is designated to publish the root cert
183 ; needs to specify this
184
185 ; cert-to-publish "site.cert" ; optional, a file containing the site certificate
186 ; Only the router that is designated to publish the site cert
187 ; needs to specify this
188
189 ; cert-to-publish "operator.cert" ; optional, a file containing the operator certificate
190 ; Only the router that is designated to publish the operator
191 ; cert needs to specify this
192
193 ; cert-to-publish "router.cert" ; required, a file containing the router certificate.
194}