wireguard add ipv6, even though it does not seem to work

This commit is contained in:
Laureηt 2023-04-26 20:49:54 +02:00
parent 08d138ca0a
commit 073c1cb388
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI
2 changed files with 4 additions and 4 deletions

View file

@ -10,17 +10,17 @@
wireguard.interfaces = {
wg0 = {
ips = [ "10.0.0.1/24" ];
ips = [ "10.0.0.1/24" "fd02:002:002::1/64" ];
listenPort = 5553;
privateKeyFile = "/root/wg-private";
peers = [
{ # pixel
publicKey = "HS2q+PpPPwxqT1jCD7D4puqr4ZyaXV5TostavlYWBx0=";
allowedIPs = [ "10.0.0.2/32" ];
allowedIPs = [ "10.0.0.2/32" "fd02:002:002::2/64" ];
}
{ # neodymium
publicKey = "IFeRvelEilNRLkhWgFKL9HrJ9XYsm+r4yvv23CigETk=";
allowedIPs = [ "10.0.0.3/32" ];
allowedIPs = [ "10.0.0.3/32" "fd02:002:002::3/64" ];
}
];
};

View file

@ -16,7 +16,7 @@
networking.wg-quick.interfaces = {
wg0 = {
privateKeyFile = "/root/wireguard-keys/private";
address = [ "10.0.0.3/24" ];
address = [ "10.0.0.3/24" "fd02:002:002::3/64" ];
dns = [ "10.0.0.1" ];
peers = [{
publicKey = "y36/EpLUerwM6NSGsVDCkb37Wj/Z3CI0mPFGatVa0Ws=";