mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat(wireguard): associate external peers to the specific defining node
This commit is contained in:
parent
d522a46f1d
commit
925d3856e0
6 changed files with 103 additions and 47 deletions
|
@ -20,4 +20,6 @@
|
|||
dhcpV6Config.RouteMetric = 40;
|
||||
};
|
||||
};
|
||||
|
||||
extra.wireguard.vms.address = ["10.0.0.10/32"];
|
||||
}
|
||||
|
|
|
@ -17,4 +17,16 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
extra.wireguard.vms = {
|
||||
server = {
|
||||
enable = true;
|
||||
port = 51822;
|
||||
openFirewall = true;
|
||||
};
|
||||
address = ["10.0.0.2/24"];
|
||||
externalPeers = {
|
||||
zack1 = ["10.0.0.90/32"];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue