First attempt at Wireguard configuration

master
Sven Slootweg 7 years ago
parent 1a6c0fbe79
commit 9e2628dbba

@ -140,13 +140,12 @@ in {
networking.wireguard = { networking.wireguard = {
wg0 = { wg0 = {
/*ips = [ "192.168.20.4/24" ];*/ ips = [ "192.168.3.1/24" ];
privateKey = (import ../private/credentials.nix).wireguard.privateKey; privateKey = (import ../private/credentials.nix).wireguard.privateKey;
/*peers = [ peers = [{
{ allowedIPs = [ "192.168.20.1/32" ]; allowedIPs = [ "192.168.3.2/32" ];
publicKey = "2LAxq8w89vdCqa+Jdtk4xsaJ0OcbU/jv71mzm/K0pXE="; publicKey = "2LAxq8w89vdCqa+Jdtk4xsaJ0OcbU/jv71mzm/K0pXE=";
endpoint = "demo.wireguard.io:12913"; } }];
];*/
}; };
}; };

@ -62,13 +62,13 @@ in {
networking.wireguard = { networking.wireguard = {
wg0 = { wg0 = {
/*ips = [ "192.168.20.4/24" ];*/ ips = [ "192.168.3.2" ];
privateKey = (import ../private/credentials.nix).wireguard.privateKey; privateKey = (import ../private/credentials.nix).wireguard.privateKey;
/*peers = [ peers = [{
{ allowedIPs = [ "192.168.20.1/32" ]; allowedIPs = [ "0.0.0.0/0" ];
publicKey = "MoU34/IBbMrcNnNQdVuJCJB7WZul3GTUwhEVJ7paIQI="; publicKey = "MoU34/IBbMrcNnNQdVuJCJB7WZul3GTUwhEVJ7paIQI=";
endpoint = "demo.wireguard.io:12913"; } endpoint = "80.100.254.69:51820";
];*/ }];
}; };
}; };

Loading…
Cancel
Save