From 488d7ca47601d4976dbda00c7b6e19f670fc4149 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Sat, 25 Nov 2017 23:58:34 +0100 Subject: space_server: bird: add preferred source ..to default routes --- roles/space_server/files/bird/protocols.conf | 5 ++++- roles/space_server/files/bird/symbol4.conf | 2 ++ roles/space_server/files/bird/symbol6.conf | 2 ++ roles/space_server/files/networkd/network/10-wan.network | 10 ++++++++-- 4 files changed, 16 insertions(+), 3 deletions(-) (limited to 'roles/space_server/files') diff --git a/roles/space_server/files/bird/protocols.conf b/roles/space_server/files/bird/protocols.conf index b84c6ac..f5cc85f 100644 --- a/roles/space_server/files/bird/protocols.conf +++ b/roles/space_server/files/bird/protocols.conf @@ -11,5 +11,8 @@ protocol kernel { persist; scan time 20; import all; - export all; + export filter { + krt_prefsrc = PREFSRC; + accept; + }; } diff --git a/roles/space_server/files/bird/symbol4.conf b/roles/space_server/files/bird/symbol4.conf index 80a8ed6..a23c865 100644 --- a/roles/space_server/files/bird/symbol4.conf +++ b/roles/space_server/files/bird/symbol4.conf @@ -3,3 +3,5 @@ define DEFAULT_ROUTE = 0.0.0.0/0; define LABITAT_PREFIXES = [ 185.38.175.0/24 ]; + +define PREFSRC = 185.38.175.0; diff --git a/roles/space_server/files/bird/symbol6.conf b/roles/space_server/files/bird/symbol6.conf index daed1b8..0dbd7b6 100644 --- a/roles/space_server/files/bird/symbol6.conf +++ b/roles/space_server/files/bird/symbol6.conf @@ -3,3 +3,5 @@ define DEFAULT_ROUTE = ::/0; define LABITAT_PREFIXES = [ 2a01:4260:1ab::/48 ]; + +define PREFSRC = 2a01:4260:1ab::; diff --git a/roles/space_server/files/networkd/network/10-wan.network b/roles/space_server/files/networkd/network/10-wan.network index 4634150..1d14dee 100644 --- a/roles/space_server/files/networkd/network/10-wan.network +++ b/roles/space_server/files/networkd/network/10-wan.network @@ -5,11 +5,17 @@ Name=wan DHCP=no IPv6AcceptRA=no Address=193.106.167.46/29 -Gateway=193.106.167.42 Address=2a03:5440:1:2935:1ab::3/120 -Gateway=2a03:5440:1:2935:1ab::2 IPForward=yes LLMNR=no MulticastDNS=no LLDP=yes EmitLLDP=no + +[Route] +Gateway=193.106.167.42 +Metric=1024 + +[Route] +Gateway=2a03:5440:1:2935:1ab::2 +Metric=1024 -- cgit v1.2.1