2 # OLSR.org routing daemon config file
3 # This file contains the usual options for an ETX based
4 # stationary network with fisheye
5 # (for other options see olsrd.conf.default.full)
7 # Lines starting with a # are discarded
10 #### ATTENTION for IPv6 users ####
11 # Because of limitations in the parser IPv6 addresses must NOT
12 # begin with a ":", so please add a "0" as a prefix.
14 ###########################
15 ### Basic configuration ###
16 ###########################
17 # keep this settings at the beginning of your first configuration file
20 # If set to 0 the daemon runs in the background, unless "NoFork" is set to true
25 # IP version to use (4 or 6)
30 #################################
31 ### OLSRd agent configuration ###
32 #################################
33 # this parameters control the settings of the routing agent which are not
34 # related to the OLSR protocol and it's extensions
36 # FIBMetric controls the metric value of the host-routes OLSRd sets.
37 # - "flat" means that the metric value is always 2. This is the preferred value
38 # because it helps the linux kernel routing to clean up older routes
39 # - "correct" use the hopcount as the metric value.
40 # - "approx" use the hopcount as the metric value too, but does only update the
41 # hopcount if the nexthop changes too
46 #######################################
47 ### Linux specific OLSRd extensions ###
48 #######################################
49 # these parameters are only working on linux at the moment, but might become
50 # useful on BSD in the future
52 # SrcIpRoutes tells OLSRd to set the Src flag of host routes to the originator-ip
53 # of the node. In addition to this an additional localhost device is created
54 # to make sure the returning traffic can be received.
59 # Specify the proto tag to be used for routes olsr inserts into kernel
60 # currently only implemented for linux
61 # valid values under linux are 1 .. 254
62 # 1 gets remapped by olsrd to 0 UNSPECIFIED (1 is reserved for ICMP redirects)
63 # 2 KERNEL routes (not very wise to use)
64 # 3 BOOT (should in fact not be used by routing daemons)
66 # 8 .. 15 various routing daemons (gated, zebra, bird, & co)
67 # (defaults to 0 which gets replaced by an OS-specific default value
68 # under linux 3 (BOOT) (for backward compatibility)
72 # Activates (in IPv6 mode) the automatic use of NIIT
73 # (see README-Olsr-Extensions)
78 # Activates the smartgateway ipip tunnel feature.
79 # See README-Olsr-Extensions for a description of smartgateways.
84 # Allows the selection of a smartgateway with NAT (only for IPv4)
87 # SmartGatewayAllowNAT yes
89 # Determines the period (in milliseconds) on which a new smart gateway
90 # selection is performed.
91 # (default is 10000 milliseconds)
93 # SmartGatewayPeriod 10000
95 # Determines the number of times the link state database must be stable
96 # before a new smart gateway is selected.
99 # SmartGatewayStableCount 6
101 # When another gateway than the current one has a cost of less than the cost
102 # of the current gateway multiplied by SmartGatewayThreshold then the smart
103 # gateway is switched to the other gateway. The unit is percentage.
106 # SmartGatewayThreshold 0
108 # The weighing factor for the gateway uplink bandwidth (exit link, uplink).
109 # See README-Olsr-Extensions for a description of smart gateways.
112 # SmartGatewayWeightExitLinkUp 1
114 # The weighing factor for the gateway downlink bandwidth (exit link, downlink).
115 # See README-Olsr-Extensions for a description of smart gateways.
118 # SmartGatewayWeightExitLinkDown 1
120 # The weighing factor for the ETX costs.
121 # See README-Olsr-Extensions for a description of smart gateways.
124 # SmartGatewayWeightEtx 1
126 # The divider for the ETX costs.
127 # See README-Olsr-Extensions for a description of smart gateways.
130 # SmartGatewayDividerEtx 0
132 # Defines what kind of Uplink this node will publish as a
133 # smartgateway. The existence of the uplink is detected by
134 # a route to 0.0.0.0/0, ::ffff:0:0/96 and/or 2000::/3.
135 # possible values are "none", "ipv4", "ipv6", "both"
136 # (default is "both")
138 # SmartGatewayUplink "both"
140 # Specifies if the local ipv4 uplink use NAT
143 # SmartGatewayUplinkNAT yes
145 # Specifies the speed of the uplink in kilobit/s.
146 # First parameter is upstream, second parameter is downstream
147 # (default is 128/1024)
149 # SmartGatewaySpeed 128 1024
151 # Specifies the EXTERNAL ipv6 prefix of the uplink. A prefix
152 # length of more than 64 is not allowed.
155 # SmartGatewayPrefix 0::/0
157 ##############################
158 ### OLSR protocol settings ###
159 ##############################
161 # HNA (Host network association) allows the OLSR to announce
162 # additional IPs or IP subnets to the net that are reachable
164 # Syntax for HNA4 is "network-address network-mask"
165 # Syntax for HNA6 is "network-address prefix-length"
166 # (default is no HNA)
171 # specific small networks reachable through this node
172 # 15.15.0.0 255.255.255.0
178 # specific small networks reachable through this node
179 # fec0:2200:106:0:0:0:0:0 48
182 ################################
183 ### OLSR protocol extensions ###
184 ################################
186 # Link quality algorithm (only for lq level 2)
187 # (see README-Olsr-Extensions)
188 # - "etx_float", a floating point ETX with exponential aging
189 # - "etx_fpm", same as ext_float, but with integer arithmetic
190 # - "etx_ff" (ETX freifunk), an etx variant which use all OLSR
191 # traffic (instead of only hellos) for ETX calculation
192 # - "etx_ffeth", an incompatible variant of etx_ff that allows
193 # ethernet links with ETX 0.1.
194 # (defaults to "etx_ff")
196 # LinkQualityAlgorithm "etx_ff"
198 # Fisheye mechanism for TCs (0 meansoff, 1 means on)
201 # LinkQualityFishEye 1
203 #####################################
204 ### Example plugin configurations ###
205 #####################################
206 # Olsrd plugins to load
207 # This must be the absolute path to the file
208 # or the loader will use the following scheme:
209 # - Try the paths in the LD_LIBRARY_PATH
210 # environment variable.
211 # - The list of libraries cached in /etc/ld.so.cache
212 # - /lib, followed by /usr/lib
214 # the examples in this list are for linux, so check if the plugin is
215 # available if you use windows/BSD.
216 # each plugin should have a README file in it's lib subfolder
218 # LoadPlugin "olsrd_txtinfo.dll"
219 LoadPlugin "olsrd_txtinfo.so.0.1"
221 # the default port is 2006 but you can change it like this:
222 #PlParam "port" "8080"
224 # You can set a "accept" single address to allow to connect to
225 # txtinfo. If no address is specified, then localhost (127.0.0.1)
226 # is allowed by default. txtinfo will only use the first "accept"
227 # parameter specified and will ignore the rest.
229 # to allow a specific host:
230 #PlParam "accept" "172.29.44.23"
231 # if you set it to 0.0.0.0, it will accept all connections
232 #PlParam "accept" "0.0.0.0"
235 #############################################
236 ### OLSRD default interface configuration ###
237 #############################################
238 # the default interface section can have the same values as the following
239 # interface configuration. It will allow you so set common options for all
243 # Ip4Broadcast 255.255.255.255
246 ######################################
247 ### OLSRd Interfaces configuration ###
248 ######################################
249 # multiple interfaces can be specified for a single configuration block
250 # multiple configuration blocks can be specified
252 # WARNING, don't forget to insert your interface names here !
253 Interface "<OLSRd-Interface1>" "<OLSRd-Interface2>"
255 # Interface Mode is used to prevent unnecessary
256 # packet forwarding on switched ethernet interfaces
257 # valid Modes are "mesh" and "ether"
258 # (default is "mesh")