Zvikomborero VIncent Zvikaramba | 99abb02 | 2016-08-18 22:24:11 -0400 | [diff] [blame] | 1 | # |
| 2 | # OLSR.org routing daemon config file |
| 3 | # |
| 4 | # Lines starting with a # are discarded |
| 5 | # |
| 6 | |
| 7 | # Debug level(0-9) |
| 8 | # If set to 0 the daemon runs in the background |
| 9 | |
| 10 | DebugLevel 1 |
| 11 | |
| 12 | # IP version to use (4 or 6) |
| 13 | |
| 14 | IpVersion 4 |
| 15 | |
| 16 | # FIBMetric ("flat", "correct", or "approx") |
| 17 | # Just use "flat", the others don't work very well |
| 18 | |
| 19 | FIBMetric "flat" |
| 20 | |
| 21 | # Clear the screen each time the internal state changes |
| 22 | |
| 23 | ClearScreen yes |
| 24 | |
| 25 | # HNA IPv4 routes |
| 26 | # syntax: netaddr netmask |
| 27 | # Example Internet gateway: |
| 28 | # 0.0.0.0 0.0.0.0 |
| 29 | |
| 30 | Hna4 |
| 31 | { |
| 32 | # Internet gateway |
| 33 | # 0.0.0.0 0.0.0.0 |
| 34 | |
| 35 | # specific small networks reachable through this node |
| 36 | # 15.15.0.0 255.255.255.0 |
| 37 | # 15.16.0.0 255.255.255.0 |
| 38 | } |
| 39 | |
| 40 | # HNA IPv6 routes |
| 41 | # syntax: netaddr prefix |
| 42 | # Example Internet gateway: |
| 43 | #Hna6 |
| 44 | #{ |
| 45 | # Internet gateway |
| 46 | # :: 0 |
| 47 | |
| 48 | # specific small networks reachable through this node |
| 49 | # fec0:2200:106:0:0:0:0:0 48 |
| 50 | #} |
| 51 | |
| 52 | # Specify the routing Table olsr uses |
| 53 | # currently only implemented in linux versions, (bsd planned) |
| 54 | # useful for policyrouting, to ensure that olsr can use |
| 55 | # the table a policy rule with priority 65536 is auto-installed |
| 56 | # by olsrd if an value < 253 ist specified! |
| 57 | # value defaults to 253 (main table) |
| 58 | # valid values are 1 .. 254 |
| 59 | # (freifunkfirmware uses 111 for its policy routing) |
| 60 | |
| 61 | RtTable 255 |
| 62 | |
| 63 | #you may specify another table for the default route only |
| 64 | #if used no policy route will get auto-installed for this table, |
| 65 | #but the default route gets also inserted into table 254 |
| 66 | #(the last table used in default linux policy routing) |
| 67 | #valid tables are the same as for RtTable |
| 68 | |
| 69 | RtTableDefault 255 |
| 70 | |
| 71 | # Specify the proto tag to be used for routes olsr inserts into kernel |
| 72 | # currently only implemented for linux, defaults to 0 which gets replaced |
| 73 | # by an OS-specific default value under linux 3 (BOOT) gets used as default |
| 74 | # (for backward compatibility) |
| 75 | # valid values under linux are 1 .. 254 |
| 76 | # 1 gets remapped by olsrd to 0 UNSPECIFIED (1 is reserved for ICMP redirects) |
| 77 | # 2 KERNEL routes (not very wise to use) |
| 78 | # 3 BOOT (should in fact not be used by routing daemons) |
| 79 | # 4 STATIC |
| 80 | # 8 .. 15 various routing daemons (gated, zebra, bird, & co) |
| 81 | |
| 82 | # RtProto 111 |
| 83 | |
| 84 | # For testing purposes it may be nice to use another port for olsrd |
| 85 | # for using another port than the IANA assigned one |
| 86 | # for a production network, there should be a good reason!! |
| 87 | # defaults to 698 (IANA assigned olsr-port) |
| 88 | # valid values are 698 or > 1000 |
| 89 | |
| 90 | # OlsrPort 698 |
| 91 | |
| 92 | # Should olsrd keep on running even if there are |
| 93 | # no interfaces available? This is a good idea |
| 94 | # for a PCMCIA/USB hotswap environment. |
| 95 | # "yes" OR "no" |
| 96 | |
| 97 | AllowNoInt yes |
| 98 | |
| 99 | # TOS(type of service) value for |
| 100 | # the IP header of control traffic. |
| 101 | # If not set it will default to 16 |
| 102 | |
| 103 | #TosValue 16 |
| 104 | |
| 105 | # The fixed willingness to use(0-7) |
| 106 | # If not set willingness will be calculated |
| 107 | # dynammically based on battery/power status |
| 108 | |
| 109 | #Willingness 4 |
| 110 | |
| 111 | # Allow processes like the GUI front-end |
| 112 | # to connect to the daemon. |
| 113 | |
| 114 | IpcConnect |
| 115 | { |
| 116 | # Determines how many simultaneously |
| 117 | # IPC connections that will be allowed |
| 118 | # Setting this to 0 disables IPC |
| 119 | |
| 120 | MaxConnections 0 |
| 121 | |
| 122 | # By default only 127.0.0.1 is allowed |
| 123 | # to connect. Here allowed hosts can |
| 124 | # be added |
| 125 | |
| 126 | Host 127.0.0.1 |
| 127 | # Host 10.0.0.5 |
| 128 | |
| 129 | # Specify entire net-ranges that are |
| 130 | # allowed to connect |
| 131 | |
| 132 | # Net 192.168.1.0 255.255.255.0 |
| 133 | } |
| 134 | |
| 135 | # Link quality level |
| 136 | # 0 = do not use link quality |
| 137 | # 1 = use link quality for MPR selection |
| 138 | # 2 = use link quality for MPR selection and routing |
| 139 | # Defaults to 2 |
| 140 | |
| 141 | #LinkQualityLevel 2 |
| 142 | |
| 143 | # Link quality algorithm (only for lq level 1 or 2) |
| 144 | # Defaults to "etx_ff" for fixpoint based etx algorithm |
| 145 | |
| 146 | LinkQualityAlgorithm "ett_ss" |
| 147 | |
| 148 | # Link quality aging factor |
| 149 | # Defaults to 0.05, smaller values mean larger LQ window size |
| 150 | # Link quality aging does only apply to lq level 1 and 2 |
| 151 | |
| 152 | LinkQualityAging 0.05 |
| 153 | |
| 154 | # Fisheye mechanism for TC messages 0=off, 1=on |
| 155 | # default is 1 |
| 156 | |
| 157 | LinkQualityFishEye 0 |
| 158 | |
| 159 | # Wether to use hysteresis or not |
| 160 | # Hysteresis adds more robustness to the |
| 161 | # link sensing but delays neighbor registration. |
| 162 | # Used by default. 'yes' or 'no' |
| 163 | |
| 164 | UseHysteresis no |
| 165 | |
| 166 | # Hysteresis parameters |
| 167 | # Do not alter these unless you know |
| 168 | # what you are doing! |
| 169 | # Set to auto by default. Allowed |
| 170 | # values are floating point values |
| 171 | # in the interval 0,1 |
| 172 | # THR_LOW must always be lower than |
| 173 | # THR_HIGH!! |
| 174 | |
| 175 | #HystScaling 0.50 |
| 176 | #HystThrHigh 0.80 |
| 177 | #HystThrLow 0.30 |
| 178 | |
| 179 | |
| 180 | # Polling rate in seconds(float). |
| 181 | # Default value 0.05 sec |
| 182 | |
| 183 | Pollrate 0.05 |
| 184 | |
| 185 | # Interval to poll network interfaces for configuration |
| 186 | # changes. Defaults to 2.5 seconds |
| 187 | |
| 188 | NicChgsPollInt 2.0 |
| 189 | |
| 190 | |
| 191 | # TC redundancy |
| 192 | # Specifies how much neighbor info should |
| 193 | # be sent in TC messages |
| 194 | # Possible values are: |
| 195 | # 0 - only send MPR selectors |
| 196 | # 1 - send MPR selectors and MPRs |
| 197 | # 2 - send all neighbors |
| 198 | # |
| 199 | # defaults to 0 |
| 200 | |
| 201 | TcRedundancy 2 |
| 202 | |
| 203 | # |
| 204 | # NatThreshold |
| 205 | # |
| 206 | # (currently this is only in the freifunk firmware) |
| 207 | # If the NAT-Endpoint (the preferred 0/0 HNA |
| 208 | # emitting node) is to be changed, the ETX value of the current 0/0 is |
| 209 | # compared to the new one. If the ETX difference is too small, the default |
| 210 | # route isn't changed. defaults to 1.0 |
| 211 | # The configured route gets multiplied by the threshold, |
| 212 | # before comparing which route is better |
| 213 | |
| 214 | # NatThreshold 0.9 |
| 215 | |
| 216 | # |
| 217 | # MPR coverage |
| 218 | # Specifies how many MPRs a node should |
| 219 | # try select to reach every 2 hop neighbor |
| 220 | # |
| 221 | # Can be set to any integer >0 |
| 222 | # |
| 223 | # defaults to 1 |
| 224 | |
| 225 | MprCoverage 3 |
| 226 | |
| 227 | |
| 228 | # Olsrd plugins to load |
| 229 | # This must be the absolute path to the file |
| 230 | # or the loader will use the following scheme: |
| 231 | # - Try the paths in the LD_LIBRARY_PATH |
| 232 | # environment variable. |
| 233 | # - The list of libraries cached in /etc/ld.so.cache |
| 234 | # - /lib, followed by /usr/lib |
| 235 | # |
| 236 | # the examples in this list are for linux, so check if the plugin is |
| 237 | # available if you use windows/BSD. |
| 238 | |
| 239 | # LoadPlugin "olsrd_httpinfo.dll" |
| 240 | # LoadPlugin "/system/lib/olsrd_httpinfo.so.0.1" |
| 241 | #{ |
| 242 | # port number the httpinfo plugin will be listening, default 1978 |
| 243 | # PlParam "port" "8000" |
| 244 | |
| 245 | # ip address that can access the plugin, use "0.0.0.0" |
| 246 | # to allow everyone |
| 247 | # PlParam "Host" "127.0.0.1" |
| 248 | # PlParam "Host" "80.23.53.22" |
| 249 | |
| 250 | # networks that can access the plugin (ip/netmask) |
| 251 | # careful with 0.0.0.0/0, makes (ddos) attacks poss. |
| 252 | # PlParam "Net" "0.0.0.0 0.0.0.0" |
| 253 | # PlParam "Net" "104.0.0.0 255.255.0.0" |
| 254 | # PlParam "Net" "192.168.0.0 255.255.0.0" |
| 255 | # |
| 256 | |
| 257 | # LoadPlugin "olsrd_txtinfo.dll" |
| 258 | #LoadPlugin "/system/lib/olsrd_txtinfo.so.0.1" |
| 259 | #{ |
| 260 | # port number the txtinfo plugin will be listening, default 2006 |
| 261 | # PlParam "port" "81" |
| 262 | # ip address that can access the plugin, use "0.0.0.0" |
| 263 | # to allow everyone |
| 264 | # PlParam "Accept" "127.0.0.1" |
| 265 | #} |
| 266 | |
| 267 | #LoadPlugin "olsrd_secure.so.0.3" |
| 268 | #{ |
| 269 | # define source of keyfile for secure plugin |
| 270 | # see lib/secure/README_SECURE for more information |
| 271 | |
| 272 | # PlParam "Keyfile" "/etc/olsr-keyfile.txt" |
| 273 | #} |
| 274 | |
| 275 | #LoadPlugin "olsrd_dyn_gw.so.0.1" |
| 276 | #{ |
| 277 | # Here parameters are set to be sent to the |
| 278 | # plugin. Theese are on the form "key" "value". |
| 279 | # Parameters ofcause, differs from plugin to plugin. |
| 280 | # Consult the documentation of your plugin for details. |
| 281 | |
| 282 | # Example: dyn_gw params |
| 283 | |
| 284 | # how often to check for Internet connectivity |
| 285 | # defaults to 5 secs |
| 286 | # PlParam "Interval" "40" |
| 287 | |
| 288 | # if one or more IPv4 addresses are given, do a ping on these in |
| 289 | # descending order to validate that there is not only an entry in |
| 290 | # routing table, but also a real internet connection. If any of |
| 291 | # these addresses could be pinged successfully, the test was |
| 292 | # succesful, i.e. if the ping on the 1st address was successful,the |
| 293 | # 2nd won't be pinged |
| 294 | # PlParam "Ping" "141.1.1.1" |
| 295 | # PlParam "Ping" "194.25.2.129" |
| 296 | #} |
| 297 | |
| 298 | # olsrd_dyn_gw_plain.so.0.4 |
| 299 | # { |
| 300 | # } |
| 301 | |
| 302 | |
| 303 | # Interfaces and their rules |
| 304 | # Omitted options will be set to the |
| 305 | # default values. |
| 306 | # multiple interfaces can be speicified |
| 307 | Interface "wlan0" |
| 308 | { |
| 309 | |
| 310 | # IPv4 broadcast address to use. The |
| 311 | # one usefull example would be 255.255.255.255 |
| 312 | # If not defined the broadcastaddress |
| 313 | # every card is configured with is used |
| 314 | # The second useful value would be to |
| 315 | # specify the peer adress of an ptp-tunnel |
| 316 | |
| 317 | # Ip4Broadcast 255.255.255.255 |
| 318 | |
| 319 | # Interface Mode is used to prevent unnecessary |
| 320 | # packet forwarding on switched ethernet interfaces |
| 321 | # valid Modes are "mesh" and "ether" |
| 322 | # The default value is mesh! |
| 323 | |
| 324 | # Mode "mesh" |
| 325 | |
| 326 | # IPv6 address scope to use. |
| 327 | # Must be 'site-local' or 'global' |
| 328 | |
| 329 | # Ip6AddrType site-local |
| 330 | |
| 331 | # IPv6 multicast address to use when |
| 332 | # using site-local addresses. |
| 333 | # If not defined, ff05::15 is used |
| 334 | |
| 335 | # Ip6MulticastSite ff05::11 |
| 336 | |
| 337 | # IPv6 multicast address to use when |
| 338 | # using global addresses |
| 339 | # If not defined, ff0e::1 is used |
| 340 | |
| 341 | # Ip6MulticastGlobal ff0e::1 |
| 342 | |
| 343 | |
| 344 | # Emission intervals. |
| 345 | # If not defined, RFC proposed values will |
| 346 | # be used in most cases. |
| 347 | |
| 348 | # Hello interval in seconds(float) |
| 349 | HelloInterval 1.0 |
| 350 | |
| 351 | # HELLO validity time |
| 352 | HelloValidityTime 10.0 |
| 353 | |
| 354 | # TC interval in seconds(float) |
| 355 | TcInterval 1.0 |
| 356 | |
| 357 | # TC validity time |
| 358 | TcValidityTime 20.0 |
| 359 | |
| 360 | # MID interval in seconds(float) |
| 361 | # MidInterval 5.0 |
| 362 | |
| 363 | # MID validity time |
| 364 | # MidValidityTime 30.0 |
| 365 | |
| 366 | # HNA interval in seconds(float) |
| 367 | # HnaInterval 5.0 |
| 368 | |
| 369 | # HNA validity time |
| 370 | # HnaValidityTime 30.0 |
| 371 | |
| 372 | # When multiple links exist between hosts |
| 373 | # the weight of interface is used to determine |
| 374 | # the link to use. Normally the weight is |
| 375 | # automatically calculated by olsrd based |
| 376 | # on the characteristics of the interface, |
| 377 | # but here you can specify a fixed value. |
| 378 | # Olsrd will choose links with the lowest value. |
| 379 | # Note: |
| 380 | # Interface weight is used only when LinkQualityLevel is set to 0. |
| 381 | # For any other value of LinkQualityLevel, the interface ETX |
| 382 | # value is used instead. |
| 383 | # Weight 0 |
| 384 | |
| 385 | |
| 386 | # If a certain route should be preferred |
| 387 | # or ignored by the mesh, the Link Quality |
| 388 | # value of a node can be multiplied with a factor |
| 389 | # entered here. In the example the route |
| 390 | # using 192.168.0.1 would rather be ignored. |
| 391 | # A multiplier of 0.5 will result in a small |
| 392 | # (bad) LinkQuality value and a high (bad) |
| 393 | # ETX value. |
| 394 | # Note: |
| 395 | # Link quality multiplier is used only when |
| 396 | # LinkQualityLevel is > 0. |
| 397 | |
| 398 | # LinkQualityMult 192.168.0.1 0.5 |
| 399 | |
| 400 | # This multiplier applies to all other nodes |
| 401 | # LinkQualityMult default 0.8 |
| 402 | } |
| 403 | |
| 404 | # another Interface (with different configs) |
| 405 | #Interface "eth1" |
| 406 | #{ |
| 407 | # IPv4 broadcast address to use. |
| 408 | # One usefull example would be 255.255.255.255 |
| 409 | # If not defined the broadcastaddress of |
| 410 | # every interface which has one configured gets used |
| 411 | # The second useful value would be to |
| 412 | # specify the peer adress of an ptp-tunnel |
| 413 | |
| 414 | # Ip4Broadcast 192.168.255.255 |
| 415 | |
| 416 | # Interface Mode is used to prevent unnecessary |
| 417 | # packet forwardin on switched ethernet interfaces |
| 418 | # valid Modes are "mesh" and "ether" |
| 419 | # The default value is mesh! |
| 420 | |
| 421 | # Mode "ether" |
| 422 | #} |
| 423 | |
| 424 | #LoadPlugin "olsrd_bmf.so.1.7.0" |
| 425 | #{ |
| 426 | # Specify the name of the BMF network interface. |
| 427 | # Defaults to "bmf0". |
| 428 | #PlParam "BmfInterface" "bmf0" |
| 429 | |
| 430 | # Specify the IP address and mask for the BMF network interface. |
| 431 | # By default, the IP address of the first OLSR interface is copied. |
| 432 | # The default prefix length is 32. |
| 433 | #PlParam "BmfInterfaceIp" "10.10.10.234/24" |
| 434 | |
| 435 | # Enable or disable marking the BMF network interface as persistent. |
| 436 | # When the interface is persistent (default) then it will not be removed |
| 437 | # when olsrd shuts down. This is to facilitate other programs (for example |
| 438 | # multicast routing daemon mrouted) to continue using it. |
| 439 | #PlParam "BmfInterfacePersistent" "yes" |
| 440 | |
| 441 | # Enable or disable the flooding of local broadcast packets |
| 442 | # (e.g. packets with IP destination 192.168.1.255). Either "yes" |
| 443 | # or "no". Defaults to "yes". |
| 444 | # Note: all nodes in the same network should have the same setting for |
| 445 | # this plugin parameter. |
| 446 | #PlParam "DoLocalBroadcast" "yes" |
| 447 | |
| 448 | # Enable or disable the capturing packets on the OLSR-enabled |
| 449 | # interfaces (in promiscuous mode). Either "yes" or "no". Defaults |
| 450 | # to "no". |
| 451 | # The multicast (and, if configured, local broadcast) packets sent on |
| 452 | # the non-OLSR network interfaces and on the BMF network interface will |
| 453 | # always be flooded over the OLSR network. |
| 454 | # If this parameter is "yes", also the packets sent on the OLSR-enabled |
| 455 | # network interfaces will be flooded over the OLSR network. |
| 456 | # NOTE: This parameter should be set consistently on all hosts throughout |
| 457 | # the network. If not, hosts may receive multicast packets in duplicate. |
| 458 | #PlParam "CapturePacketsOnOlsrInterfaces" "yes" |
| 459 | |
| 460 | # The forwarding mechanism to use. Either "Broadcast" or |
| 461 | # "UnicastPromiscuous". Defaults to "Broadcast". |
| 462 | # In the "UnicastPromiscuous" mode, packets are forwarded (unicast) to the |
| 463 | # best candidate neighbor; other neighbors listen promiscuously. IP-local |
| 464 | # broadcast is not used. This saves air time on 802.11 WLAN networks, |
| 465 | # on which unicast packets are usually sent at a much higher bit rate |
| 466 | # than broadcast packets (which are sent at a basic bit rate). |
| 467 | # Note: all nodes in the same network should have the same setting for |
| 468 | # this plugin parameter. |
| 469 | #PlParam "BmfMechanism" "Broadcast" |
| 470 | |
| 471 | # The number of times BMF will transmit the same packet whenever it decides |
| 472 | # to use broadcast to forward a packet. Defaults to 1. Not used if |
| 473 | # "BmfMechanism" is set to "UnicastPromiscuous". |
| 474 | #PlParam "BroadcastRetransmitCount" "1" |
| 475 | |
| 476 | # If the number of neighbors to forward to is less than or equal to the |
| 477 | # FanOutLimit, then packets to be relayed will be sent via unicast. |
| 478 | # If the number is greater than the FanOutLimit the packet goes out |
| 479 | # as broadcast. Legal values are 0...10. See MAX_UNICAST_NEIGHBORS |
| 480 | # as defined in NetworkInterfaces.h . 0 means broadcast is always used, |
| 481 | # even if there is only 1 neighbor to forward to. Defaults to 2. |
| 482 | # This plugin parameter is not used if "BmfMechanism" is set to |
| 483 | # "UnicastPromiscuous". |
| 484 | #PlParam "FanOutLimit" "0" |
| 485 | |
| 486 | # List of non-OLSR interfaces to include |
| 487 | #PlParam "NonOlsrIf" "eth2" |
| 488 | #PlParam "NonOlsrIf" "eth3" |
| 489 | #} |
| 490 | |
| 491 | LockFile "/data/local/olsrd.lock" |