mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-29 07:10:51 +01:00
fix: fix routes on gustave
This commit is contained in:
parent
b9cd4f8b16
commit
5e6cd87295
1 changed files with 8 additions and 8 deletions
|
@ -18,12 +18,6 @@
|
||||||
systemd.network.enable = true;
|
systemd.network.enable = true;
|
||||||
systemd.network.networks."10-wan" = {
|
systemd.network.networks."10-wan" = {
|
||||||
matchConfig.Name = "ens18";
|
matchConfig.Name = "ens18";
|
||||||
routes = [
|
|
||||||
{
|
|
||||||
routeConfig.Metric = 500;
|
|
||||||
routeConfig.Destination = "0.0.0.0/0";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
networkConfig = {
|
networkConfig = {
|
||||||
DHCP = "ipv4";
|
DHCP = "ipv4";
|
||||||
Address = "2a01:e0a:de4:a0e1:eb2:aaaa::45/128";
|
Address = "2a01:e0a:de4:a0e1:eb2:aaaa::45/128";
|
||||||
|
@ -45,7 +39,6 @@
|
||||||
wireguardPeers = [
|
wireguardPeers = [
|
||||||
{
|
{
|
||||||
wireguardPeerConfig = {
|
wireguardPeerConfig = {
|
||||||
RouteMetric = 2000;
|
|
||||||
PublicKey = "oYsN1Qy+a7dwVOKapN5s5KJOmhSflLHZqh+GLMeNpHw=";
|
PublicKey = "oYsN1Qy+a7dwVOKapN5s5KJOmhSflLHZqh+GLMeNpHw=";
|
||||||
AllowedIPs = [ "0.0.0.0/0" ];
|
AllowedIPs = [ "0.0.0.0/0" ];
|
||||||
Endpoint = "[2a01:e0a:5f9:9681:5880:c9ff:fe9f:3dfb]:51821";
|
Endpoint = "[2a01:e0a:5f9:9681:5880:c9ff:fe9f:3dfb]:51821";
|
||||||
|
@ -63,8 +56,15 @@
|
||||||
addressConfig.AddPrefixRoute = false;
|
addressConfig.AddPrefixRoute = false;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
routes = [
|
||||||
|
{
|
||||||
|
routeConfig = {
|
||||||
|
Gateway = "10.100.45.1";
|
||||||
|
Destination = "10.100.45.0/24";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
DHCP = "no";
|
DHCP = "no";
|
||||||
gateway = [ "10.100.45.1" ];
|
|
||||||
networkConfig = {
|
networkConfig = {
|
||||||
IPv6AcceptRA = false;
|
IPv6AcceptRA = false;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue