|
|
|
@ -23,36 +23,17 @@ interface bb{{ peer.name }}
|
|
|
|
|
#debug 1
|
|
|
|
|
local-port 33123
|
|
|
|
|
#diversity true
|
|
|
|
|
#random-id true
|
|
|
|
|
random-id true
|
|
|
|
|
|
|
|
|
|
# Per-interface configuration. Note that each interface referenced here
|
|
|
|
|
# will be used by babeld.
|
|
|
|
|
#interface eth1 rxcost 10
|
|
|
|
|
#interface tun0 faraway true
|
|
|
|
|
#interface wlan0 hello-interval 1
|
|
|
|
|
default type tunnel rtt-min 1 rtt-max 25 max-rtt-penalty 128
|
|
|
|
|
smoothing-half-life 30
|
|
|
|
|
|
|
|
|
|
# Since 1.4.2, you can also specify defaults for interface parameters, which
|
|
|
|
|
# will be used for all interfaces except specified otherwise (see above).
|
|
|
|
|
#default rxcost 42
|
|
|
|
|
#default hello-interval 5
|
|
|
|
|
|
|
|
|
|
# Since 1.5.0, you can use the RTT-based metric, most useful for a network
|
|
|
|
|
# with tunnels (overlay network).
|
|
|
|
|
#default enable-timestamps true
|
|
|
|
|
#interface tun0 max-rtt-penalty 150
|
|
|
|
|
#interface tun0 rtt-max 100
|
|
|
|
|
default type tunnel rtt-min 1 rtt-max 20 max-rtt-penalty 128
|
|
|
|
|
export-table 42
|
|
|
|
|
import-table 42
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Filtering rules.
|
|
|
|
|
|
|
|
|
|
# Only accept routes included in a specific prefix.
|
|
|
|
|
#in ip 192.168.42.0/24 allow
|
|
|
|
|
#in ip 2001:db8:cafe:cafe::/64 allow
|
|
|
|
|
#in deny
|
|
|
|
|
|
|
|
|
|
{% if 'mullvad_uplink' in group_names %}
|
|
|
|
|
redistribute if mullvad metric 256
|
|
|
|
|
{% endif %}
|
|
|
|
@ -69,3 +50,11 @@ redistribute ip 2001:470:cd45:ff00::/56 allow
|
|
|
|
|
redistribute ip 2a03:2260:1016::/48 allow
|
|
|
|
|
redistribute ip fd62:44e1:da::/48 allow
|
|
|
|
|
redistribute local deny
|
|
|
|
|
|
|
|
|
|
{% if 'fastd' in group_names and preferred_uplink is defined %}
|
|
|
|
|
{% for peer in groups['uplink'] %}
|
|
|
|
|
{% if not hostvars[peer]['wireguard_bb_name'] == preferred_uplink %}
|
|
|
|
|
in if bb{{ hostvars[peer]['wireguard_bb_name'] }} metric 64
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% endif %}
|
|
|
|
|