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 # Signals that the server tunnel must always be removed on shutdown,
85 # irrespective of the interface up/down state during startup.
88 # SmartGatewayAlwaysRemoveServerTunnel no
90 # Determines the maximum number of gateways that can be in use at any given
91 # time. This setting is used to mitigate the effects of breaking connections
92 # (due to the selection of a new gateway) on a dynamic network.
95 # SmartGatewayUseCount 1
97 # Determines the take-down percentage for a non-current smart gateway tunnel.
98 # If the cost of the current smart gateway tunnel is less than this percentage
99 # of the cost of the non-current smart gateway tunnel, then the non-current smart
100 # gateway tunnel is taken down because it is then presumed to be 'too expensive'.
101 # This setting is only relevant when SmartGatewayUseCount is larger than 1;
102 # a value of 0 will result in the tunnels not being taken down proactively.
105 # SmartGatewayTakeDownPercentage 0
107 # Determines the policy routing script that is executed during startup and
108 # shutdown of olsrd. The script is only executed when SmartGatewayUseCount
109 # is set to a value larger than 1. The script must setup policy routing
110 # rules such that multi-gateway mode works. A sample script is included.
111 # (default is not set)
113 # SmartGatewayPolicyRoutingScript ""
115 # Determines the egress interfaces that are part of the multi-gateway setup and
116 # therefore only relevant when SmartGatewayUseCount is larger than 1 (in which
117 # case it must be explicitly set).
118 # (default is not set)
120 # SmartGatewayEgressInterfaces ""
122 # Determines the routing tables offset for multi-gateway policy routing tables
123 # See the policy routing script for an explanation.
126 # SmartGatewayTablesOffset 90
128 # Determines the policy routing rules offset for multi-gateway policy routing
129 # rules. See the policy routing script for an explanation.
130 # (default is 0, which indicates that the rules and tables should be aligned and
131 # puts this value at SmartGatewayTablesOffset - # egress interfaces -
134 # SmartGatewayRulesOffset 87
136 # Allows the selection of a smartgateway with NAT (only for IPv4)
139 # SmartGatewayAllowNAT yes
141 # Determines the period (in milliseconds) on which a new smart gateway
142 # selection is performed.
143 # (default is 10000 milliseconds)
145 # SmartGatewayPeriod 10000
147 # Determines the number of times the link state database must be stable
148 # before a new smart gateway is selected.
151 # SmartGatewayStableCount 6
153 # When another gateway than the current one has a cost of less than the cost
154 # of the current gateway multiplied by SmartGatewayThreshold then the smart
155 # gateway is switched to the other gateway. The unit is percentage.
158 # SmartGatewayThreshold 0
160 # The weighing factor for the gateway uplink bandwidth (exit link, uplink).
161 # See README-Olsr-Extensions for a description of smart gateways.
164 # SmartGatewayWeightExitLinkUp 1
166 # The weighing factor for the gateway downlink bandwidth (exit link, downlink).
167 # See README-Olsr-Extensions for a description of smart gateways.
170 # SmartGatewayWeightExitLinkDown 1
172 # The weighing factor for the ETX costs.
173 # See README-Olsr-Extensions for a description of smart gateways.
176 # SmartGatewayWeightEtx 1
178 # The divider for the ETX costs.
179 # See README-Olsr-Extensions for a description of smart gateways.
182 # SmartGatewayDividerEtx 0
184 # Defines what kind of Uplink this node will publish as a
185 # smartgateway. The existence of the uplink is detected by
186 # a route to 0.0.0.0/0, ::ffff:0:0/96 and/or 2000::/3.
187 # possible values are "none", "ipv4", "ipv6", "both"
188 # (default is "both")
190 # SmartGatewayUplink "both"
192 # Specifies if the local ipv4 uplink use NAT
195 # SmartGatewayUplinkNAT yes
197 # Specifies the speed of the uplink in kilobit/s.
198 # First parameter is upstream, second parameter is downstream
199 # (default is 128/1024)
201 # SmartGatewaySpeed 128 1024
203 # Specifies the EXTERNAL ipv6 prefix of the uplink. A prefix
204 # length of more than 64 is not allowed.
207 # SmartGatewayPrefix 0::/0
209 ##############################
210 ### OLSR protocol settings ###
211 ##############################
213 # HNA (Host network association) allows the OLSR to announce
214 # additional IPs or IP subnets to the net that are reachable
216 # Syntax for HNA4 is "network-address network-mask"
217 # Syntax for HNA6 is "network-address prefix-length"
218 # (default is no HNA)
223 # specific small networks reachable through this node
224 # 15.15.0.0 255.255.255.0
230 # specific small networks reachable through this node
231 # fec0:2200:106:0:0:0:0:0 48
234 ################################
235 ### OLSR protocol extensions ###
236 ################################
238 # Link quality algorithm (only for lq level 2)
239 # (see README-Olsr-Extensions)
240 # - "etx_float", a floating point ETX with exponential aging
241 # - "etx_fpm", same as ext_float, but with integer arithmetic
242 # - "etx_ff" (ETX freifunk), an etx variant which use all OLSR
243 # traffic (instead of only hellos) for ETX calculation
244 # - "etx_ffeth", an incompatible variant of etx_ff that allows
245 # ethernet links with ETX 0.1.
246 # (defaults to "etx_ff")
248 # LinkQualityAlgorithm "etx_ff"
250 # Fisheye mechanism for TCs (0 meansoff, 1 means on)
253 # LinkQualityFishEye 1
255 #####################################
256 ### Example plugin configurations ###
257 #####################################
258 # Olsrd plugins to load
259 # This must be the absolute path to the file
260 # or the loader will use the following scheme:
261 # - Try the paths in the LD_LIBRARY_PATH
262 # environment variable.
263 # - The list of libraries cached in /etc/ld.so.cache
264 # - /lib, followed by /usr/lib
266 # the examples in this list are for linux, so check if the plugin is
267 # available if you use windows/BSD.
268 # each plugin should have a README file in it's lib subfolder
270 # LoadPlugin "olsrd_txtinfo.dll"
271 LoadPlugin "olsrd_txtinfo.so.0.1"
273 # the default port is 2006 but you can change it like this:
274 #PlParam "port" "8080"
276 # You can set a "accept" single address to allow to connect to
277 # txtinfo. If no address is specified, then localhost (127.0.0.1)
278 # is allowed by default. txtinfo will only use the first "accept"
279 # parameter specified and will ignore the rest.
281 # to allow a specific host:
282 #PlParam "accept" "172.29.44.23"
283 # if you set it to 0.0.0.0, it will accept all connections
284 #PlParam "accept" "0.0.0.0"
287 #############################################
288 ### OLSRD default interface configuration ###
289 #############################################
290 # the default interface section can have the same values as the following
291 # interface configuration. It will allow you so set common options for all
295 # Ip4Broadcast 255.255.255.255
298 ######################################
299 ### OLSRd Interfaces configuration ###
300 ######################################
301 # multiple interfaces can be specified for a single configuration block
302 # multiple configuration blocks can be specified
304 # WARNING, don't forget to insert your interface names here !
305 Interface "<OLSRd-Interface1>" "<OLSRd-Interface2>"
307 # Interface Mode is used to prevent unnecessary
308 # packet forwarding on switched ethernet interfaces
309 # valid Modes are "mesh" and "ether"
310 # (default is "mesh")