Annotation of elwix/config/etc/default/olsrd.conf.lq, revision 1.1
1.1 ! misho 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 111
! 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 112
! 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 0
! 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 3
! 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", a etx variant developed at Freifunk
! 145:
! 146: # LinkQualityAlgorithm "etx_ff"
! 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: # This parameter is not used for etx_ff
! 152:
! 153: # LinkQualityAging 0.1
! 154:
! 155: # Fisheye mechanism for TC messages 0=off, 1=on
! 156: # default is 1
! 157:
! 158: LinkQualityFishEye 0
! 159:
! 160: # Wether to use hysteresis or not
! 161: # Hysteresis adds more robustness to the
! 162: # link sensing but delays neighbor registration.
! 163: # Used by default. 'yes' or 'no'
! 164:
! 165: # UseHysteresis no
! 166:
! 167: # Hysteresis parameters
! 168: # Do not alter these unless you know
! 169: # what you are doing!
! 170: # Set to auto by default. Allowed
! 171: # values are floating point values
! 172: # in the interval 0,1
! 173: # THR_LOW must always be lower than
! 174: # THR_HIGH!!
! 175:
! 176: #HystScaling 0.50
! 177: #HystThrHigh 0.80
! 178: #HystThrLow 0.30
! 179:
! 180:
! 181: # Polling rate in seconds(float).
! 182: # Default value 0.05 sec
! 183:
! 184: # Pollrate 0.05
! 185:
! 186: # Interval to poll network interfaces for configuration
! 187: # changes. Defaults to 2.5 seconds
! 188:
! 189: # NicChgsPollInt 2.5
! 190:
! 191:
! 192: # TC redundancy
! 193: # Specifies how much neighbor info should
! 194: # be sent in TC messages
! 195: # Possible values are:
! 196: # 0 - only send MPR selectors
! 197: # 1 - send MPR selectors and MPRs
! 198: # 2 - send all neighbors
! 199: #
! 200: # defaults to 2
! 201:
! 202: # TcRedundancy 2
! 203:
! 204: #
! 205: # NatThreshold
! 206: #
! 207: # (currently this is only in the freifunk firmware)
! 208: # If the NAT-Endpoint (the preferred 0/0 HNA
! 209: # emitting node) is to be changed, the ETX value of the current 0/0 is
! 210: # compared to the new one. If the ETX difference is too small, the default
! 211: # route isn't changed. defaults to 1.0
! 212: # The configured route gets multiplied by the treshhold,
! 213: # before comparing which route is better
! 214:
! 215: # NatThreshold 0.5
! 216:
! 217: #
! 218: # MPR coverage
! 219: # Specifies how many MPRs a node should
! 220: # try select to reach every 2 hop neighbor
! 221: #
! 222: # Can be set to any integer >0
! 223: #
! 224: # MPR selection is broken at the moment, just keep 7
! 225:
! 226: # MprCoverage 7
! 227:
! 228:
! 229: # Olsrd plugins to load
! 230: # This must be the absolute path to the file
! 231: # or the loader will use the following scheme:
! 232: # - Try the paths in the LD_LIBRARY_PATH
! 233: # environment variable.
! 234: # - The list of libraries cached in /etc/ld.so.cache
! 235: # - /lib, followed by /usr/lib
! 236: #
! 237: # the examples in this list are for linux, so check if the plugin is
! 238: # available if you use windows/BSD.
! 239:
! 240: # LoadPlugin "olsrd_httpinfo.dll"
! 241: LoadPlugin "olsrd_httpinfo.so.0.1"
! 242: {
! 243: # port number the httpinfo plugin will be listening, default 1978
! 244: # PlParam "port" "8000"
! 245:
! 246: # ip address that can access the plugin, use "0.0.0.0"
! 247: # to allow everyone
! 248: PlParam "Host" "127.0.0.1"
! 249: # PlParam "Host" "80.23.53.22"
! 250:
! 251: # networks that can access the plugin (ip/netmask)
! 252: # careful with 0.0.0.0/0, makes (ddos) attacks poss.
! 253: # PlParam "Net" "0.0.0.0 0.0.0.0"
! 254: PlParam "Net" "104.0.0.0 255.255.0.0"
! 255: PlParam "Net" "192.168.0.0 255.255.0.0"
! 256: }
! 257:
! 258: # LoadPlugin "olsrd_txtinfo.dll"
! 259: LoadPlugin "olsrd_txtinfo.so.0.1"
! 260: {
! 261: # port number the txtinfo plugin will be listening, default 2006
! 262: # PlParam "port" "81"
! 263: # ip address that can access the plugin, use "0.0.0.0"
! 264: # to allow everyone
! 265: PlParam "Accept" "127.0.0.1"
! 266: }
! 267:
! 268: #LoadPlugin "olsrd_secure.so.0.3"
! 269: #{
! 270: # define source of keyfile for secure plugin
! 271: # see lib/secure/README_SECURE for more information
! 272:
! 273: # PlParam "Keyfile" "/etc/olsr-keyfile.txt"
! 274: #}
! 275:
! 276: #LoadPlugin "olsrd_dyn_gw.so.0.4"
! 277: #{
! 278: # Here parameters are set to be sent to the
! 279: # plugin. Theese are on the form "key" "value".
! 280: # Parameters ofcause, differs from plugin to plugin.
! 281: # Consult the documentation of your plugin for details.
! 282:
! 283: # Example: dyn_gw params
! 284:
! 285: # how often to check for Internet connectivity
! 286: # defaults to 5 secs
! 287: # PlParam "Interval" "40"
! 288:
! 289: # if one or more IPv4 addresses are given, do a ping on these in
! 290: # descending order to validate that there is not only an entry in
! 291: # routing table, but also a real internet connection. If any of
! 292: # these addresses could be pinged successfully, the test was
! 293: # succesful, i.e. if the ping on the 1st address was successful,the
! 294: # 2nd won't be pinged
! 295: # PlParam "Ping" "141.1.1.1"
! 296: # PlParam "Ping" "194.25.2.129"
! 297: #}
! 298:
! 299: # olsrd_dyn_gw_plain.so.0.4
! 300: # {
! 301: # }
! 302:
! 303:
! 304: # Interfaces and their rules
! 305: # Omitted options will be set to the
! 306: # default values.
! 307: # multiple interfaces can be speicified
! 308: Interface "wlan0" "ath0"
! 309: {
! 310: # Interface Mode is used to prevent unnecessary
! 311: # packet forwarding on switched ethernet interfaces
! 312: # valid Modes are "mesh" and "ether"
! 313: # The default value is mesh!
! 314:
! 315: # Mode "mesh"
! 316:
! 317: # IPv4 broadcast address to use. The
! 318: # one usefull example would be 255.255.255.255
! 319: # If not defined the broadcastaddress
! 320: # every card is configured with is used
! 321: # The second useful value would be to
! 322: # specify the peer adress of an ptp-tunnel.
! 323: # another name of this parameter is "IPv4Multicast"
! 324:
! 325: # Ip4Broadcast 0.0.0.0 (use interface broadcast)
! 326:
! 327: # IPv6 multicast address
! 328: # If not defined, FF02::1 is used
! 329:
! 330: # IPv6Multicast FF02::1
! 331:
! 332: # IPv4 src address
! 333: # If not defined (0.0.0.0), the interface IP is used
! 334:
! 335: # IPv4Src 0.0.0.0
! 336:
! 337: # IPv6 src prefix.
! 338: # If not defined (::/0), a not-linklocal interface IP is used
! 339:
! 340: # IPv6Src ::/0
! 341:
! 342: # Emission intervals.
! 343: # If not defined, RFC proposed values will
! 344: # be used in most cases.
! 345:
! 346: # Hello interval in seconds(float)
! 347: # HelloInterval 2.0
! 348:
! 349: # HELLO validity time
! 350: # HelloValidityTime 20.0
! 351:
! 352: # TC interval in seconds(float)
! 353: # TcInterval 5.0
! 354:
! 355: # TC validity time
! 356: # TcValidityTime 300.0
! 357:
! 358: # MID interval in seconds(float)
! 359: # MidInterval 5.0
! 360:
! 361: # MID validity time
! 362: # MidValidityTime 300.0
! 363:
! 364: # HNA interval in seconds(float)
! 365: # HnaInterval 5.0
! 366:
! 367: # HNA validity time
! 368: # HnaValidityTime 300.0
! 369:
! 370: # When multiple links exist between hosts
! 371: # the weight of interface is used to determine
! 372: # the link to use. Normally the weight is
! 373: # automatically calculated by olsrd based
! 374: # on the characteristics of the interface,
! 375: # but here you can specify a fixed value.
! 376: # Olsrd will choose links with the lowest value.
! 377: # Note:
! 378: # Interface weight is used only when LinkQualityLevel is set to 0.
! 379: # For any other value of LinkQualityLevel, the interface ETX
! 380: # value is used instead.
! 381: # Weight 0
! 382:
! 383:
! 384: # If a certain route should be preferred
! 385: # or ignored by the mesh, the Link Quality
! 386: # value of a node can be multiplied with a factor
! 387: # entered here. In the example the route
! 388: # using 192.168.0.1 would rather be ignored.
! 389: # A multiplier of 0.5 will result in a small
! 390: # (bad) LinkQuality value and a high (bad)
! 391: # ETX value.
! 392: # Note:
! 393: # Link quality multiplier is used only when
! 394: # LinkQualityLevel is > 0.
! 395:
! 396: # Example 1: LinkQualityMult 192.168.0.1 0.5
! 397:
! 398: # This multiplier applies to all other nodes
! 399: # Example 2: LinkQualityMult default 0.8
! 400: }
! 401:
! 402: # another Interface (with different configs)
! 403: #Interface "eth1"
! 404: #{
! 405: # IPv4 broadcast address to use.
! 406: # One usefull example would be 255.255.255.255
! 407: # If not defined the broadcastaddress of
! 408: # every interface which has one configured gets used
! 409: # The second useful value would be to
! 410: # specify the peer adress of an ptp-tunnel
! 411:
! 412: # IPv4Multicast 192.168.255.255
! 413:
! 414: # Interface Mode is used to prevent unnecessary
! 415: # packet forwardin on switched ethernet interfaces
! 416: # valid Modes are "mesh" and "ether"
! 417: # The default value is mesh!
! 418:
! 419: # Mode "ether"
! 420: #}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>