From 64e2e836d3d983bf40d3c6a905172fad0d1a8f78 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 25 Mar 2024 21:47:55 -0400 Subject: [PATCH] set preferred source for static IPv4 configuration --- systemd/network/0.ns2.grapheneos.org.network | 7 ++++++- systemd/network/1.grapheneos.network.network | 7 ++++++- systemd/network/1.grapheneos.org.network | 7 ++++++- systemd/network/1.ns2.grapheneos.org.network | 7 ++++++- systemd/network/2.ns2.grapheneos.org.network | 7 ++++++- systemd/network/mail.grapheneos.org.network | 7 ++++++- systemd/network/ns1.staging.grapheneos.org.network | 7 ++++++- systemd/network/staging.attestation.app.network | 7 ++++++- systemd/network/staging.grapheneos.org.network | 7 ++++++- 9 files changed, 54 insertions(+), 9 deletions(-) diff --git a/systemd/network/0.ns2.grapheneos.org.network b/systemd/network/0.ns2.grapheneos.org.network index d79eda0..6343f76 100644 --- a/systemd/network/0.ns2.grapheneos.org.network +++ b/systemd/network/0.ns2.grapheneos.org.network @@ -4,15 +4,20 @@ Name=public [Network] LinkLocalAddressing=no Address=198.98.53.141/24 -Gateway=198.98.53.1 Address=2605:6400:10:102e:95bc:89ef:2e7f:49bb/128 Gateway=2605:6400:10::1 [Address] Address=198.251.90.93/32 +[Route] +Destination=0.0.0.0/0 +Gateway=198.98.53.1 +PreferredSource=198.98.53.141 + [Route] Destination=198.98.53.1 +PreferredSource=198.98.53.141 [Route] Destination=2605:6400:10::1 diff --git a/systemd/network/1.grapheneos.network.network b/systemd/network/1.grapheneos.network.network index 72fc30b..5530ab0 100644 --- a/systemd/network/1.grapheneos.network.network +++ b/systemd/network/1.grapheneos.network.network @@ -4,12 +4,17 @@ Name=public [Network] LinkLocalAddressing=no Address=209.141.37.35/24 -Gateway=209.141.37.1 Address=2605:6400:20:387:72d4:dab9:a369:f351/128 Gateway=2605:6400:20::1 +[Route] +Destination=0.0.0.0/0 +Gateway=209.141.37.1 +PreferredSource=209.141.37.35 + [Route] Destination=209.141.37.1 +PreferredSource=209.141.37.35 [Route] Destination=2605:6400:20::1 diff --git a/systemd/network/1.grapheneos.org.network b/systemd/network/1.grapheneos.org.network index 8d1efaf..faa0a0e 100644 --- a/systemd/network/1.grapheneos.org.network +++ b/systemd/network/1.grapheneos.org.network @@ -4,12 +4,17 @@ Name=public [Network] LinkLocalAddressing=no Address=209.141.35.164/24 -Gateway=209.141.35.1 Address=2605:6400:20:1131:8088:e08:84e6:632/128 Gateway=2605:6400:20::1 +[Route] +Destination=0.0.0.0/0 +Gateway=209.141.35.1 +PreferredSource=209.141.35.164 + [Route] Destination=209.141.35.1 +PreferredSource=209.141.35.164 [Route] Destination=2605:6400:20::1 diff --git a/systemd/network/1.ns2.grapheneos.org.network b/systemd/network/1.ns2.grapheneos.org.network index 746ae9d..80604df 100644 --- a/systemd/network/1.ns2.grapheneos.org.network +++ b/systemd/network/1.ns2.grapheneos.org.network @@ -4,15 +4,20 @@ Name=public [Network] LinkLocalAddressing=no Address=205.185.124.155/24 -Gateway=205.185.124.1 Address=2605:6400:20:1c8f:a0c9:372d:482e:945b/128 Gateway=2605:6400:20::1 [Address] Address=198.251.90.93/32 +[Route] +Destination=0.0.0.0/0 +Gateway=205.185.124.1 +PreferredSource=205.185.124.155 + [Route] Destination=205.185.124.1 +PreferredSource=205.185.124.155 [Route] Destination=2605:6400:20::1 diff --git a/systemd/network/2.ns2.grapheneos.org.network b/systemd/network/2.ns2.grapheneos.org.network index ebd5806..aa0934e 100644 --- a/systemd/network/2.ns2.grapheneos.org.network +++ b/systemd/network/2.ns2.grapheneos.org.network @@ -4,15 +4,20 @@ Name=public [Network] LinkLocalAddressing=no Address=107.189.3.168/24 -Gateway=107.189.3.1 Address=2605:6400:30:ec25:102c:af6d:5be:1eb8/128 Gateway=2605:6400:30::1 [Address] Address=198.251.90.93/32 +[Route] +Destination=0.0.0.0/0 +Gateway=107.189.3.1 +PreferredSource=107.189.3.168 + [Route] Destination=107.189.3.1 +PreferredSource=107.189.3.168 [Route] Destination=2605:6400:30::1 diff --git a/systemd/network/mail.grapheneos.org.network b/systemd/network/mail.grapheneos.org.network index 0e67c47..596006b 100644 --- a/systemd/network/mail.grapheneos.org.network +++ b/systemd/network/mail.grapheneos.org.network @@ -4,12 +4,17 @@ Name=public [Network] LinkLocalAddressing=no Address=192.99.98.22/32 -Gateway=51.79.64.1 Address=2607:5300:205:200::472f/128 Gateway=2607:5300:205:200::1 +[Route] +Destination=0.0.0.0/0 +Gateway=51.79.64.1 +PreferredSource=192.99.98.22 + [Route] Destination=51.79.64.1 +PreferredSource=192.99.98.22 [Route] Destination=2607:5300:205:200::1 diff --git a/systemd/network/ns1.staging.grapheneos.org.network b/systemd/network/ns1.staging.grapheneos.org.network index b7a16e9..d33f115 100644 --- a/systemd/network/ns1.staging.grapheneos.org.network +++ b/systemd/network/ns1.staging.grapheneos.org.network @@ -4,15 +4,20 @@ Name=public [Network] LinkLocalAddressing=no Address=198.98.56.238/24 -Gateway=198.98.56.1 Address=2605:6400:10:c41:de92:c534:326a:711a/128 Gateway=2605:6400:10::1 [Route] Destination=2605:6400:10::1 +[Route] +Destination=0.0.0.0/0 +Gateway=198.98.56.1 +PreferredSource=198.98.56.238 + [Route] Destination=198.98.56.1 +PreferredSource=198.98.56.238 [CAKE] Bandwidth=1000M diff --git a/systemd/network/staging.attestation.app.network b/systemd/network/staging.attestation.app.network index dc75ff9..8860089 100644 --- a/systemd/network/staging.attestation.app.network +++ b/systemd/network/staging.attestation.app.network @@ -4,15 +4,20 @@ Name=public [Network] LinkLocalAddressing=no Address=198.98.57.157/24 -Gateway=198.98.57.1 Address=2605:6400:10:aa9:1c0f:44d3:da15:c0ec/128 Gateway=2605:6400:10::1 [Route] Destination=2605:6400:10::1 +[Route] +Destination=0.0.0.0/0 +Gateway=198.98.57.1 +PreferredSource=198.98.57.157 + [Route] Destination=198.98.57.1 +PreferredSource=198.98.57.157 [CAKE] Bandwidth=1000M diff --git a/systemd/network/staging.grapheneos.org.network b/systemd/network/staging.grapheneos.org.network index cc0c7d8..25580dc 100644 --- a/systemd/network/staging.grapheneos.org.network +++ b/systemd/network/staging.grapheneos.org.network @@ -4,15 +4,20 @@ Name=public [Network] LinkLocalAddressing=no Address=199.195.250.78/24 -Gateway=199.195.250.1 Address=2605:6400:0010:09d6:6d84:e183:acda:16d7/128 Gateway=2605:6400:10::1 [Route] Destination=2605:6400:10::1 +[Route] +Destination=0.0.0.0/0 +Gateway=199.195.250.1 +PreferredSource=199.195.250.78 + [Route] Destination=199.195.250.1 +PreferredSource=199.195.250.78 [CAKE] Bandwidth=1000M