ashu | 01b62f7 | 2015-03-12 15:16:11 -0500 | [diff] [blame^] | 1 | ; 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 | |
| 24 | security |
| 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 | } |
| 134 | ; cert-to-publish "root.cert" ; optional, a file containing the root certificate |
| 135 | ; Only the router that is designated to publish the root cert |
| 136 | ; needs to specify this |
| 137 | |
| 138 | ; cert-to-publish "site.cert" ; optional, a file containing the site certificate |
| 139 | ; Only the router that is designated to publish the site cert |
| 140 | ; needs to specify this |
| 141 | |
| 142 | ; cert-to-publish "operator.cert" ; optional, a file containing the operator certificate |
| 143 | ; Only the router that is designated to publish the operator |
| 144 | ; cert needs to specify this |
| 145 | |
| 146 | ; cert-to-publish "router.cert" ; required, a file containing the router certificate. |
| 147 | } |