cb2a131150677fef2fb5655842f2948c4d53cdcd
[feed/routing.git] / babeld / files / babeld.config
1 package babeld
2
3 # Babeld reads options from the following files (the last one takes precedence
4 # if an option is defined in several places):
5 # - the file defined by the option conf_file (default: /etc/babeld.conf),
6 # - *.conf files in the directory defined by conf_dir (default: /tmp/babel.d/),
7 # - this UCI configuration file.
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 ## Alternative configuration file and directory.
24 ## See comment at the top of this file for more details.
25 # option 'conf_file' '/etc/babeld.conf'
26 # option 'conf_dir' '/tmp/babel.d/'
27
28 config interface
29 ## Remove this line to enable babeld on this interface
30 option 'ignore' 'true'
31 ## You can use aliases (like lan, wlan) or real names (like eth0.0).
32 ## If you use an alias, it must be already defined when babeld starts.
33 ## Otherwise, the name is taken literally and the interface can be
34 ## brought up later (useful for tunnels for instance).
35 option 'ifname' 'wlan'
36 ## You can set options, see babeld man page ("Interface configuration")
37 # option 'rxcost' '256'
38 # option 'hello_interval' '1'
39
40 config interface
41 option 'ignore' 'true'
42 ## Physical interface name
43 option 'ifname' 'tun-example'
44 # option 'max_rtt_penalty' '90'
45
46 # A config interface without "option ifname" will set default options
47 # for all interfaces. Interface-specific configuration always overrides
48 # default configuration.
49 config interface
50 # option 'enable_timestamps' 'true'
51 # option 'update_interval' '30'
52
53
54 # A filter consists of a type ('in', 'out' or 'redistribute'), an action
55 # ('allow', 'deny' or 'metric xxx') and a set of selectors ('ip', 'eq',
56 # etc.). See babeld man page ("Filtering rules") for more details.
57 # Here is a sample filter wich redistributes the default route if its
58 # protocol number is "boot", e.g. when it installed by dhcp. It is
59 # disabled by default.
60 config filter
61 option 'ignore' 'true'
62 # Type
63 option 'type' 'redistribute'
64 # Selectors: ip, eq, le, ge, src_ip, src_eq, src_le, src_ge, neigh, id,
65 # proto, local, if.
66 option 'ip' '0.0.0.0/0'
67 option 'eq' '0'
68 option 'proto' '3'
69 # Action (one of: allow, deny, metric XXX, src-prefix XXX).
70 option 'action' 'metric 128'
71
72 # Notice that the 'local' selector is a boolean.
73 config filter
74 option 'ignore' 'true'
75 option 'type' 'redistribute'
76 option 'local' 'true'
77 # No action means "allow"