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 ++ 3 files changed, 8 insertions(+), 1 deletion(-) (limited to 'roles/space_server/files/bird') 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::; -- cgit v1.2.1