summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorNiklas Yann Wettengel <niyawe@niyawe.de>2018-06-07 00:33:24 +0200
committerNiklas Yann Wettengel <niyawe@niyawe.de>2018-06-07 00:33:24 +0200
commit587d37b5f12d59b26e2b9291a18287a35e9abea8 (patch)
tree98a6fd7a4b62443f183ac66478e475a8b587133e /roles
parent776fafa79c1396ae61f3c392edc46c89f0faea24 (diff)
babel: ignore default routes on uplinks
Diffstat (limited to 'roles')
-rw-r--r--roles/install_babeld/templates/babeld.conf.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/install_babeld/templates/babeld.conf.j2 b/roles/install_babeld/templates/babeld.conf.j2
index 1741369..fbf7e30 100644
--- a/roles/install_babeld/templates/babeld.conf.j2
+++ b/roles/install_babeld/templates/babeld.conf.j2
@@ -37,6 +37,9 @@ import-table 42
reflect-kernel-metric true
# Filtering rules.
+{% if 'uplink' in group_names %}
+in le 0 deny # ignore default routes on uplinks
+{% endif %}
{% if 'mullvad_uplink' in group_names %}
redistribute if mullvad metric 256