diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2017-11-25 23:58:34 +0100 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2017-11-25 23:58:36 +0100 |
commit | 488d7ca47601d4976dbda00c7b6e19f670fc4149 (patch) | |
tree | afe7145a30a42ed258aca2a11f898d5fef9269b6 | |
parent | 1b1d931fe4656cccbcf621913ce3b09a0d89280a (diff) | |
download | labitat-ansible-488d7ca47601d4976dbda00c7b6e19f670fc4149.tar.gz labitat-ansible-488d7ca47601d4976dbda00c7b6e19f670fc4149.tar.xz labitat-ansible-488d7ca47601d4976dbda00c7b6e19f670fc4149.zip |
space_server: bird: add preferred source
..to default routes
-rw-r--r-- | roles/space_server/files/bird/protocols.conf | 5 | ||||
-rw-r--r-- | roles/space_server/files/bird/symbol4.conf | 2 | ||||
-rw-r--r-- | roles/space_server/files/bird/symbol6.conf | 2 | ||||
-rw-r--r-- | roles/space_server/files/networkd/network/10-wan.network | 10 |
4 files changed, 16 insertions, 3 deletions
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 |