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