[ASUS] Configuration client Wireguard

This commit is contained in:
nyanloutre 2018-09-16 17:00:34 +02:00
parent 5a7d3b2b1c
commit c7bda3bc1f

View File

@ -168,6 +168,21 @@
# Or disable the firewall altogether.
networking.firewall.enable = false;
networking.wireguard.interfaces = {
wg0 = {
ips = [ "192.168.20.2/24" ];
allowedIPsAsRoutes = false;
peers = [
{
allowedIPs = [ "0.0.0.0/0" ];
endpoint = "nyanlout.re:51820";
publicKey = "NVLJ30kNP+fK+K3oM1LAcQpvZvz1dvBD8mWNjDf5Z2k=";
}
];
privateKeyFile = "/var/lib/wireguard/wg0.privatekey";
};
};
# Enable CUPS to print documents.
services.printing.enable = true;