Change WireGuard subnet

This commit is contained in:
Vili Sinervä 2025-02-20 23:09:43 +02:00
parent c832d2ff93
commit 885021c49e
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
2 changed files with 6 additions and 6 deletions

View file

@ -6,9 +6,9 @@
wg-quick.interfaces = { wg-quick.interfaces = {
wg0 = { wg0 = {
autostart = true; autostart = true;
address = [ "2001:14ba:a090:39f0::2/64" ]; address = [ "2001:14ba:a090:39ff::2/64" ];
dns = [ dns = [
"2001:14ba:a090:39f0::1" "2001:14ba:a090:39ff::1"
"vsinerva.fi" "vsinerva.fi"
]; ];
privateKeyFile = "/root/wireguard-keys/privatekey-home"; privateKeyFile = "/root/wireguard-keys/privatekey-home";
@ -50,7 +50,7 @@
}; };
services.clatd = { services.clatd = {
enable = true; enable = true;
settings.clat-v6-addr = "2001:14ba:a090:39f0::c2"; settings.clat-v6-addr = "2001:14ba:a090:39ff::c2";
}; };
systemd.services.clatd.wants = [ "wg-quick-wg0.service" ]; systemd.services.clatd.wants = [ "wg-quick-wg0.service" ];

View file

@ -6,9 +6,9 @@
wg-quick.interfaces = { wg-quick.interfaces = {
wg0 = { wg0 = {
autostart = true; autostart = true;
address = [ "2001:14ba:a090:39f0::3/64" ]; address = [ "2001:14ba:a090:39ff::3/64" ];
dns = [ dns = [
"2001:14ba:a090:39f0::1" "2001:14ba:a090:39ff::1"
"vsinerva.fi" "vsinerva.fi"
]; ];
privateKeyFile = "/root/wireguard-keys/privatekey-home"; privateKeyFile = "/root/wireguard-keys/privatekey-home";
@ -32,7 +32,7 @@
}; };
services.clatd = { services.clatd = {
enable = true; enable = true;
settings.clat-v6-addr = "2001:14ba:a090:39f0::c3"; settings.clat-v6-addr = "2001:14ba:a090:39ff::c3";
}; };
systemd.services.clatd.wants = [ "wg-quick-wg0.service" ]; systemd.services.clatd.wants = [ "wg-quick-wg0.service" ];