Change WireGuard subnet
This commit is contained in:
parent
c832d2ff93
commit
885021c49e
2 changed files with 6 additions and 6 deletions
|
@ -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" ];
|
||||||
|
|
||||||
|
|
|
@ -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" ];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue