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