Merge pull request #47 from zorun/babeld_configfile
[feed/routing.git] / babeld / files / babeld.config
1 package babeld
2
3 # Configuration set in this file ends up in /var/etc/babeld.conf
4 # Babeld is told to use both /etc/babeld.conf and /var/etc/babeld.conf,
5 # so you can use one or the other, or even both at the same time.
6
7 # See "man babeld" for all available options ("Global options").
8 # Important: remember to use '_' instead of '-' in option names.
9 config general
10 # option 'random_id' 'true'
11 # option 'debug' '1'
12 # option 'local_port' '33123'
13 # option 'log_file' '/var/log/babeld.log'
14 ## This seems somewhat buggy on BB. If you need only one
15 ## import-table statement, "option import_table 42" should work.
16 # list 'import_table' '42'
17 # list 'import_table' '100'
18
19 config interface
20 ## Remove this line to enable babeld on this interface
21 option 'ignore' 'true'
22 ## You can use aliases (like lan, wlan) or real names (like eth0.0).
23 ## If you use an alias, it must be already defined when babeld starts.
24 ## Otherwise, the name is taken literally and the interface can be
25 ## brought up later (useful for tunnels for instance).
26 option 'ifname' 'wlan'
27 ## You can set options, see babeld man page ("Interface configuration")
28 # option 'rxcost' '256'
29 # option 'hello_interval' '1'
30
31 config interface
32 option 'ignore' 'true'
33 ## Physical interface name
34 option 'ifname' 'tun-example'
35 # option 'max_rtt_penalty' '90'
36
37 # A config interface without "option ifname" will set default options
38 # for all interfaces. Interface-specific configuration always overrides
39 # default configuration.
40 config interface
41 # option 'enable_timestamps' 'true'
42 # option 'update_interval' '30'
43
44
45 # A filter consists of a type ('in', 'out' or 'redistribute'), an action
46 # ('allow', 'deny' or 'metric xxx') and a set of selectors ('ip', 'eq',
47 # etc.). See babeld man page ("Filtering rules") for more details.
48 # Here is a sample filter wich redistributes the default route if its
49 # protocol number is "boot", e.g. when it installed by dhcp. It is
50 # disabled by default.
51 config filter
52 option 'ignore' 'true'
53 # Type
54 option 'type' 'redistribute'
55 # Selectors: ip, eq, le, ge, neigh, id, proto, local, if
56 option 'ip' '0.0.0.0/0'
57 option 'eq' '0'
58 option 'proto' '3'
59 # Action
60 option 'action' 'metric 128'
61
62 # Notice that the 'local' selector is a boolean.
63 config filter
64 option 'ignore' 'true'
65 option 'type' 'redistribute'
66 option 'local' 'true'
67 # No action means "allow"