summaryrefslogtreecommitdiffstats
path: root/babeld/files/babeld.config
blob: b58270cafea902a9da311c6bf63b2b2ca2a265fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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.

# See "man babeld" for all available options ("Global options").
# Important: remember to use '_' instead of '-' in option names.
config general
	# option 'random_id' 'true'
	# 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.
	# list 'import_table' '42'
	# list 'import_table' '100'

config interface
	## Remove this line to enable babeld on this interface
	option 'ignore' 'true'
	## You can use aliases (like lan, wlan) or real names (like eth0.0).
	## If you use an alias, it must be already defined when babeld starts.
	## Otherwise, the name is taken literally and the interface can be
	## brought up later (useful for tunnels for instance).
	option 'ifname' 'wlan'
	## You can set options, see babeld man page ("Interface configuration")
	# option 'rxcost' '256'
	# option 'hello_interval' '1'

config interface
	option 'ignore' 'true'
	## Physical interface name
	option 'ifname' 'tun-example'
	# option 'max_rtt_penalty' '90'

# A config interface without "option ifname" will set default options
# for all interfaces.  Interface-specific configuration always overrides
# default configuration.
config interface
	# option 'enable_timestamps' 'true'
	# option 'update_interval' '30'


# A filter consists of a type ('in', 'out' or 'redistribute'), an action
# ('allow', 'deny' or 'metric xxx') and a set of selectors ('ip', 'eq',
# etc.).  See babeld man page ("Filtering rules") for more details.
# Here is a sample filter wich redistributes the default route if its
# protocol number is "boot", e.g. when it installed by dhcp.  It is
# disabled by default.
config filter
	option 'ignore'	'true'
	# Type
	option 'type'	'redistribute'
	# Selectors: ip, eq, le, ge, neigh, id, proto, local, if
	option 'ip'	'0.0.0.0/0'
	option 'eq'	'0'
	option 'proto'	'3'
	# Action 
	option 'action'	'metric 128'

# Notice that the 'local' selector is a boolean.
config filter
	option 'ignore'	'true'
	option 'type'	'redistribute'
	option 'local'	'true'
	# No action means "allow"