package babeld
-# Configuration set in this file ends up in /var/etc/babeld.conf.
-# Babeld is told to use both /etc/babeld.conf and /var/etc/babeld.conf, so
-# you can use one or the other, or even both at the same time. If an
-# option is defined in both files, the version in /var/etc/babeld.conf
-# takes precedence.
+# Babeld reads options from the following files (the last one takes precedence
+# if an option is defined in several places):
+# - the file defined by the option conf_file (default: /etc/babeld.conf),
+# - *.conf files in the directory defined by conf_dir (default: /tmp/babel.d/),
+# - this UCI configuration file.
# See "man babeld" for all available options ("Global options").
# Important: remember to use '_' instead of '-' in option names.
# option 'debug' '1'
# option 'local_port' '33123'
# option 'log_file' '/var/log/babeld.log'
- ## This seems somewhat buggy on BB. If you need only one
- ## import-table statement, "option import_table 42" should work.
+ ## Enable ipv6-subtrees by default since OpenWrt should ship with a
+ ## recent enough kernel for it to work.
+ option 'ipv6_subtrees' 'true'
# list 'import_table' '42'
# list 'import_table' '100'
+ ## Alternative configuration file and directory.
+ ## See comment at the top of this file for more details.
+ # option 'conf_file' '/etc/babeld.conf'
+ # option 'conf_dir' '/tmp/babel.d/'
config interface
## Remove this line to enable babeld on this interface
option 'ignore' 'true'
# Type
option 'type' 'redistribute'
- # Selectors: ip, eq, le, ge, neigh, id, proto, local, if
+ # Selectors: ip, eq, le, ge, src_ip, src_eq, src_le, src_ge, neigh, id,
+ # proto, local, if.
option 'ip' '0.0.0.0/0'
option 'eq' '0'
option 'proto' '3'
- # Action
+ # Action (one of: allow, deny, metric XXX, src-prefix XXX).
option 'action' 'metric 128'
# Notice that the 'local' selector is a boolean.